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.
		
		
		
		
		
			
		
			
				
					
					
						
							78 lines
						
					
					
						
							4.3 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							78 lines
						
					
					
						
							4.3 KiB
						
					
					
				
								@extends('layouts.dashboard')
							 | 
						|
								
							 | 
						|
								@section('content')
							 | 
						|
								<div class="container mx-auto px-4 py-6">
							 | 
						|
								    <div class="max-w-2xl mx-auto">
							 | 
						|
								        <div class="bg-white rounded-lg shadow-lg overflow-hidden">
							 | 
						|
								            <div class="p-6">
							 | 
						|
								                <h2 class="text-2xl font-bold text-gray-800 mb-6">Nueva Solicitud de Vehículo</h2>
							 | 
						|
								
							 | 
						|
								                @if($errors->any())
							 | 
						|
								                <div class="mb-6 bg-red-50 border-l-4 border-red-500 p-4 rounded-r-lg">
							 | 
						|
								                    <div class="flex items-center">
							 | 
						|
								                        <div class="text-red-700">
							 | 
						|
								                            <ul>
							 | 
						|
								                                @foreach($errors->all() as $error)
							 | 
						|
								                                    <li>{{ $error }}</li>
							 | 
						|
								                                @endforeach
							 | 
						|
								                            </ul>
							 | 
						|
								                        </div>
							 | 
						|
								                    </div>
							 | 
						|
								                </div>
							 | 
						|
								                @endif
							 | 
						|
								
							 | 
						|
								                <form action="{{ route('profesor.solicitudes.store') }}" method="POST">
							 | 
						|
								                    @csrf
							 | 
						|
								                    <div class="space-y-6">
							 | 
						|
								                        <div>
							 | 
						|
								                            <label for="fecha_solicitud" class="block text-sm font-medium text-gray-700 mb-2">Fecha de Solicitud</label>
							 | 
						|
								                            <input type="date" name="fecha_solicitud" id="fecha_solicitud"
							 | 
						|
								                                class="block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"
							 | 
						|
								                                required>
							 | 
						|
								                        </div>
							 | 
						|
								
							 | 
						|
								                        <div>
							 | 
						|
								                            <label for="hora_salida" class="block text-sm font-medium text-gray-700 mb-2">Hora de Salida</label>
							 | 
						|
								                            <input type="time" name="hora_salida" id="hora_salida"
							 | 
						|
								                                class="block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"
							 | 
						|
								                                required>
							 | 
						|
								                        </div>
							 | 
						|
								
							 | 
						|
								                        <div>
							 | 
						|
								                            <label for="hora_regreso" class="block text-sm font-medium text-gray-700 mb-2">Hora de Regreso</label>
							 | 
						|
								                            <input type="time" name="hora_regreso" id="hora_regreso"
							 | 
						|
								                                class="block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"
							 | 
						|
								                                required>
							 | 
						|
								                        </div>
							 | 
						|
								
							 | 
						|
								                        <div>
							 | 
						|
								                            <label for="destino" class="block text-sm font-medium text-gray-700 mb-2">Destino</label>
							 | 
						|
								                            <input type="text" name="destino" id="destino"
							 | 
						|
								                                class="block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"
							 | 
						|
								                                required>
							 | 
						|
								                        </div>
							 | 
						|
								
							 | 
						|
								                        <div>
							 | 
						|
								                            <label for="motivo" class="block text-sm font-medium text-gray-700 mb-2">Motivo</label>
							 | 
						|
								                            <textarea name="motivo" id="motivo" rows="4"
							 | 
						|
								                                class="block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"
							 | 
						|
								                                required></textarea>
							 | 
						|
								                        </div>
							 | 
						|
								
							 | 
						|
								                        <div class="flex justify-end space-x-4">
							 | 
						|
								                            <a href="{{ route('profesor.solicitudes.index') }}"
							 | 
						|
								                                class="px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
							 | 
						|
								                                Cancelar
							 | 
						|
								                            </a>
							 | 
						|
								                            <button type="submit"
							 | 
						|
								                                class="px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
							 | 
						|
								                                Enviar Solicitud
							 | 
						|
								                            </button>
							 | 
						|
								                        </div>
							 | 
						|
								                    </div>
							 | 
						|
								                </form>
							 | 
						|
								            </div>
							 | 
						|
								        </div>
							 | 
						|
								    </div>
							 | 
						|
								</div>
							 | 
						|
								@endsection 
							 |