Compared to last week
--}}Compared to last week
--}}Compared to last week
--}}Compared to last week
--}}Orden | Fecha de Recibido | Estado | Prioridad | Asesor | Cliente | Cantidad de servicios | Categoría | Tipo Producto | Marca | Número ó Serie | Precio | QR | Facturar o entregar | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $order->id }} | {{ $order->created_at_format }} | {{ \App\Models\Order::$states[$order->state] }} |
@if($order->priority === 0)
Normal @elseAlta @endif | {{ $order->owner->name}} |
{{$order->customer->name}}
|
{{ count($order->orderDetails ?? [])}} | $ {{number_format($order->totalPrice(), 2)}} | @php $hasLoanedItems = $order->orderDetails->some(fn($detail) => $detail->quantity_prestado > 0); @endphp @if($order->state == 'DONE') @if($hasLoanedItems) @else Marcar Facturado @endif @endif @if($order->state == 'INVOICED') Marcar Entregado @endif | ||||||
Cantidad: {{$detail->quantity}} | Prestados: {{$detail->quantity_prestado}} | {{$detail->product?->category?->name}} | {{$detail->product?->name}} | {{$detail->product?->brand?->name}} | {{$detail->serial_number}} | $ {{$detail->total()}} |
@if(in_array($detail->state, ['DONE', 'INVOICED', 'DELIVERED']))
|
![]() |
@if($detail->print_card)
![]() |