@extends('layouts.admin-simple') @section('title', 'Division Deliveries Report') @section('breadcrumb') @endsection @section('page-title')

Division Deliveries Report

Track total deliveries, current stock, and utilization by division

@endsection @section('content')
@if($divisionSummary->count() > 0)
analytics Division-wise Summary
@foreach($divisionSummary as $summary) @endforeach
Division Items Total Qty Warehouse On Project Returned Balance to Return Total Value
{{ $summary->division->division_name ?? 'Unknown' }} {{ $summary->item_count }} {{ number_format($summary->grand_total, 2) }} {{ number_format($summary->available_stock, 2) }} {{ number_format($summary->total_issued, 2) }} {{ number_format($summary->total_returned, 2) }} @php $balanceToReturn = $summary->balance_to_return; $balanceClass = $balanceToReturn > 0 ? 'text-warning' : ($balanceToReturn < 0 ? 'text-danger' : 'text-muted'); @endphp {{ number_format($balanceToReturn, 2) }} AED {{ number_format($summary->total_value, 2) }}
Total {{ $divisionSummary->sum('item_count') }} {{ number_format($divisionSummary->sum('grand_total'), 2) }} {{ number_format($divisionSummary->sum('available_stock'), 2) }} {{ number_format($divisionSummary->sum('total_issued'), 2) }} {{ number_format($divisionSummary->sum('total_returned'), 2) }} @php $totalBalanceToReturn = $divisionSummary->sum('balance_to_return'); $totalBalanceClass = $totalBalanceToReturn > 0 ? 'text-warning' : ($totalBalanceToReturn < 0 ? 'text-danger' : 'text-muted'); @endphp {{ number_format($totalBalanceToReturn, 2) }} AED {{ number_format($divisionSummary->sum('total_value'), 2) }}
@endif
filter_list Filters
local_shipping Division Deliveries Report ({{ $deliveries->total() }} total records)
Loading...
Loading delivery data...
@forelse($deliveries as $delivery) @empty @endforelse
Item Code Description Division Total Qty Warehouse On Project Returned FOC Qty Damaged Qty Total Value
{{ $delivery->item->item_code ?? '-' }} {{ Str::limit($delivery->item->item_description ?? '-', 30) }} @if($delivery->division) {{ Str::limit($delivery->division->division_name, 12) }} @else - @endif {{ number_format($delivery->calculated_total_qty ?? 0, 2) }} {{ number_format($delivery->calculated_available_stock ?? 0, 2) }} {{ number_format($delivery->calculated_balance_to_return ?? 0, 2) }} @php // Total returned = good items returned + damaged items returned $totalReturned = ($delivery->calculated_total_returned ?? 0) + ($delivery->damaged_quantity ?? 0); @endphp {{ number_format($totalReturned, 2) }} @if(($delivery->foc_quantity ?? 0) > 0) {{ number_format($delivery->foc_quantity, 2) }} @else - @endif @if(($delivery->damaged_quantity ?? 0) > 0) {{ number_format($delivery->damaged_quantity, 2) }} @else - @endif AED {{ number_format($delivery->total_value ?? 0, 2) }}
local_shipping
No Division Delivery Records Found

No deliveries match your current filters.

@if($deliveries->hasPages()) @endif
@endsection @section('modals') @endsection @push('styles') @endpush @push('scripts') @endpush