{{ config_intranet('full_name') }}
CIERRE DE MES
Fecha de descarga: {{ $currentDateTime }}
@foreach ($data['accounts_by_payable_method'] as $account) @php if ($data['totalByAccounts'][$account]['bank'] == 0) { continue; } @endphp @foreach ($data['period_table'] as $period) @php $dayly_income = collect($period['dayly_income'])->firstWhere('account', $account); $bank = collect($period['data']['payment_methods'])->firstWhere('name', $account); $bank_total = $bank['total'] ?? 0; $dayly_income_amount = $dayly_income?->amount ?? 0; // Redondear a 2 decimales $bank_total_rounded = round((float) $bank_total, 2); $dayly_income_amount_rounded = round((float) $dayly_income_amount, 2); $diff = $bank_total_rounded - $dayly_income_amount_rounded; @endphp @endforeach
{{ $account }}
Fecha UCNET {{ $payment_method_name }} Diferencia
{{ $period['day'] }} {{ $period['day_name'] }} {{ $bank_total_rounded }} {{ $dayly_income_amount_rounded }} {{ $diff }}
Total {{ $data['totalByAccounts'][$account]['system'] }} {{ $data['totalByAccounts'][$account]['bank'] }} {{ $data['totalByAccounts'][$account]['diff'] }}
@endforeach