{{ $settings->store_name ?? 'EchoPx Store' }}
@if($settings?->store_address){{ $settings->store_address }}
@endif @if($settings?->store_phone)Tel: {{ $settings->store_phone }}
@endif @if($settings?->store_gstin)GSTIN: {{ $settings->store_gstin }}@endif
INVOICE
{{ $sale->invoice_no }}
PAID
Bill To
@if($customer) {{ $customer->name }}
@if($customer->email){{ $customer->email }}
@endif @if($customer->phone){{ $customer->phone }}
@endif @if($customer->address){{ $customer->address }}@endif @else Walk-in Customer
@if($sale->customer_name){{ $sale->customer_name }}
@endif @if($sale->customer_phone){{ $sale->customer_phone }}@endif @endif
Invoice Details
Date: {{ $sale->created_at->format('d M Y') }}
Time: {{ $sale->created_at->format('h:i A') }}
Cashier: {{ $sale->admin->name ?? '-' }}
@foreach($sale->items as $item) @endforeach
Item Description Qty Rate Tax Amount
{{ $item->product_name }}
@if($item->variant_name)
Variant: {{ $item->variant_name }}
@endif
{{ $item->qty }} ₹{{ number_format($item->price, 2) }} @if($item->tax_rate > 0) {{ $item->tax_rate }}% (₹{{ number_format($item->tax_amount ?? 0, 2) }}) @else - @endif ₹{{ number_format($item->line_total + ($item->tax_amount ?? 0), 2) }}
@if($sale->discount_amount > 0) @endif @if($sale->tax_amount > 0) @endif
Subtotal ₹{{ number_format($sale->subtotal, 2) }}
Discount -₹{{ number_format($sale->discount_amount, 2) }}
Tax ₹{{ number_format($sale->tax_amount, 2) }}
Total ₹{{ number_format($sale->total, 2) }}
Payment Information
Method: {{ strtoupper($sale->payment_method) }}   |   @if($sale->payment_method == 'cash') Received: ₹{{ number_format($sale->cash_received ?? $sale->total, 2) }}   |   Change: ₹{{ number_format($sale->change_amount ?? 0, 2) }}   |   @endif Status: PAID