@extends('layouts.app') @section('title', 'Historial de Órdenes Entregadas — ' . \App\Models\Setting::get('app_name', 'TI Manager')) @section('content')
Volver al Taller
@forelse($workOrders as $order) @empty @endforelse
N° Orden Cliente / Empresa Equipo Técnico Fecha Ingreso Fecha Entrega Acciones
{{ $order->order_number }} @if($order->inventory_item_id)
{{ optional($order->inventoryItem->branch->company)->name ?? 'Empresa' }}
@else
{{ $order->client_name }}
@endif
@if($order->inventory_item_id)
{{ $order->inventoryItem->name }}
S/N: {{ $order->inventoryItem->serial_number }}
@else
{{ $order->device_type }} {{ $order->device_brand }} {{ $order->device_model }}
S/N: {{ $order->device_serial }}
@endif
@if($order->technician) {{ $order->technician->name }} @else N/A @endif {{ $order->created_at->format('d/m/Y') }} @if($order->delivered_at) {{ $order->delivered_at->format('d/m/Y') }} @else N/A @endif
@if(auth()->user()->isAdmin())
@csrf @method('DELETE')
@endif
No se encontraron órdenes de servicio entregadas.
@if($workOrders->hasPages())
{{ $workOrders->links('pagination::bootstrap-5') }}
@endif
@endsection @push('scripts') @endpush