@extends('layouts.admin-simple') @section('title', 'FOC Summary Report') @section('breadcrumb')
Item-wise overview of damaged inventory
| Item | Category | Source | Records | Total Qty | Damaged Qty | Total Cost | FOC Available | Loss Amount | Actions |
|---|---|---|---|---|---|---|---|---|---|
|
inventory_2
{{ Str::limit($summary->item_description ?? 'Unknown Item', 45) }}
{{ $summary->item_code ?? 'No code' }}
|
{{ $summary->category_name ?? 'No Category' }} |
@if(($summary->source_category ?? '') === 'supplier_foc')
Supplier FOC
@if($summary->division_name ?? null)
{{ $summary->division_name }} @endif @else Damaged/Converted @endif |
{{ $summary->record_count }}
records |
@php
// For supplier FOC: Total = FOC Available (no damaged qty)
// For damaged items: Total = Damaged Qty + FOC Available
$totalQty = ($summary->source_category ?? '') === 'supplier_foc'
? $summary->foc_available
: $summary->total_quantity + $summary->foc_available;
@endphp
{{ number_format($totalQty, 2) }}
{{ $summary->unit ?? 'units' }} |
@if(($summary->source_category ?? '') === 'supplier_foc')
-
N/A @else {{ number_format($summary->total_quantity, 2) }} {{ $summary->unit ?? 'units' }} @endif |
{{ number_format($summary->total_cost, 2) }}
|
{{ number_format($summary->foc_available, 2) }}
available |
{{ number_format($summary->loss_amount, 2) }}
|
@php // Only pass relevant filters to details page (not item-level filters like search, category_id) $detailsParams = array_filter([ 'date_from' => request('date_from'), 'date_to' => request('date_to'), 'project_id' => request('project_id'), ]); $detailsUrl = route('warehouse.reports.damaged-items-details', $summary->item_id); if (!empty($detailsParams)) { $detailsUrl .= '?' . http_build_query($detailsParams); } @endphp visibility |
|
inventory_2
No damaged items found |
|||||||||