@extends('dashboard.layouts.app') @section('title', 'Gestión de Cocheras') @section('content')
@if(session('success'))

{{ session('success') }}

@endif @if(session('error'))

{{ session('error') }}

@endif

Cocheras ({{ $cocheras->total() }})

@forelse($cocheras as $cochera) @empty @endforelse

Código

Nombre

Responsable

Capacidad

Estado

Acciones

{{ $cochera->codigo }}

{{ $cochera->nombre }}

@if($cochera->direccion)

{{ $cochera->direccion }}

@endif

{{ $cochera->responsable ?? 'No asignado' }}

@if($cochera->telefono)

{{ $cochera->telefono }}

@endif
@if($cochera->capacidad_maxima)

{{ $cochera->capacidad_maxima }} vehículos

@else

No definida

@endif
@if($cochera->activo) Activa @else Inactiva @endif
@csrf @method('PATCH')
@csrf @method('DELETE')

No hay cocheras

Comience creando su primera cochera.

Crear Cochera
@if($cocheras->hasPages())
{{ $cocheras->links() }}
@endif
@endsection