| Action | Date | Reference No | Location | Supplier | Purchase Status | Payment Status | Grand Total | Payment due | Added By |
|---|---|---|---|---|---|---|---|---|---|
|
Print
Edit
View Payments
@if(($status ?? '') === 'received')
Purchase Return
@else
Purchase Return
@endif
Update Status
|
{{ optional($bill->supplier_bill_details_create_date)->format('Y-m-d') }} | {{ $bill->supplier_bill_details_billnumber }} | {{ $bill->location->name ?? '' }} | {{ $bill->supplier->supplier_name ?? '' }} | {{ strtoupper($status) }} | @php $badgeClass = match($paymentStatus) { 'PAID' => 'bg-green-100 text-green-800', 'CHEQUE' => 'bg-blue-100 text-blue-800', 'PARTIAL' => 'bg-yellow-100 text-yellow-800', 'CANCELLED' => 'bg-red-100 text-red-800', default => 'bg-gray-100 text-gray-800', }; @endphp {{ $paymentStatus }} | {{ number_format($total, 2) }} | {{ number_format($dueDisplay, 2) }} | {{ $bill->createdByUser->name ?? '' }} |
| No purchases found | |||||||||
| Total | Draft: {{ $statusCounts['draft'] }} | Received: {{ $statusCounts['received'] }} | Cancelled: {{ $statusCounts['cancelled'] }} | Paid: {{ $paymentCounts['PAID'] }} | Partial: {{ $paymentCounts['PARTIAL'] }} | Due: {{ $paymentCounts['UNPAID'] }} | Cancelled: {{ $paymentCounts['CANCELLED'] }} | {{ number_format($totalGrand, 2) }} |
Purchase Due: {{ number_format($totalDue, 2) }}
Purchase Return: {{ number_format($totalReturned, 2) }}
|
|||||