@extends('dashboard.layouts.app') @section('title', 'Historial de Tickets - Cochera') @section('content')
| Ticket | Vehículo | Conductor | Ingreso | Estado | Acciones |
|---|---|---|---|---|---|
|
{{ $estacionamiento->numero_ticket ?? 'N/A' }}
|
{{ $estacionamiento->placa_camion }}
@if($estacionamiento->placa_carreta)
Carreta: {{ $estacionamiento->placa_carreta }}
@endif
{{ Str::limit($estacionamiento->descripcion_carga, 30) }}
|
@if($estacionamiento->conductor_nombre)
{{ $estacionamiento->conductor_nombre }}
@if($estacionamiento->conductor_dni)
DNI: {{ $estacionamiento->conductor_dni }}
@endif
@if($estacionamiento->conductor_telefono)
@if($estacionamiento->conductor_dni) • @endif
Tel: {{ $estacionamiento->conductor_telefono }}
@endif
@else
No registrado
@endif
|
{{ $estacionamiento->fecha_ingreso ? \Carbon\Carbon::parse($estacionamiento->fecha_ingreso)->format('d/m/Y') : 'N/A' }}
{{ $estacionamiento->fecha_ingreso ? \Carbon\Carbon::parse($estacionamiento->fecha_ingreso)->format('H:i') : '' }}
|
@php $estadoColors = [ 'activo' => 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200', 'cerrado' => 'bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200', 'perdido' => 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200', 'anulado' => 'bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-200' ]; $estadoColor = $estadoColors[$estacionamiento->estado_ticket ?? 'activo'] ?? 'bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-200'; @endphp @if($estacionamiento->estado_ticket === 'activo') @elseif($estacionamiento->estado_ticket === 'cerrado') @elseif($estacionamiento->estado_ticket === 'perdido') @elseif($estacionamiento->estado_ticket === 'anulado') @endif {{ ucfirst($estacionamiento->estado_ticket ?? 'activo') }} | |
No hay registrosComience registrando un nuevo vehículo |
|||||
Activos
{{ $stats['activos'] }}
Cerrados
{{ $stats['cerrados'] }}
Anulados
{{ $stats['anulados'] }}
Total
{{ $stats['total'] }}