|
@if($company)
@if($company->CompanyName)
C/O {{ strtoupper($company->CompanyName) }}
@endif
@if($company->Address1 || $company->Address2 || $company->City || $company->PostalCode)
{{ $company->Address1 }} {{ $company->Address2 }}
@if($company->City)
{{ $company->City }}
@endif
@if($company->PostalCode)
, {{ $company->PostalCode }}
@endif
@if($company->Country)
, {{ $company->Country }}
@endif
@endif
@if($company->Phone1 || $company->Phone2)
TEL: {{ $company->Phone1 }}{{ $company->Phone2 ? ', ' . $company->Phone2 : '' }}
@endif
@if($company->Email)
EMAIL: {{ strtolower($company->Email) }}
@endif
@endif
|
@if($company->CompanyLogo)
@endif
|
| Court/Tenant | @foreach($lineDescriptions as $description){{ $description }} | @endforeachTotal (KSh) |
|---|---|---|
| {{ $customer['name'] }} | @foreach($lineDescriptions as $id => $desc) @php $amount = $customer['lines'][$id]['amount'] ?? 0; $cellClass = $amount > 0 ? 'text-end' : 'text-end text-muted'; @endphp{{ $amount > 0 ? number_format($amount, 2) : '-' }} | @endforeach{{ number_format($customer['total'], 2) }} |
| Total | @foreach($lineDescriptions as $id => $desc) @php $total = $columnTotals[$id] ?? 0; $cellClass = $total > 0 ? 'text-end fw-bold' : 'text-end text-muted fw-bold'; @endphp{{ $total > 0 ? number_format($total, 2) : '-' }} | @endforeach{{ number_format($totalAmount, 2) }} |