Tax Invoice
@php $base64Image = base64_encode(file_get_contents(public_path('assets/images/tyres_logo.png'))); @endphp {{-- --}} Logo Tyres Planet PTY LTD

209 Mcroyle St, Wacol 4076
CALL: 07 3144 3131
CALL: 0488 413 131
E-mail: cst@tyresplanet.com.au

@if ($order->shipping_address) @php $shipping = json_decode($order->shipping_address, true); @endphp @endif
Invoice No : {{ $order->code }} Payment Mode: {{ $order->payment_method ?? '-' }}
Invoice Date : {{ \Carbon\Carbon::parse($order->created_at)->format('d-m-Y') }} Payment Status: {{ $order->payment_status ?? '-' }}
Bill To Ship To
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'] ?? '-' }}
{{-- --}} @php $totalQty = 0; $totalAmount = 0; $totalTaxAmount = 0; $finalTotal = 0; $rowCount = 0; @endphp @foreach ($order->orderProducts as $index => $detail) @php $totalQty += $detail->qty; $subtotal = $detail->amount; $totalAmount += $subtotal; $rowCount++; $tax_percent = $detail->tax_percent ?? 0; $tax_amount = $detail->tax_amount ?? 0; $totalTaxAmount += $tax_amount; $finalTotal += $subtotal + $tax_amount; @endphp {{-- --}} @endforeach @php $emptyRows = 18 - $rowCount; @endphp @for ($i = 0; $i < $emptyRows; $i++) {{-- --}} @endfor
Sr Item NameHSNQty Rate Subtotal Tax Total
% Amount
{{ $index + 1 }} {{ $detail->product_name ?? '-' }}{{ $detail->product->hsn ?? '-' }}{{ $detail->qty }} ${{ number_format($detail->price, 2) }} ${{ number_format($subtotal, 2) }} {{ $tax_percent > 0 ? $tax_percent . '%' : '0%' }} ${{ number_format($tax_amount, 2) }} ${{ number_format($subtotal + $tax_amount, 2) }}
               
Sub-Total {{ $totalQty }} - ${{ number_format($totalAmount, 2) }} - ${{ number_format($finalTotal, 2) }}
@php $rounded_total = round($order->sub_total); $rounding_amt = $rounded_total - ($order->sub_total); @endphp
Summary Amount
Tax Amount : ${{ number_format($order->tax_amount ?? 0, 2) }}
Discount Amount : ${{ number_format($order->discount_total_amount ?? 0, 2) }}
Charges Amount: ${{ number_format($order->charges_totalamount ?? 0, 2) }}
Round Off : ${{ number_format($rounding_amt, 2) }}
Invoice Total in Word Total Amount : ${{ number_format($rounded_total, 2) }}
{{ convert_number_to_words($rounded_total) }} Only
@if ($selectedTerms->isNotEmpty()) @endif {{-- --}}
Terms and Conditions:
@foreach ($selectedTerms as $term) @php // Split each line properly, remove empty lines $lines = array_values(array_filter( array_map('trim', preg_split("/\r\n|\n|\r/", strip_tags($term->description))) )); @endphp {{-- Print all lines equally aligned --}} @foreach ($lines as $line)
• {{ ltrim($line, '-• ') }}
@endforeach @endforeach
Receive Signature Authorised Signature
Thank You For Business With Us!