{{-- RECEIPT INFORMATION --}}
Receipt Date
{{ $receipt->receipt_date }}
Supplier
{{ $receipt->supplier_name ?? '-' }}
Location
{{ $receipt->location_name ?? '-' }}
Status
{{ $receipt->receipt_status }}
Invoice No
{{ $receipt->invoice_no ?? '-' }}
Delivery Note
{{ $receipt->delivery_note_no ?? '-' }}
{{-- KPI CARDS --}}
{{ number_format($items->count()) }}
Line Items
{{ number_format($items->sum('quantity_received')) }}
Quantity Received
UGX {{ number_format($items->sum('line_total'), 2) }}
Total Value
{{ $receipt->receipt_status }}
Status
{{-- RECEIPT ITEMS --}}
| Code |
Item |
Batch |
Expiry |
Quantity |
Unit Cost |
Line Total |
@forelse($items as $item)
|
{{ $item->item_code }}
|
{{ $item->item_name }}
|
{{ $item->batch_no }}
|
@if($item->expiry_date)
{{ \Carbon\Carbon::parse($item->expiry_date)->format('d-M-Y') }}
@else
-
@endif
|
{{ number_format($item->quantity_received) }}
|
UGX {{ number_format($item->unit_cost, 2) }}
|
UGX {{ number_format($item->line_total, 2) }}
|
@empty
|
No receipt items found.
|
@endforelse
{{-- REMARKS --}}
{{ $receipt->remarks ?? 'No remarks recorded.' }}
{{-- WORKFLOW INFORMATION --}}
| Requested By |
Approved By |
Posted By |
|
{{ $workflowRequest->requested_by_name ?? '-' }}
|
{{ $receipt->approved_by_name ?? '-' }}
|
{{ $receipt->posted_by_name ?? '-' }}
|
| Requested At |
Approved At |
Posted At |
|
{{ !empty($workflowRequest?->submitted_at)
? \Carbon\Carbon::parse(
$workflowRequest->submitted_at
)->format('d-M-Y H:i')
: '-' }}
|
{{ !empty($receipt->approved_at)
? \Carbon\Carbon::parse(
$receipt->approved_at
)->format('d-M-Y H:i')
: '-' }}
|
{{ !empty($receipt->posted_at)
? \Carbon\Carbon::parse(
$receipt->posted_at
)->format('d-M-Y H:i')
: '-' }}
|
| Workflow |
Current Status |
Action |
|
{{ $workflowRequest->workflow_name ?? '-' }}
|
{{ $workflowRequest->status ?? $receipt->receipt_status }}
|
@if($workflowRequest)
Open Workflow
@else
-
@endif
|
{{-- WORKFLOW HISTORY --}}
@if($workflowActions->count())
| Date |
User |
Action |
Comments |
@foreach($workflowActions as $action)
|
{{ $action->action_at }}
|
{{ $action->action_by_name }}
|
{{ $action->action_type }}
|
{{ $action->comments }}
|
@endforeach
@endif
@endsection