@php use Illuminate\Support\Str; @endphp Cashbook Daily Transactions
Cashbook Daily Transactions
Company Information
@if($company && $company->logo_path) Company Logo @endif
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 }}
Currency: {{ $currency->code }}
Period: {{ $dateFrom }} to {{ $dateTo }}
Report Date: {{ date('d M Y') }}
@php $grandBalance = 0; @endphp @foreach($transactionData as $row) @php $grandBalance = $row['balance']; @endphp @endforeach
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