{{-- Transactions by Payment Method --}}
<div class="overflow-auto row flex-nowrap">
    @php
        $income_confirmations = $data['incomes_per_method'] ?? [];
    @endphp

    @foreach ($income_confirmations as $method => $confirmation_data)
        <div class="flex-shrink-0 ps-3 col-3">

            {{-- Title --}}
            <h6 class="pt-1 mb-2">{{ $method }}</h6>

            @if ($loop->index === 0)

                {{-- Initial Cash --}}
                <div class="mb-3 input-group">
                    <div class="input-group-prepend">
                        <label class="input-group-text disabled-fields">
                            {{ __('entity_fields')['audit']['initial_cash'] }}
                        </label>
                    </div>

                    <input type="number" readonly required
                        class="form-control disabled-fields"
                        step="0.01" value="{{ $data['initial_cash'] }}"
                        onchange="roundDecimals(this)">
                </div>

                {{-- Brute Income --}}
                <div class="mb-3 input-group">
                    <div class="input-group-prepend">
                        <label class="input-group-text disabled-fields">
                            {{ __('entity_fields')['audit']['brute_income'] }}
                        </label>
                    </div>

                    <input type="number" readonly required
                        class="form-control disabled-fields"
                        step="0.01" value="{{ $data['brute_income'] }}"
                        onchange="roundDecimals(this)">
                </div>

                {{-- Cash Withdrawn --}}
                <div class="mb-3 input-group">
                    <div class="input-group-prepend">
                        <label class="input-group-text disabled-fields">
                            {{ __('entity_fields')['audit']['cash_withdrawn'] }}
                        </label>
                    </div>

                    <input type="number" readonly required
                        class="form-control disabled-fields"
                        step="0.01" value="{{ $data['cash_withdrawn'] }}"
                        onchange="roundDecimals(this)">
                </div>

            @else

                {{-- Total Vouchers --}}
                <div class="mb-3 input-group">
                    <div class="input-group-prepend">
                        <label class="input-group-text disabled-fields">
                            {{ __('entity_fields')['audit']['total_vouchers'] }}
                        </label>
                    </div>

                    <input type="number" readonly required
                        class="form-control disabled-fields"
                        step=".1" min="0" value="{{ $confirmation_data['total_vouchers'] }}"
                        onchange="roundInteger(this)">
                </div>

            @endif

            {{-- Expected Balance --}}
            <div class="mb-3 input-group">
                <div class="input-group-prepend">
                    <label class="input-group-text disabled-fields">
                        {{ __('entity_fields')['audit']['expected_balance'] }}
                    </label>
                </div>

                <input type="number" readonly required
                    class="form-control disabled-fields"
                    step="0.01" value="{{ $confirmation_data['expected_balance'] }}"
                    onchange="roundDecimals(this)">
            </div>

            {{-- Cash Count --}}
            <div class="mb-3 input-group">
                <div class="input-group-prepend">
                    <label class="input-group-text disabled-fields">
                        {{ __('entity_fields')['audit']['cash_count'] }}
                    </label>
                </div>

                <input type="number" readonly required
                    class="form-control disabled-fields"
                    step="0.01" value="{{ $confirmation_data['cash_count'] }}"
                    onchange="roundDecimals(this)">
            </div>

            {{-- Balance Shortfall --}}
            <div class="mb-3 input-group">
                <div class="input-group-prepend">
                    <label class="input-group-text disabled-fields">
                        {{ __('entity_fields')['audit']['balance_shortfall'] }}
                    </label>
                </div>

                <input type="number" readonly required
                    class="form-control disabled-fields"
                    step="0.01" value="{{ $confirmation_data['balance_shortfall'] }}"
                    onchange="roundDecimals(this)">
            </div>

            {{-- Shortfall Reason --}}
            @isset($confirmation_data['balance_shortfall_reason'])
                <div class="mb-3 input-group">
                    <label class="input-group-text textarea-label">
                        {{ __('entity_fields')['audit']['balance_shortfall_reason'] }}
                    </label>

                    <textarea rows="3" required readonly
                        class="disabled-fields">{{ $confirmation_data['balance_shortfall_reason'] }}
                    </textarea>
                </div>
            @endisset

        </div>
    @endforeach
</div>
