@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
|
Report Information
Report Type: {{ ucfirst($reportType) }}
Period: {{ $fromDate }} to {{ $toDate }}
Total Invoices: {{ count($invoices) }}
Total Amount: USD {{ number_format($invoices->sum('inclusive_total'), 2) }}
|
| Date | Supplier Code | Supplier Name | Amount (USD) |
|---|---|---|---|
| {{ \Carbon\Carbon::parse($invoice->document_date)->format('d/m/Y') }} | {{ $invoice->supplier->supplier_code ?? 'N/A' }} | {{ $invoice->supplier->supplier_name ?? 'N/A' }} | {{ number_format($invoice->inclusive_total, 2) }} |
| Grand Total: | USD {{ number_format($invoices->sum('inclusive_total'), 2) }} | ||