Purchases
All Purchases
Add
Showentries
| Action | Date ⇅ | Reference No ⇅ | Location ⇅ | Supplier ⇅ | Purchase Status ⇅ | Payment Status ⇅ | Grand Total ⇅ | Payment due ℹ | Added By ⇅ |
|---|---|---|---|---|---|---|---|---|---|
|
|
{{ \Carbon\Carbon::parse($purchase->purchase_date)->format('M d, Y') }} | {{ $purchase->reference_no }} | {{ $purchase->business_location ?? 'EDUC Pharmacy' }} | {{ $purchase->supplier->name ?? 'N/A' }} | {{ ucfirst($purchase->status) }} | {{ ucfirst($purchase->payment_status) }} | MWK {{ number_format($purchase->grand_total, 2) }} | @if($purchase->payment_status == 'due') MWK {{ number_format($purchase->grand_total, 2) }} @elseif($purchase->payment_status == 'partial') MWK {{ number_format($purchase->grand_total - ($purchase->paid_amount ?? 0), 2) }} @else MWK 0.00 @endif | {{ $purchase->user->name ?? 'System' }} |
| No data available in table | |||||||||
| Total: | MWK {{ number_format($purchases->sum('grand_total'), 2) }} |
Purchase Due - MWK {{ number_format($purchases->where('payment_status', 'due')->sum('grand_total'), 2) }} Purchase Return - MWK 0.00 |
|||||||