@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 Customers: {{ count($customerInvoices) }}
Total Invoices: {{ count($invoices) }}
Total Amount: USD {{ number_format($invoices->sum('inclusive_total'), 2) }}
|
| Date | Invoice Number | Amount (USD) | Tax (USD) | Discount (USD) | Net Amount (USD) |
|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($invoice->document_date)->format('d/m/Y') }} | {{ $invoice->document_number }} | {{ number_format($invoice->inclusive_total, 2) }} | {{ number_format($invoice->tax_amount, 2) }} | {{ number_format($invoice->discount_total, 2) }} | {{ number_format($invoice->inclusive_total - $invoice->tax_amount, 2) }} |
| Total for {{ $customerData['customer']->customer_account }}: | USD {{ number_format($customerTotal, 2) }} | ||||
| Grand Total: | USD {{ number_format($invoices->sum('inclusive_total'), 2) }} | ||||