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.
66 lines
2.0 KiB
66 lines
2.0 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Reporte de Préstamo</title>
|
|
<style>
|
|
body { font-family: Arial, sans-serif; font-size: 12px; }
|
|
.header { text-align: center; margin-bottom: 20px; }
|
|
.reporte-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 0 auto 20px auto;
|
|
}
|
|
.reporte-table th, .reporte-table td {
|
|
border: 1px solid #333;
|
|
padding: 8px 6px;
|
|
text-align: center;
|
|
}
|
|
.reporte-table th {
|
|
background: #e3e8f0;
|
|
font-weight: bold;
|
|
}
|
|
.firmas {
|
|
margin-top: 40px;
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
.firmas td {
|
|
padding: 30px 10px 0 10px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="header">
|
|
<h2>REPORTE DE PRÉSTAMO</h2>
|
|
<p>Fecha de generación: {{ now()->format('d/m/Y H:i') }}</p>
|
|
</div>
|
|
<table class="reporte-table">
|
|
<tr>
|
|
<th>Solicitante</th>
|
|
<th>Destino</th>
|
|
<th>Fecha Salida</th>
|
|
<th>Fecha Llegada</th>
|
|
<th>Motivo</th>
|
|
<th>Personas</th>
|
|
<th>Chofer</th>
|
|
<th>Estado</th>
|
|
</tr>
|
|
<tr>
|
|
<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>{{ $prestamo->choferAsignado ? $prestamo->choferAsignado->nombre : 'Sin chofer' }}</td>
|
|
<td>{{ ucfirst($prestamo->estado) }}</td>
|
|
</tr>
|
|
</table>
|
|
<table class="firmas">
|
|
<tr>
|
|
<td>_________________________<br>Solicitante</td>
|
|
<td>_________________________<br>Vo. Bo.</td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>
|
|
|