<<<<<<< HEAD {{-- resources/views/accounting/reports/trial_balance_pdf.blade.php --}} Trial Balance

Trial Balance as of {{ now()->format('Y-m-d') }}

@foreach($balances as $row) @endforeach
Code Name Debit Credit
{{ $row->code }} {{ $row->name }} {{ number_format($row->debit,2) }} {{ number_format($row->credit,2) }}
======= @extends('layouts.pdf.base') @section('pdf-title', 'Trial Balance') @section('pdf-subtitle') Period: {{ $from ?? 'Start' }} → {{ $to ?? 'End' }} @endsection @section('pdf-content') @foreach($balances as $row) @endforeach
Code Account Debit Credit
{{ $row['code'] ?? '' }} {{ $row['account'] ?? '' }} {{ ($row['debit'] ?? 0) > 0 ? number_format($row['debit'], 2) : '—' }} {{ ($row['credit'] ?? 0) > 0 ? number_format($row['credit'], 2) : '—' }}
Totals {{ number_format($totalDebit ?? 0, 2) }} {{ number_format($totalCredit ?? 0, 2) }}
@endsection >>>>>>> origin/main