@extends('layouts.location') @section('title', 'Ready for Dispatch') @section('page-title', 'Ready for Dispatch') @section('content')
Ready for Dispatch
@php $dispatchList = collect($dispatchList ?? []); @endphp @if($dispatchList->isEmpty())
No dispatched orders found.
@else
@foreach($dispatchList as $row) @php $soList = ''; try { $decoded = json_decode($row->so_numbers ?? '[]', true); if (is_array($decoded)) { $soList = collect($decoded)->filter()->implode(', '); } } catch (\Throwable $e) {} if ($soList === '' && !empty($row->so_numbers)) { $soList = $row->so_numbers; } @endphp @endforeach
Pic ID SO Numbers Picking Status Picking Date Packing Status Packing Date Booking Status Booking Date
{{ $row->pic_id }} {{ $soList }} {{ $row->picking_status }} {{ $row->picking_date_complete }} {{ $row->packing_status }} {{ $row->packing_date_complete }} {{ $row->booking_status }} {{ $row->booking_date_complete }}
@endif
@endsection