@extends('layouts.admin-simple') @section('title', 'Damaged Items Details - ' . ($item->item_description ?? 'Unknown Item')) @section('breadcrumb') @endsection @section('page-title')

Damaged Items Details

Item: {{ $item->item_description ?? 'Unknown Item' }} | Code: {{ $item->item_code ?? 'No Code' }} | Total Damaged: {{ $damagedItems->count() }} instances

arrow_back Back to Summary
@endsection @section('content')
inventory_2 Item Information
Item Code: {{ $item->item_code ?? 'No Code' }}
Description: {{ $item->item_description ?? 'Unknown Item' }}
Category: {{ $item->category->category_name ?? 'No Category' }}
filter_list Filters
@if($focInventory->count() > 0)
recycling FOC Inventory Available ({{ number_format($totalFocAvailable, 2) }} units)
@foreach($focInventory as $foc)
{{ ucfirst($foc->condition) }} {{ $foc->storage_location ?? 'No location' }}
{{ number_format($foc->quantity_available, 2) }}
@endforeach
@endif
warning Damage Records for {{ $item->item_code }} ({{ $damagedItems->total() }} records)
Loading...
Loading damaged items data...
@forelse($damagedItems as $damagedItem) @empty @endforelse
Date Source Reference Quantity Condition Severity Status Total Cost Recoverable Project Responsibility Description Actions
{{ $damagedItem->created_at->format('d M Y') }}
{{ $damagedItem->created_at->format('H:i') }}
{{ $damagedItem->source_reference ?? 'No reference' }}
{{ $sourceTypes[$damagedItem->source_type] ?? $damagedItem->source_type }}
{{ number_format($damagedItem->quantity, 2) }}
{{ $damagedItem->unit }}
{{ ucfirst($damagedItem->condition) }} {{ $severities[$damagedItem->damage_severity] ?? ucfirst($damagedItem->damage_severity) }} {{ $statuses[$damagedItem->status] ?? ucfirst($damagedItem->status) }}
{{ number_format($damagedItem->total_cost, 2) }}
{{ number_format($damagedItem->recoverable_amount, 2) }}

{{ number_format(($damagedItem->recoverable_amount / max($damagedItem->total_cost, 1)) * 100, 1) }}%
{{ $damagedItem->project->project_name ?? 'No Project' }} {{ $responsibilities[$damagedItem->cost_responsibility] ?? ucfirst($damagedItem->cost_responsibility) }}
{{ Str::limit($damagedItem->damage_description ?? 'No description', 50) }}
warning
No Damage Records Found

No damage records found for this item with current filters.

@if(method_exists($damagedItems, 'links'))
{{ $damagedItems->links() }}
@endif @endsection @push('styles') @endpush @push('scripts') @endpush