@php $currency = $business->currency_symbol ?: '₹'; $location = $order->location; $contact = $order->contact; $sellerAddress = array_filter([$location->landmark ?? null, $location->city ?? null, $location->state ?? null, $location->zip_code ?? null, $location->country ?? null]); $buyerAddress = array_filter([$contact->address_line_1 ?? null, $contact->address_line_2 ?? null, $contact->city ?? null, $contact->state ?? null, $contact->zip_code ?? null, $contact->country ?? null]); @endphp

{{ $business->name }}

@if(!empty($business->tax_number_1))
{{ $business->tax_label_1 ?: 'Tax No.' }}: {{ $business->tax_number_1 }}
@endif @if(!empty($business->tax_number_2))
{{ $business->tax_label_2 ?: 'Tax No.' }}: {{ $business->tax_number_2 }}
@endif

Tax Invoice

Invoice: {{ $order->invoice_no }}
Date: {{ \Carbon\Carbon::parse($order->transaction_date)->format('d M Y, h:i A') }}
Payment status: {{ ucfirst($order->payment_status ?: 'due') }}

Sold by

{{ $location->name ?? $business->name }}
{{ implode(', ', $sellerAddress) }} @if(!empty($location->mobile))
{{ $location->mobile }}@endif @if(!empty($location->email))
{{ $location->email }}@endif

Bill to

{{ $contact->supplier_business_name ?: $contact->name }}
@if(!empty($contact->supplier_business_name) && !empty($contact->name)){{ $contact->name }}
@endif {{ implode(', ', $buyerAddress) }} @if(!empty($contact->mobile))
{{ $contact->mobile }}@endif @if(!empty($contact->tax_number))
GSTIN/Tax No.: {{ $contact->tax_number }}@endif
@foreach($order->sell_lines as $line) @php $productName = optional($line->product)->name ?: 'Product'; $variationName = optional($line->variations)->name; $lineTotal = (float) $line->quantity * (float) $line->unit_price_inc_tax; @endphp @endforeach
#ProductQtyUnit priceAmount
{{ $loop->iteration }} {{ $productName }}@if($variationName) — {{ $variationName }}@endif {{ number_format((float) $line->quantity, 2) }} {{ $currency }} {{ number_format((float) $line->unit_price_inc_tax, 2) }} {{ $currency }} {{ number_format($lineTotal, 2) }}
@if((float) $order->tax_amount != 0)@endif @if((float) $order->shipping_charges != 0)@endif
Subtotal{{ $currency }} {{ number_format((float) $order->total_before_tax, 2) }}
Tax{{ $currency }} {{ number_format((float) $order->tax_amount, 2) }}
Shipping{{ $currency }} {{ number_format((float) $order->shipping_charges, 2) }}
Total{{ $currency }} {{ number_format((float) $order->final_total, 2) }}
@if(!empty($order->shipping_details))

Shipping address: {{ $order->shipping_details }}

@endif