You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							51 lines
						
					
					
						
							2.7 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							51 lines
						
					
					
						
							2.7 KiB
						
					
					
				
								@extends('layouts.dashboard')
							 | 
						|
								
							 | 
						|
								@section('content')
							 | 
						|
								<div class="container mx-auto px-4 py-6">
							 | 
						|
								    <div class="flex justify-between items-center mb-6">
							 | 
						|
								        <h2 class="text-2xl font-bold text-gray-800">Mis Solicitudes de Vehículo</h2>
							 | 
						|
								        <a href="{{ route('profesor.solicitudes.create') }}" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
							 | 
						|
								            Nueva Solicitud
							 | 
						|
								        </a>
							 | 
						|
								    </div>
							 | 
						|
								
							 | 
						|
								    @if(session('success'))
							 | 
						|
								        <div class="bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded relative mb-4" role="alert">
							 | 
						|
								            <span class="block sm:inline">{{ session('success') }}</span>
							 | 
						|
								        </div>
							 | 
						|
								    @endif
							 | 
						|
								
							 | 
						|
								    <div class="bg-white shadow-md rounded-lg overflow-hidden">
							 | 
						|
								        <table class="min-w-full divide-y divide-gray-200">
							 | 
						|
								            <thead class="bg-gray-50">
							 | 
						|
								                <tr>
							 | 
						|
								                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Fecha</th>
							 | 
						|
								                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Hora Salida</th>
							 | 
						|
								                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Hora Regreso</th>
							 | 
						|
								                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Destino</th>
							 | 
						|
								                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Estado</th>
							 | 
						|
								                </tr>
							 | 
						|
								            </thead>
							 | 
						|
								            <tbody class="bg-white divide-y divide-gray-200">
							 | 
						|
								                @foreach($solicitudes as $solicitud)
							 | 
						|
								                <tr>
							 | 
						|
								                    <td class="px-6 py-4 whitespace-nowrap">{{ $solicitud->fecha_solicitud }}</td>
							 | 
						|
								                    <td class="px-6 py-4 whitespace-nowrap">{{ $solicitud->hora_salida }}</td>
							 | 
						|
								                    <td class="px-6 py-4 whitespace-nowrap">{{ $solicitud->hora_regreso }}</td>
							 | 
						|
								                    <td class="px-6 py-4">{{ $solicitud->destino }}</td>
							 | 
						|
								                    <td class="px-6 py-4 whitespace-nowrap">
							 | 
						|
								                        <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full 
							 | 
						|
								                            @if($solicitud->estado === 'aprobada') bg-green-100 text-green-800
							 | 
						|
								                            @elseif($solicitud->estado === 'rechazada') bg-red-100 text-red-800
							 | 
						|
								                            @else bg-yellow-100 text-yellow-800
							 | 
						|
								                            @endif">
							 | 
						|
								                            {{ ucfirst($solicitud->estado) }}
							 | 
						|
								                        </span>
							 | 
						|
								                    </td>
							 | 
						|
								                </tr>
							 | 
						|
								                @endforeach
							 | 
						|
								            </tbody>
							 | 
						|
								        </table>
							 | 
						|
								    </div>
							 | 
						|
								</div>
							 | 
						|
								@endsection 
							 |