@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 }}
|
Customer Information
Customer: {{ $transaction['customer']->customer_account }}
Code: {{ $transaction['customer']->customer_code }}
Address: {{ $transaction['customer']->address }}
Email: {{ $transaction['customer']->email }}
Phone: {{ $transaction['customer']->phone }}
@if($transaction['customer']->city)
City: {{ $transaction['customer']->city }}
@endif
@if($transaction['customer']->province)
Province: {{ $transaction['customer']->province }}
@endif
@if($transaction['customer']->vat)
VAT: {{ $transaction['customer']->vat }}
@endif
@if($transaction['customer']->tin)
TIN: {{ $transaction['customer']->tin }}
@endif
|
| Date | Description | Reference | 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 | ||||