@php $gross = $invoice->lines->sum('gross'); $net = $invoice->lines->sum('net'); $balanceDue = (float) $invoice->previous_balance + $net; @endphp
← Back to list
Awami Laboratories
Herbal Medicine Manufacturers
{{ $view === 'challan' ? 'Delivery Challan' : 'Sales Invoice' }}
{{ $invoice->customer->name }}
{{ collect([$invoice->customer->village, $invoice->customer->district, $invoice->customer->province])->filter()->implode(', ') }}
Sales Executive: {{ $invoice->salesStaff->name ?? '-' }}
{{ $view === 'challan' ? 'Challan' : 'Invoice' }} #: {{ $invoice->code }}
Date: {{ $invoice->invoice_date->format('Y-m-d') }}
@foreach ($invoice->lines as $line) @endforeach
Item Batch # Qty Rate Gross Discount Net
{{ $line->item->name }} {{ $line->batch->code }} {{ $line->qty }} Rs {{ number_format($line->rate, 2) }} Rs {{ number_format($line->gross, 2) }} {{ collect(\App\Support\Discounts::tiers($line->category))->map(fn ($p) => $p.'%')->implode(' + ') ?: '-' }} Rs {{ number_format($line->net, 2) }}
Gross TotalRs {{ number_format($gross, 2) }}
Total DiscountRs {{ number_format($gross - $net, 2) }}
Invoice NetRs {{ number_format($net, 2) }}
Previous BalanceRs {{ number_format($invoice->previous_balance, 2) }}
Balance DueRs {{ number_format($balanceDue, 2) }}
Manufactured under license in accordance with DRAP Act 2012. This product has not been evaluated for treatment of any disease and is not intended to diagnose, treat, cure or prevent any disease.