Inventory Usage Report

Generated: {{ now()->format('Y-m-d H:i:s') }}

@forelse($data as $patientGroup) @php $subtotal = 0; @endphp @foreach($patientGroup['usages'] ?? [] as $usage) @php $subtotal += $usage['total_cost'] ?? 0; @endphp @endforeach @empty @endforelse
Patient Name Item Name Quantity Unit Unit Cost Total Cost Used By
{{ $patientGroup['patient_name'] ?? '-' }} {{ $usage['item_name'] ?? '-' }} {{ $usage['converted_qty'] ?? 0 }} {{ $usage['unit_name'] ?? '-' }} {{ number_format($usage['unit_cost_price'] ?? 0, 2) }} {{ number_format($usage['total_cost'] ?? 0, 2) }} {{ $usage['user_name'] ?? '-' }}
Patient Subtotal: {{ number_format($subtotal, 2) }}
No usage records found