@php $base64Image = base64_encode(file_get_contents(public_path('assets/images/tyres_logo.png'))); @endphp Logo

Sales@tyresplanet.com.au

www.tyresplanet.com.au

ABN: 95 633 998 624

TAX INVOICE

Tyres Planet PTY LTD

209 Mcroyle St, Wacol 4076

CALL: 07 3144 3131

@if ($order->shipping_address) @php $shipping = json_decode($order->shipping_address, true); @endphp
Bill To
Ship To
Invoice
Name: {{ $BillingAddress['name'] ?? '-' }}
Phone: {{ $BillingAddress['phone'] ?? '-' }}
Email: {{ $BillingAddress['email'] ?? '-' }}
Address: {{ $BillingAddress['address'] ?? '-' }},{{ $BillingAddress['city'] ?? '-' }},{{ $BillingAddress['state'] ?? '-' }},{{ $BillingAddress['country'] ?? '-' }}
Name: {{ $ShippingAddress['name'] ?? '-' }}
Phone: {{ $ShippingAddress['phone'] ?? '-' }}
Email: {{ $ShippingAddress['email'] ?? '-' }}
Address: {{ $ShippingAddress['address'] ?? '-' }},{{ $ShippingAddress['city'] ?? '-' }},{{ $ShippingAddress['state'] ?? '-' }},{{ $ShippingAddress['country'] ?? '-' }}

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)) }}

@endif
@php $productsPerPage = 10; $productChunks = array_chunk($order->orderProducts->toArray(), $productsPerPage); // Calculate total tax amount from all products $totalTaxAmount = 0; foreach ($order->orderProducts as $product) { $totalTaxAmount += $product->tax_amount ?? 0; } @endphp @foreach ($productChunks as $chunkIndex => $productChunk) @if ($chunkIndex > 0)
@endif
@if ($chunkIndex > 0)
@php $base64Image = base64_encode(file_get_contents(public_path('assets/images/tyres_logo.png'))); @endphp Logo

Sales@tyresplanet.com.au

www.tyresplanet.com.au

ABN: 95 633 998 624

TAX INVOICE

Tyres Planet PTY LTD

209 Mcroyle St, Wacol 4076

CALL: 07 3144 3131

@if ($order->shipping_address)
Bill To
Ship To
Invoice
Name: {{ $BillingAddress['name'] ?? '-' }}
Phone: {{ $BillingAddress['phone'] ?? '-' }}
Email: {{ $BillingAddress['email'] ?? '-' }}
Address: {{ $BillingAddress['address'] ?? '-' }},{{ $BillingAddress['city'] ?? '-' }},{{ $BillingAddress['state'] ?? '-' }},{{ $BillingAddress['country'] ?? '-' }}
Name: {{ $ShippingAddress['name'] ?? '-' }}
Phone: {{ $ShippingAddress['phone'] ?? '-' }}
Email: {{ $ShippingAddress['email'] ?? '-' }}
Address: {{ $ShippingAddress['address'] ?? '-' }},{{ $ShippingAddress['city'] ?? '-' }},{{ $ShippingAddress['state'] ?? '-' }},{{ $ShippingAddress['country'] ?? '-' }}

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)) }}

@endif
@endif
@foreach ($productChunk as $index => $detail) @php $globalIndex = ($chunkIndex * $productsPerPage) + $index; $subtotal = $detail['amount']; $tax_percent = $detail['tax_percent'] ?? 0; $tax_amount = $detail['tax_amount'] ?? 0; @endphp @endforeach
No Product Description Price Qty Subtotal Tax(%) Tax($) Total
{{ $globalIndex + 1 }} {{ $detail['product_name'] ?? '-' }} ${{ number_format($detail['price'], 2) }} {{ $detail['qty'] }} ${{ number_format($subtotal, 2) }} {{ $tax_percent > 0 ? $tax_percent . '%' : '0%' }} ${{ number_format($tax_amount, 2) }} ${{ number_format($subtotal + $tax_amount, 2) }}
@endforeach