{{-- resources/views/accounting/reports/trial_balance.blade.php --}} @extends('admin.admin_dashboard') @section('admin') <<<<<<< HEAD
@foreach($balances as $row) @endforeach
Account Code Account Name Debit Credit
{{ $row['code'] }} {{ $row['account'] }} {{ number_format($row['debit'], 2) }} {{ number_format($row['credit'], 2) }}
Totals {{ number_format(collect($balances)->sum('debit'), 2) }} {{ number_format(collect($balances)->sum('credit'), 2) }}
======= @php use App\Support\AccountingAmounts; @endphp
@include('partials.accounting.period-banner') @if(isset($isBalanced))
@if($isBalanced)
Trial balance is balanced — total debits equal total credits.
@else
Trial balance is out of balance. Review journal entries or run the balance check report.
@endif
@endif
@forelse($balances as $row) @empty @endforelse
Code Account Type Debit Credit
{{ $row['code'] }} {{ $row['account'] }} {{ $row['type'] }} {{ $row['debit'] > 0 ? number_format($row['debit'], 2) : '—' }} {{ $row['credit'] > 0 ? number_format($row['credit'], 2) : '—' }}
No account activity in this period.
Totals {{ number_format($totalDebit ?? 0, 2) }} {{ number_format($totalCredit ?? 0, 2) }}
>>>>>>> origin/main
@endsection