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.
		
		
		
		
		
			
		
			
				
					
					
						
							72 lines
						
					
					
						
							2.0 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							72 lines
						
					
					
						
							2.0 KiB
						
					
					
				
								<!DOCTYPE html>
							 | 
						|
								<html>
							 | 
						|
								<head>
							 | 
						|
								    <title>Historial de Préstamos</title>
							 | 
						|
								    <style>
							 | 
						|
								        body {
							 | 
						|
								            font-family: Arial, sans-serif;
							 | 
						|
								            font-size: 12px;
							 | 
						|
								        }
							 | 
						|
								        table {
							 | 
						|
								            width: 100%;
							 | 
						|
								            border-collapse: collapse;
							 | 
						|
								            margin-top: 20px;
							 | 
						|
								        }
							 | 
						|
								        th, td {
							 | 
						|
								            border: 1px solid #ddd;
							 | 
						|
								            padding: 8px;
							 | 
						|
								            text-align: left;
							 | 
						|
								        }
							 | 
						|
								        th {
							 | 
						|
								            background-color: #f2f2f2;
							 | 
						|
								        }
							 | 
						|
								        .header {
							 | 
						|
								            text-align: center;
							 | 
						|
								            margin-bottom: 20px;
							 | 
						|
								        }
							 | 
						|
								        .estado-aceptado {
							 | 
						|
								            color: green;
							 | 
						|
								        }
							 | 
						|
								        .estado-rechazado {
							 | 
						|
								            color: red;
							 | 
						|
								        }
							 | 
						|
								    </style>
							 | 
						|
								</head>
							 | 
						|
								<body>
							 | 
						|
								    <div class="header">
							 | 
						|
								        <h2>Historial de Préstamos</h2>
							 | 
						|
								        <p>Fecha de generación: {{ now()->format('d/m/Y H:i') }}</p>
							 | 
						|
								    </div>
							 | 
						|
								
							 | 
						|
								    <table>
							 | 
						|
								        <thead>
							 | 
						|
								            <tr>
							 | 
						|
								                <th>ID</th>
							 | 
						|
								                <th>Solicitante</th>
							 | 
						|
								                <th>Destino</th>
							 | 
						|
								                <th>Fecha Salida</th>
							 | 
						|
								                <th>Fecha Llegada</th>
							 | 
						|
								                <th>Motivo</th>
							 | 
						|
								                <th>Personas</th>
							 | 
						|
								                <th>Estado</th>
							 | 
						|
								            </tr>
							 | 
						|
								        </thead>
							 | 
						|
								        <tbody>
							 | 
						|
								            @foreach($prestamos as $prestamo)
							 | 
						|
								            <tr>
							 | 
						|
								                <td>{{ $prestamo->id }}</td>
							 | 
						|
								                <td>{{ $prestamo->nombre_solicitante }}</td>
							 | 
						|
								                <td>{{ $prestamo->destino }}</td>
							 | 
						|
								                <td>{{ \Carbon\Carbon::parse($prestamo->fecha_hora_salida)->format('d/m/Y H:i') }}</td>
							 | 
						|
								                <td>{{ \Carbon\Carbon::parse($prestamo->fecha_hora_llegada)->format('d/m/Y H:i') }}</td>
							 | 
						|
								                <td>{{ $prestamo->motivo }}</td>
							 | 
						|
								                <td>{{ $prestamo->numero_personas }}</td>
							 | 
						|
								                <td class="estado-{{ $prestamo->estado }}">
							 | 
						|
								                    {{ ucfirst($prestamo->estado) }}
							 | 
						|
								                </td>
							 | 
						|
								            </tr>
							 | 
						|
								            @endforeach
							 | 
						|
								        </tbody>
							 | 
						|
								    </table>
							 | 
						|
								</body>
							 | 
						|
								</html>
							 | 
						|
								
							 |