@if($invoice->duplicate_header) @endif
@php $logo = base64_encode(file_get_contents(public_path('storage/logos/'.config('primary_logo_en_image')))); $currency = session('currency') ? session('currency') : $invoice->formatCurrency()->symbol; @endphp

Date: {{ $invoice->date->formatLocalized('%A %d %B %Y') }}
@if ($invoice->due_date) Due date: {{ $invoice->due_date->formatLocalized('%A %d %B %Y') }}
@endif @if ($invoice->number) Invoice #: {{ $invoice->number }} @endif

{{ $invoice->name }} {{ $invoice->number ? '#' . $invoice->number : '' }}

Business Details:

@php $contact_data = contact_data(config('contact_data')); @endphp {!! count($contact_data) == 0 ? 'No business details
' : '' !!} Company Name: {{ env('APP_NAME') }}
Contact No.: {{ $contact_data["primary_phone"]["value"]}}
Address: {{$contact_data["primary_address"]["value"]}}
Email : {{$contact_data["primary_email"]["value"]}}
Vat No. : {{ config('vat.number') }}

Customer Details:

{!! $invoice->customer_details->count() == 0 ? 'No customer details
' : '' !!} Name: {{ $invoice->customer_details->get('name') }}
ID: {{ $invoice->customer_details->get('id') }}
Phone: {{ $invoice->customer_details->get('phone') }}
Country: {{ $invoice->customer_details->get('country') }}
City: {{ $invoice->customer_details->get('city') }}

Items:

@if($invoice->shouldDisplayImageColumn()) @endif @foreach ($invoice->items as $item) @if($invoice->shouldDisplayImageColumn()) @php $imageUrl = asset('storage/qrCodes/invoice-' . $invoice->number.".svg"); $imagePath = public_path('storage/qrCodes/invoice-' . $invoice->number.".svg"); if(file_exists($imagePath)){ $courseImage = base64_encode(file_get_contents($imageUrl)) ; }else{ $courseImage = "" ; } @endphp @endforeach
#ImageID Item Name Price Tax Amount Total
{{ $loop->iteration }} @if(!is_null($courseImage)) @endif @endif {{ $item->get('id') }} {{ $item->get('name') }} {{ $item->get('price') }} {{ $currency }} {{ $invoice->taxPriceFormatted((object)$invoice->taxData[0]) }} {{ $currency }} {{ ($invoice->taxData[0]['tax_type'] == 'percentage') ? ' ('.$invoice->taxData[0]['tax'].'%)': '' }} {{ $item->get('ammount') }} {{ $item->get('price') + $invoice->taxData[0]['amount'] }} {{ $currency }}
@if($invoice->notes)

Notes:

{{ $invoice->notes }}
@endif

Total:

@foreach($invoice->taxData as $tax_rate) @endforeach
Subtotal {{ $invoice->subTotalPriceFormatted() }} {{ $currency }}
{{ $tax_rate['name'].' '.($tax_rate['tax_type'] == 'percentage' ? '(' . $tax_rate['tax'] . '%)' : '') }} {{ $invoice->taxPriceFormatted((object)$tax_rate) }} {{ $currency }}
Discount {{ $invoice->discount }} {{ $currency }}
TOTAL {{ $invoice->total }} {{ $currency }}


Note:
Scan this QR code to view the invoice details.


@php $qrCodeData = base64_encode(file_get_contents(asset('storage/qrCodes/invoice-' . $invoice->number . '.svg'))); @endphp Invoice QR Code