@include('pdf.partials.style') @php $logoPath = $setting->logo_path ? public_path('storage/'.$setting->logo_path) : null; $hasLogo = $logoPath && file_exists($logoPath); @endphp
@if($hasLogo) BASCORE @else
B
@endif
{{ $setting->company_name }}
{!! nl2br(e($setting->address)) !!}
{{ $setting->phone }} | {{ $setting->email }} | {{ $setting->website }}
TRN: {{ $setting->trn }}
TAX INVOICE
Invoice No.{{ $document->number }}
Invoice Date{{ $document->issue_date->format('d M Y') }}
Due Date{{ optional($document->due_date)->format('d M Y') }}
Reference{{ $document->reference_number ?: '-' }}
Bill To
{{ $document->customer->customer_name }}
{{ $document->customer->company_name }}
{!! nl2br(e($document->customer->address)) !!}
TRN: {{ $document->customer->trn ?: '-' }}
Scope of Work
{!! nl2br(e($document->scope_of_work ?: 'As per the listed ELV / ICT scope and agreed invoice items.')) !!}
@foreach($document->items as $line) @if($line->by_others) @else @endif @endforeach
# Item Description Qty Unit Price Discount VAT Total
{{ $loop->iteration }} {{ $line->item->item_name ?? 'Custom' }} {{ $line->description }} {{ number_format($line->quantity,2) }}By OthersAED {{ number_format($line->unit_price,2) }} AED {{ number_format($line->discount,2) }} {{ number_format($line->vat_rate,2) }}%
AED {{ number_format($line->vat_amount,2) }}
AED {{ number_format($line->line_total,2) }}
Bank Details
{!! nl2br(e($setting->bank_details)) !!}
SubtotalAED {{ number_format($document->subtotal,2) }}
DiscountAED {{ number_format($document->discount_total,2) }}
VAT TotalAED {{ number_format($document->vat_total,2) }}
Grand TotalAED {{ number_format($document->grand_total,2) }}
PaidAED {{ number_format($document->paid_amount,2) }}
Balance DueAED {{ number_format($document->balance_due,2) }}
VAT Summary
Taxable Amount: AED {{ number_format($document->subtotal - $document->discount_total,2) }}
VAT Output: AED {{ number_format($document->vat_total,2) }}
Terms and Conditions
{!! nl2br(e($document->terms ?: $setting->terms_conditions)) !!}
Authorization
Authorized Signature