{{ ucfirst($purchase->status) }}
@switch($purchase->status) @case('pending') Purchase is pending approval @break @case('approved') Purchase approved, waiting to be received @break @case('received') Purchase received, ready to add to inventory @break @case('completed') Purchase completed and added to inventory @break @case('delivered') Services delivered successfully @break @case('cancelled') Purchase cancelled @break @endswitch
Due: KES {{ number_format($purchase->grand_total - $purchase->paid_amount, 2) }} @endif
Invoice Number
{{ $purchase->invoice_no }}
Supplier
{{ $purchase->supplier->name }}
{{ $purchase->supplier->phone }}
Purchase Date
{{ $purchase->purchase_date->format('M d, Y') }}
{{ $purchase->purchase_date->format('h:i A') }}
Total Amount
KES {{ number_format($purchase->grand_total, 2) }}
Purchase Items
| Type | Item | Qty | Unit Price | Tax | Total | Status |
|---|---|---|---|---|---|---|
| @if($item->item_type === 'service' || ($item->product && $item->product->is_service)) Service @else Inventory @endif |
@if($item->item_type === 'service')
{{ $item->description }}
@else
{{ $item->product->name ?? 'Product #' . $item->product_id }}
@endif
@if($item->item_type === 'product' && $item->product)
SKU: {{ $item->product->sku }} @endif @if($item->batch_number) Batch: {{ $item->batch_number }} @endif @if($item->expiry_date) Expires: {{ $item->expiry_date->format('M d, Y') }} @endif |
{{ $item->quantity }} | KES {{ number_format($item->unit_price, 2) }} |
@if($item->tax_percent)
{{ $item->tax_percent }}% KES {{ number_format($item->tax_amount, 2) }} @else - @endif |
KES {{ number_format($item->total, 2) }} | @if($item->added_to_stock) In Stock @elseif($item->item_type === 'service' || ($item->product && $item->product->is_service)) Service @else Pending @endif |
Activity Timeline
Purchase Created
{{ $purchase->created_at->format('M d, Y h:i A') }}
Created by: {{ $purchase->creator->name ?? 'System' }}
Purchase Approved
{{ $purchase->approved_at->format('M d, Y h:i A') }}
Approved by: {{ $purchase->approver->name ?? 'System' }}
Purchase Received
{{ $purchase->received_at->format('M d, Y h:i A') }}
Received by: {{ auth()->user()->name }}
Added to Inventory
{{ $purchase->updated_at->format('M d, Y h:i A') }}
Inventory updated by system
Notes
{{ $purchase->notes }}