@extends('layouts.app') @section('title', 'Trial Balance') @section('breadcrumb') @endsection @section('content') @php $companyId = auth()->user()->company_id; $fmt = fn($amount) => abs((float) $amount) < 0.005 ? '—' : \App\Helpers\NumberHelper::formatAmount((float) $amount, $companyId); $balanced = abs($totals['closing_debit'] - $totals['closing_credit']) < 0.01 && abs($totals['period_debit'] - $totals['period_credit']) < 0.01; @endphp
Trial Balance {{ \Carbon\Carbon::parse($dateFrom)->format('d M Y') }} to {{ \Carbon\Carbon::parse($dateTo)->format('d M Y') }}
Click an account to drill down to General Ledger.
@forelse($rows as $row) @empty @endforelse
Account No. Account Name Opening Balance Current Period Closing Balance
Debit Credit Debit Credit Debit Credit
{{ $row->code ?: '—' }} {{ $row->name }}
{{ ucfirst($row->type) }}
{{ $fmt($row->opening_debit) }} {{ $fmt($row->opening_credit) }} {{ $fmt($row->period_debit) }} {{ $fmt($row->period_credit) }} {{ $fmt($row->closing_debit) }} {{ $fmt($row->closing_credit) }}
No ledger balances found for the selected period.
Total {{ $fmt($totals['opening_debit']) }} {{ $fmt($totals['opening_credit']) }} {{ $fmt($totals['period_debit']) }} {{ $fmt($totals['period_credit']) }} {{ $fmt($totals['closing_debit']) }} {{ $fmt($totals['closing_credit']) }}
@endsection