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') }}
' : '' !!} 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') }}
' : '' !!} 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())Image | @endifID | Item Name | Price | Tax | Amount | Total |
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | @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
@if(!is_null($courseImage))
| {{ $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)
@endif
Notes:
{{ $invoice->notes }}
Total:
| 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.
Scan this QR code to view the invoice details.
@php
$qrCodeData = base64_encode(file_get_contents(asset('storage/qrCodes/invoice-' . $invoice->number . '.svg')));
@endphp