|
|
@ -56,6 +56,7 @@ |
|
|
|
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ID</th> |
|
|
|
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Vehículo</th> |
|
|
|
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tipo de Combustible</th> |
|
|
|
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Estado</th> |
|
|
|
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Acciones</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
@ -90,25 +91,34 @@ |
|
|
|
</span> |
|
|
|
@endif |
|
|
|
</td> |
|
|
|
<td class="px-6 py-4 whitespace-nowrap text-sm"> |
|
|
|
<div class="flex gap-2"> |
|
|
|
<a href="#" |
|
|
|
onclick="confirmarEdicion('{{ route('vehiculos.edit', $vehiculo->id) }}')" |
|
|
|
class="text-blue-600 hover:text-blue-900"> |
|
|
|
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900"> |
|
|
|
@if($vehiculo->status) |
|
|
|
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800"> |
|
|
|
<i class="fas fa-check-circle mr-1"></i> |
|
|
|
Activo |
|
|
|
</span> |
|
|
|
@else |
|
|
|
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800"> |
|
|
|
<i class="fas fa-times-circle mr-1"></i> |
|
|
|
Inactivo |
|
|
|
</span> |
|
|
|
@endif |
|
|
|
</td> |
|
|
|
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> |
|
|
|
<div class="flex space-x-2"> |
|
|
|
<a href="{{ route('vehiculos.edit', $vehiculo->id) }}" class="text-blue-600 hover:text-blue-900"> |
|
|
|
<i class="fas fa-edit"></i> |
|
|
|
</a> |
|
|
|
<form action="{{ route('vehiculos.destroy', $vehiculo->id) }}" |
|
|
|
method="POST" |
|
|
|
class="inline" |
|
|
|
onsubmit="return false;"> |
|
|
|
<form action="{{ route('vehiculos.destroy', $vehiculo->id) }}" method="POST" class="inline"> |
|
|
|
@csrf |
|
|
|
@method('DELETE') |
|
|
|
<button type="button" |
|
|
|
onclick="confirmarEliminacion(this)" |
|
|
|
class="text-red-600 hover:text-red-900"> |
|
|
|
<button type="submit" class="text-red-600 hover:text-red-900" onclick="return confirm('¿Estás seguro de que deseas eliminar este vehículo?')"> |
|
|
|
<i class="fas fa-trash"></i> |
|
|
|
</button> |
|
|
|
</form> |
|
|
|
<a href="{{ route('vehiculos.toggle-status', $vehiculo->id) }}" class="text-yellow-600 hover:text-yellow-900"> |
|
|
|
<i class="fas fa-power-off"></i> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|