{{ __('app.fees.reconciliation.title') }}

{{ __('app.fees.reconciliation.desc') }}

{{ __('app.fees.reconciliation.refresh') }}
@if ($report['balanced']) {{ __('app.fees.reconciliation.balanced') }} @else {{ __('app.fees.reconciliation.unbalanced') }} @endif
@foreach ([ 'invoice_total' => __('app.fees.reconciliation.totals.invoice_total'), 'verified_payments' => __('app.fees.reconciliation.totals.verified_payments'), 'refunds' => __('app.fees.reconciliation.totals.refunds'), 'outstanding' => __('app.fees.reconciliation.totals.outstanding'), ] as $key => $label)

{{ $label }}

{{ number_format((float) $report['totals'][$key], 2) }}

@endforeach
@foreach ($report['checks'] as $key => $check) @endforeach
{{ __('app.fees.reconciliation.check') }} {{ __('app.fees.reconciliation.ledger') }} {{ __('app.fees.reconciliation.expected') }} {{ __('app.fees.reconciliation.difference') }} {{ __('app.fees.fields.status') }}
{{ __('app.fees.reconciliation.checks.'.$key) }} {{ number_format((float) $check['ledger'], 2) }} {{ number_format((float) $check['expected'], 2) }} {{ number_format((float) $check['difference'], 2) }} {{ $check['ok'] ? __('app.fees.reconciliation.ok') : __('app.fees.reconciliation.mismatch') }}
@foreach ([ 'payments' => ['label' => __('app.fees.reconciliation.period.payments'), 'ok' => 'payments_ok', 'ledger' => 'ledger_payments'], 'refunds' => ['label' => __('app.fees.reconciliation.period.refunds'), 'ok' => 'refunds_ok', 'ledger' => 'ledger_refunds'], ] as $key => $row)

{{ $row['label'] }}

{{ $report['period'][$row['ok']] ? __('app.fees.reconciliation.ok') : __('app.fees.reconciliation.mismatch') }}

{{ __('app.fees.reconciliation.period.recorded') }}: {{ number_format((float) $report['period'][$key], 2) }}

{{ __('app.fees.reconciliation.ledger') }}: {{ number_format((float) $report['period'][$row['ledger']], 2) }}

@endforeach

{{ __('app.fees.reconciliation.accounts_hint') }}

@forelse ($balances as $row) @empty @endforelse
{{ __('app.fees.fields.code') }} {{ __('app.fees.reconciliation.account') }} {{ __('app.fees.reconciliation.type') }} {{ __('app.fees.reconciliation.debit') }} {{ __('app.fees.reconciliation.credit') }} {{ __('app.fees.fields.balance') }}
{{ $row->account->code }} {{ $row->account->localizedName() }} {{ $row->account->type->label() }} {{ number_format((float) $row->debit, 2) }} {{ number_format((float) $row->credit, 2) }} {{ number_format((float) $row->balance, 2) }}
@forelse ($entries as $entry) @empty @endforelse
{{ __('app.fees.reconciliation.entry_no') }} {{ __('app.fees.fields.date') }} {{ __('app.fees.reconciliation.event') }} {{ __('app.fees.reconciliation.lines') }} {{ __('app.fees.reconciliation.posted_by') }}
{{ $entry->entry_no }} {{ $entry->entry_date->translatedFormat('d M Y') }} {{ __('app.fees.ledger.events.'.$entry->event) }} @if ($entry->memo) {{ $entry->memo }} @endif
    @foreach ($entry->lines as $line)
  • {{ $line->account?->code }} {{ $line->account?->localizedName() }} @if ((float) $line->debit > 0) Dr {{ number_format((float) $line->debit, 2) }} @else Cr {{ number_format((float) $line->credit, 2) }} @endif
  • @endforeach
{{ $entry->poster?->name ?? '—' }}