{{-- ===================================================== SCREEN ACTIONS ====================================================== --}} {{-- ===================================================== HEADER ====================================================== --}}
Akhandam Kendra
Stationery & Digital Services

INVOICE

Invoice: {{ $sale->invoice_no ?: $sale->sale_no }}
Date: {{ $sale->sale_date ? $sale->sale_date->format('d-m-Y') : '-' }}
{{-- ===================================================== CUSTOMER / BILL INFORMATION ====================================================== --}}
{{-- Customer --}}
Bill To
@if($sale->customer_name) {{ $sale->customer_name }} @else Walk-in Customer @endif
@if($sale->customer_phone)
Phone: {{ $sale->customer_phone }}
@endif
{{-- Sale Information --}}
Sale Information
Sale No: {{ $sale->sale_no }}
Payment: {{ $sale->payment_status }}
{{-- ===================================================== PRODUCTS ====================================================== --}} @forelse($sale->items as $item) @empty @endforelse
# Product Qty Rate GST Amount
{{ $loop->iteration }} {{ $item->product->name ?? 'Product Deleted' }} @if($item->product?->sku) SKU: {{ $item->product->sku }} @endif {{ number_format( (float) $item->qty, 2 ) }} @if( (float) $item->free_qty > 0 )
+{{ number_format( (float) $item->free_qty, 2 ) }} Free @endif
₹{{ number_format( (float) $item->selling_price, 2 ) }} {{ number_format( (float) $item->gst_rate, 2 ) }}%
₹{{ number_format( (float) $item->tax_amount, 2 ) }}
₹{{ number_format( (float) $item->line_total, 2 ) }}
No products found.
{{-- ===================================================== PAYMENT + TOTAL ====================================================== --}} @php $grandTotal = round( (float) $sale->grand_total, 2 ); $totalPaid = round( (float) $sale->payments->sum('amount'), 2 ); $outstanding = max( 0, round( $grandTotal - $totalPaid, 2 ) ); @endphp
{{-- Payment Information --}}
Payment Information
@if($sale->payments->count()) @foreach( $sale->payments->sortByDesc('payment_date') as $payment )
{{ $payment->payment_date ? $payment->payment_date->format('d-m-Y') : '-' }} - {{ $payment->payment_method }} ₹{{ number_format( (float) $payment->amount, 2 ) }}
@if($payment->reference_no)
Reference {{ $payment->reference_no }}
@endif @endforeach @else
Payment Received ₹0.00
@endif
{{-- Total Summary --}}
@if($outstanding > 0) @else @endif
Subtotal ₹{{ number_format( (float) $sale->subtotal, 2 ) }}
Discount ₹{{ number_format( (float) $sale->discount, 2 ) }}
GST / Tax ₹{{ number_format( (float) $sale->gst_total, 2 ) }}
Grand Total ₹{{ number_format( $grandTotal, 2 ) }}
Paid ₹{{ number_format( $totalPaid, 2 ) }}
Balance ₹{{ number_format( $outstanding, 2 ) }}
Balance PAID
{{-- ===================================================== NOTES ====================================================== --}} @if($sale->notes)
Notes
{{ $sale->notes }}
@endif {{-- ===================================================== FOOTER ====================================================== --}}