@if(!empty($preview))
@endif
@if($company && $company->logo_path) Company Logo @endif
Company Information
Name: {{ $company->company_name ?? '' }}
Address: {{ $company->address ?? '' }}
Phone: {{ $company->phone ?? '' }}
Email: {{ $company->email ?? '' }}
Payment Voucher
Voucher #: {{ $voucher->voucher_number }}
Date: {{ $voucher->voucher_date->format('d M Y') }}
Payment Method: {{ $voucher->paymentType->description ?? '—' }}
Supplier: @if($voucher->supplier) {{ $voucher->supplier->supplier_code }} – {{ $voucher->supplier->supplier_account }} @else — @endif
Payment Account: @if($voucher->paymentAccount) {{ $voucher->paymentAccount->code }} – {{ $voucher->paymentAccount->account_name }} @else — @endif
Status: {{ ucfirst($voucher->status) }}
@foreach($voucher->lines as $idx => $line) @endforeach
# Description Reference (Invoice #) GL Account Amount
{{ $idx + 1 }} {{ $line->description }} @if($line->invoice) {{ $line->invoice->document_number }} @else — @endif @if($line->account) {{ $line->account->code }} – {{ $line->account->account_name }} @else — @endif ${{ number_format($line->amount, 2) }}
Total Amount: ${{ number_format($voucher->total_amount, 2) }}
@if($company && ($company->bank_name || $company->account_number))
Banking Details @if($company->bank_name)
Bank Name: {{ $company->bank_name }}
@endif @if($company->account_name)
Account Name: {{ $company->account_name }}
@endif @if($company->account_number)
Account Number: {{ $company->account_number }}
@endif @if($company->branch_name)
Branch: {{ $company->branch_name }}
@endif
@endif