@php $format = request('format', 'invoice'); @endphp @if($format === 'delivery_docket') @include('backend.sales.delivery_docket_pdf') @elseif($format === 'freight') @include('backend.sales.freight_pdf') @else {{-- Default Invoice Format --}}
|
@php
$base64Image = base64_encode(
file_get_contents(public_path('assets/images/tyres_logo.png')),
);
@endphp
Sales@tyresplanet.com.au |
ABN: 95 633 998 624 |
TAX INVOICETyres Planet PTY LTD209 Mcroyle St, Wacol 4076 CALL: 07 3144 3131 |
| Customer Information | --}}
Customer Information
|
Invoice
|
|
Customer: Cash Sale Email: {{ $cashSaleData['cash_sale_email'] ?? '' }} Company Name: {{ $cashSaleData['cash_sale_company_name'] ?: 'Cash Sale' }} |
Invoice No: {{ $order->code }} Date: {{ \Carbon\Carbon::parse($order->created_at)->format('d-m-Y') }} Payment: {{ strtoupper(str_replace('_', ' ', $order->payment_method ?? '-')) }} Payment Status:{{ ucwords(str_replace('_', ' ', $order->payment_status)) }} Shipping: @if ($order->shipping_method === 'pickup') Pick-up @else Delivery @endif |
|
Bill To
|
Ship To
|
Invoice
|
|
@if ($customer['company_name'])
Name: {{ $customer['company_name'] ?? '-' }} @else Name: {{ $billSource->name ?? ($billJson['name'] ?? '-') }} @endif Address: {{ $billFullAddress }} Phone: {{ $billSource->phone ?? ($billJson['phone'] ?? '-') }} Email: {{ $billSource->email ?? ($billJson['email'] ?? '-') }} |
@if ($shippingAddress)
Name: {{ $shippingAddress->name }} @else Name: {{ $shippingJson['name'] ?? '-' }} @endif Address: {{ $shippingFullAddress }} @if ($shippingAddress) Phone: {{ $shippingAddress->phone }} Email: {{ $shippingAddress->email }} @else Phone: {{ $shippingJson['phone'] ?? '-' }} Email: {{ $shippingJson['email'] ?? '-' }} @endif |
Invoice No: {{ $order->code }} Date: {{ \Carbon\Carbon::parse($order->created_at)->format('d-m-Y') }} Payment: {{ strtoupper(str_replace('_', ' ', $order->payment_method ?? '-')) }} Payment Status:{{ ucwords(str_replace('_', ' ', $order->payment_status)) }} Shipping: @if ($order->shipping_method === 'pickup') Pick-up @else Delivery @endif |
|
@php
$base64Image = base64_encode(
file_get_contents(public_path('assets/images/tyres_logo.png')),
);
@endphp
Sales@tyresplanet.com.au |
ABN: 95 633 998 624 |
TAX INVOICETyres Planet PTY LTD209 Mcroyle St, Wacol 4076 CALL: 07 3144 3131 |
| Customer Information | --}}
Customer Information
|
Invoice
|
|
Customer: Cash Sale Email: {{ $cashSaleData['cash_sale_email'] ?? '' }} Company Name: {{ $cashSaleData['cash_sale_company_name'] ?: 'Cash Sale' }} |
Invoice No: {{ $order->code }} Date: {{ \Carbon\Carbon::parse($order->created_at)->format('d-m-Y') }} Payment: {{ strtoupper(str_replace('_', ' ', $order->payment_method ?? '-')) }} Payment Status:{{ ucwords(str_replace('_', ' ', $order->payment_status)) }} Shipping: @if ($order->shipping_method === 'pickup') Pick-up @else Delivery @endif |
|
Bill To
|
Ship To
|
Invoice
|
|
@if ($customer['company_name'])
Name: {{ $customer['company_name'] ?? '-' }} @else Name: {{ $billSource->name ?? ($billJson['name'] ?? '-') }} @endif Address: {{ $billFullAddress }} Phone: {{ $billSource->phone ?? ($billJson['phone'] ?? '-') }} Email: {{ $billSource->email ?? ($billJson['email'] ?? '-') }} |
@if ($shippingAddress)
Name: {{ $shippingAddress->name }} @else Name: {{ $shippingJson['name'] ?? '-' }} @endif Address: {{ $shippingFullAddress }} @if ($shippingAddress) Phone: {{ $shippingAddress->phone }} Email: {{ $shippingAddress->email }} @else Phone: {{ $shippingJson['phone'] ?? '-' }} Email: {{ $shippingJson['email'] ?? '-' }} @endif |
Invoice No: {{ $order->code }} Date: {{ \Carbon\Carbon::parse($order->created_at)->format('d-m-Y') }} Payment: {{ strtoupper(str_replace('_', ' ', $order->payment_method ?? '-')) }} Payment Status:{{ ucwords(str_replace('_', ' ', $order->payment_status)) }} Shipping: @if ($order->shipping_method === 'pickup') Pick-up @else Delivery @endif |
| No | Product Description | Price | Qty | Subtotal | Tax(%) | Tax($) | Total |
|---|---|---|---|---|---|---|---|
| {{ $globalIndex + 1 }} | {{ $product['name'] ?? '-' }} | ${{ number_format($product['price'], 2) }} | {{ $product['quantity'] }} | ${{ number_format($subtotal, 2) }} | {{ $tax_percent > 0 ? $tax_percent . '%' : '0%' }} | ${{ number_format($tax_amount, 2) }} | ${{ number_format($lineTotal, 2) }} |