@extends('layouts.superadmin') @section('title', 'Datewise Short SO') @section('page-title', 'Datewise Short SO') @section('content')
Filter
Reset
@if(isset($shortSos) && count($shortSos))
Short SOs
Export CSV {{ count($shortSos) }}
@foreach($shortSos as $idx => $row) @php $soNo = (string) $row->so_no; $collapseId = 'shortSoCollapse_' . $idx; $shortItemsCount = isset($detailsBySo[$soNo]) ? count($detailsBySo[$soNo]) : 0; @endphp @endforeach
View SO No Location Location ID Packing Date Short Items
{{ $soNo }} {{ $row->location_name ?? '-' }} {{ $row->location_id ?? '-' }} {{ $row->last_packed_at ? \Carbon\Carbon::parse($row->last_packed_at)->format('d-m-Y H:i') : '-' }} {{ $shortItemsCount }}
@if($shortItemsCount)
@foreach($detailsBySo[$soNo] as $item) @endforeach
Item Name Ordered Packed Short
{{ $item['item'] ?? '-' }} {{ $item['ordered_qty'] ?? 0 }} {{ $item['packed_qty'] ?? 0 }} {{ $item['short_qty'] ?? 0 }}
@else
No short items computed.
@endif
@elseif(request()->has('from_date') || request()->has('to_date'))
No short SOs found for selected date range.
@else
Select date range and click Search to view short SOs.
@endif
@endsection