@extends('layouts.app') @section('title', 'Invoice ' . $invoice->invoice_number . ' - Pavitram Agroz') @section('content')
Billed on {{ $invoice->invoice_date->format('l, d M Y at H:i:s') }} at {{ $invoice->store->name }}
| # | Product & Description | Individual Serial # | Batch / Expiry | Base Price | Discount | GST % | CGST | SGST | Total Line (₹) | Unit State |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $idx + 1 }} |
{{ $item->product_name }}
{{ $item->product_sku }} | Code: {{ $item->product_code }}
|
{{ $item->serial_number }} |
{{ $item->batch->batch_number ?? '-' }}
{{ $item->batch && $item->batch->expiry_date ? $item->batch->expiry_date->format('d M Y') : '-' }}
|
₹{{ number_format($item->unit_price, 2) }} | {{ $item->discount_amount > 0 ? '-₹' . number_format($item->discount_amount, 2) : '-' }} | {{ $item->tax_rate }}% | ₹{{ number_format($item->cgst_amount, 2) }} | ₹{{ number_format($item->sgst_amount, 2) }} | ₹{{ number_format($item->line_total, 2) }} | @if($item->is_returned) Returned @elseif($invoice->is_cancelled) Reverted @else Sold @endif |