{{ __('Ordenes de retiro') }}

@csrf
@foreach ($ordersAll as $order) @foreach($order->orderDetails as $detail) @endforeach @endforeach
# de Orden de retiro Fecha de Recibido Estado Asesor Cliente Cantidad de servicios Categoría Tipo extintor Marca Número ó Serie Precio QR Facturar o entregar
{{ $order->id }} {{ $order->created_at_format }} {{ \App\Models\Order::$states[$order->state] }} {{ $order->owner->name}} {{$order->customer->name}} $ {{number_format($order->totalPrice(), 2)}} {{--@if($order->state == 'DONE')--}} Marcar Facturado {{--@endif--}} @if($order->state == 'INVOICED') Marcar Entregado @endif
{{$detail->product?->category?->name}} {{$detail->product?->name}} {{$detail->product?->brand?->name}} {{$detail->serial_number}} $ {{$detail->total()}} @if(in_array($detail->state, ['DONE', 'INVOICED', 'DELIVERED'])) @endif @if($detail->print_card) @endif
{!! $ordersAll->appends(['search' => $search, 'customer' => $customer])->links('pagination::bootstrap-5') !!}