@if($read2PlanOrders->isEmpty())
All caught up! No orders pending for planning.
@endif
@foreach ($read2PlanOrders as $order)
Customer
{{ $order->customer?->company ?? 'N/A' }}
Order Date
{{ \Carbon\Carbon::parse($order->sales_order_date)->format('d M, Y') }}
@endforeach
@if($planningOrders->isEmpty())
No active production plans found.
@endif
@foreach ($planningOrders as $order)
Client
{{ $order->customer?->company ?? '-' }}
Steps
{{ $order->routeCard->processes->count() }} Process
Planner
{{ $order->routeCard->approved_by ?? 'Admin' }}
@if ($order->routeCard->status === 'approved')
@else
@endif
@endforeach