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.
		
		
		
		
		
			
		
			
				
					
					
						
							47 lines
						
					
					
						
							3.2 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							47 lines
						
					
					
						
							3.2 KiB
						
					
					
				
								@extends('layouts.dashboard')
							 | 
						|
								
							 | 
						|
								@section('content')
							 | 
						|
								<div class="container mx-auto px-4 py-6">
							 | 
						|
								    <div class="bg-white rounded-lg shadow-lg">
							 | 
						|
								        <div class="p-4 border-b border-gray-200 flex justify-between items-center">
							 | 
						|
								            <h2 class="text-2xl font-bold">Préstamos Pendientes</h2>
							 | 
						|
								        </div>
							 | 
						|
								        <div class="overflow-x-auto">
							 | 
						|
								            <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">#</th>
							 | 
						|
								                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Solicitante</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">Fecha Salida</th>
							 | 
						|
								                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Fecha Llegada</th>
							 | 
						|
								                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Motivo</th>
							 | 
						|
								                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Domicilio</th>
							 | 
						|
								                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Personas</th>
							 | 
						|
								                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Chofer</th>
							 | 
						|
								                    </tr>
							 | 
						|
								                </thead>
							 | 
						|
								                <tbody class="bg-white divide-y divide-gray-200">
							 | 
						|
								                    @forelse($prestamos as $index => $prestamo)
							 | 
						|
								                    <tr class="hover:bg-gray-50">
							 | 
						|
								                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">{{ $index + 1 }}</td>
							 | 
						|
								                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ $prestamo->nombre_solicitante }}</td>
							 | 
						|
								                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ $prestamo->destino }}</td>
							 | 
						|
								                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ $prestamo->fecha_hora_salida }}</td>
							 | 
						|
								                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ $prestamo->fecha_hora_llegada }}</td>
							 | 
						|
								                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ $prestamo->motivo }}</td>
							 | 
						|
								                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ $prestamo->domicilio }}</td>
							 | 
						|
								                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ $prestamo->numero_personas }}</td>
							 | 
						|
								                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ $prestamo->chofer ? 'Sí' : 'No' }}</td>
							 | 
						|
								                    </tr>
							 | 
						|
								                    @empty
							 | 
						|
								                    <tr>
							 | 
						|
								                        <td colspan="9" class="px-6 py-4 text-center text-gray-500">No hay préstamos pendientes.</td>
							 | 
						|
								                    </tr>
							 | 
						|
								                    @endforelse
							 | 
						|
								                </tbody>
							 | 
						|
								            </table>
							 | 
						|
								        </div>
							 | 
						|
								    </div>
							 | 
						|
								</div>
							 | 
						|
								@endsection
							 | 
						|
								
							 |