@php use Illuminate\Support\Str; @endphp
|
Company Information
@if($company && $company->logo_path)
Name: {{ $company->name ?? 'Company Name' }}
Address: {{ $company->address ?? 'Company Address' }}
Phone: {{ $company->phone ?? 'Company Phone' }}
Email: {{ $company->email ?? 'Company Email' }}
@if($company && $company->vat_no)
VAT No: {{ $company->vat_no }}
@endif
@if($company && $company->tin_no)
TIN No: {{ $company->tin_no }}
@endif
Currency: {{ $currency->code }}
|
Cashbook Information
Cashbook: {{ $cashbook->code }}
Description: {{ $cashbook->description }}
GL Account: {{ $cashbook->generalLedger->code }} - {{ $cashbook->generalLedger->account_name }}
|
| Date | Description | Reference / GL Account | DR | CR | Balance |
|---|---|---|---|---|---|
| {{ $row['date'] }} | {{ $row['description'] }} | {{ $row['reference'] }} | {{ number_format($row['dr'], 2) }} | {{ number_format($row['cr'], 2) }} | @if($row['balance'] < 0) ({{ number_format(abs($row['balance']), 2) }}) @else {{ number_format($row['balance'], 2) }} @endif |
| Grand Balance: | @if($grandBalance < 0) ({{ number_format(abs($grandBalance), 2) }}) @else {{ number_format($grandBalance, 2) }} @endif | ||||