@php use Illuminate\Support\Str; @endphp
|
Company Information
@if($company && $company->logo_path)
Name: {{ $company->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 }}
|
Supplier Information
Supplier: {{ $statement['supplier']->supplier_account }}
Code: {{ $statement['supplier']->supplier_code }}
Address: {{ $statement['supplier']->address }}
Email: {{ $statement['supplier']->email }}
Phone: {{ $statement['supplier']->contact_1 }}
@if($statement['supplier']->contact_2)
Alt. Phone: {{ $statement['supplier']->contact_2 }}
@endif
@if($statement['supplier']->contact_person)
Contact Person: {{ $statement['supplier']->contact_person }}
@endif
|
| Date | Description | Reference | DR | CR | Balance |
|---|---|---|---|---|---|
| {{ $dateFrom }} | Opening Balance | {{ number_format($balance > 0 ? $balance : 0, 2) }} | {{ number_format($balance < 0 ? abs($balance) : 0, 2) }} | @if($balance < 0) ({{ number_format(abs($balance), 2) }}) @else {{ number_format($balance, 2) }} @endif | |
| {{ \Carbon\Carbon::parse($row['date'])->format('Y-m-d') }} | {{ $row['description'] }} | {{ $row['reference'] }} | {{ number_format($row['dr'], 2) }} | {{ number_format($row['cr'], 2) }} | @if($balance < 0) ({{ number_format(abs($balance), 2) }}) @else {{ number_format($balance, 2) }} @endif |
| Grand Total: | @if($grandBalance < 0) ({{ number_format(abs($grandBalance), 2) }}) @else {{ number_format($grandBalance, 2) }} @endif | ||||