Total Entries
{{ number_format($entries->total()) }}
Total Debits
{{ number_format($entries->sum('debit'), 2) }}
Total Credits
{{ number_format($entries->sum('credit'), 2) }}
Net Difference
{{ number_format($netDifference, 2) }}
Moon Traders
General Ledger
@if($entryDateFrom && $entryDateTo)
Period: {{ \Carbon\Carbon::parse($entryDateFrom)->format('d-M-Y') }} to
{{ \Carbon\Carbon::parse($entryDateTo)->format('d-M-Y') }}
@elseif($entryDateTo)
As of:
{{ \Carbon\Carbon::parse($entryDateTo)->format('d-M-Y') }}
@elseif($entryDateFrom)
From:
{{ \Carbon\Carbon::parse($entryDateFrom)->format('d-M-Y') }}
@else
All Time
@endif
Printed by: {{ auth()->user()->name }} | {{ now()->format('d-M-Y h:i A') }}
| Sr.# | Date | {{-- --}}Code | {{--Account Name | --}}Description / LD / Reference | {{--Line Description | --}}Debit | Credit | {{--Reference | --}} {{--Cost Center | --}}Status | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $entries->firstItem() + $index }} | {{ $entry->entry_date ? $entry->entry_date->format('d-M-Y') : '-' }} | {{-- --}}{{ $entry->account_code }} | {{--{{ $entry->account_name }} | --}}
{{ $entry->account_name }} -
{{ $entry->journal_description ?? '-' }} ::
{{ $entry->line_description ?? '-' }} **
Ref: {{ $entry->reference ?? '-' }} -
CC: {{ $entry->cost_center_code ?? '-' }}
{{-- @php $desc = $entry->journal_description ?? '-'; @endphp
{{ substr($desc, 0, length: 80) }}
@if(strlen($desc) > 80)
{{ substr($desc, 80) }} @endif --}} |
{{-- {{ $entry->line_description ?? '-' }} | --}}{{ (float) $entry->debit > 0 ? number_format($entry->debit, 2) : '-' }} | {{ (float) $entry->credit > 0 ? number_format($entry->credit, 2) : '-' }} | {{--{{ $entry->reference ?? '-' }} | --}} {{--{{ $entry->cost_center_code ?? '-' }} | --}}{{ ucfirst($entry->status ?? 'draft') }} | ||
| No general ledger entries found. | ||||||||||||
| Page Total ({{ $entries->count() }} entries): | {{ number_format($entries->sum('debit'), 2) }} | {{ number_format($entries->sum('credit'), 2) }} | ||||||||||