{{ __('ESTADO DE LAS ORDENES DE RETIRO') }}

@foreach ($ordersUser as $order) @foreach($order->orderDetails as $detail) @endforeach @endforeach
# Orden de retiro Fecha de Recibido Estado Cliente Cantidad Categoría Tipo Extintor Marca Número ó Serie Prioridad QR
{{ $order->id }} {{ $order->created_at_format }} {{ \App\Models\Order::$states[$order->state] }} {{$order->customer->name}} @if($order->priority===0)

Normal

@else

Alta

@endif
@if($order->state == 'INVOICED') Marcar Entregado @endif
{{$detail->product->category->name}} {{$detail->product->name}} {{$detail->product->brand->name}} {{$detail->serial_number}} {{$detail->owner->name ?? 'Area Técnica'}} @if(in_array($detail->state, ['DONE', 'INVOICED', 'DELIVERED'])) @endif {{-- --}} {{-- --}} {{-- --}} {{-- --}}
{!! $ordersUser->links('pagination::bootstrap-5') !!}