@extends('layouts.admin-simple') @section('title', 'Consumption Details') @section('breadcrumb')
Consumption record details
| Consumption Number | {{ $consumption->consumption_number }} |
|---|---|
| Date | {{ $consumption->consumption_date ? $consumption->consumption_date->format('d M Y') : '-' }} |
| Project | {{ $consumption->project ? $consumption->project->project_name : '-' }} |
| Indirect Good | @if($consumption->indirectGood) {{ $consumption->indirectGood->ig_code }} - {{ $consumption->indirectGood->ig_description }} @else - @endif |
| Invoice Number | {{ $consumption->invoice_number ?: '-' }} |
| Quantity Consumed | {{ number_format($consumption->quantity_consumed, 2) }} |
| Consumption Type | @php $typeBadges = [ 'consumed' => 'success', 'written_off' => 'warning', 'damaged' => 'danger', 'expired' => 'secondary', ]; @endphp {{ ucfirst(str_replace('_', ' ', $consumption->consumption_type)) }} |
| Reason | {{ $consumption->reason ?: '-' }} |
| Recorded By | {{ $consumption->recorder ? $consumption->recorder->name : '-' }} |
|---|---|
| Approved By | {{ $consumption->approver ? $consumption->approver->name : '-' }} |
| Created At | {{ $consumption->created_at->format('d M Y H:i') }} |