7 changed files with 160 additions and 4 deletions
@ -0,0 +1,66 @@ |
|||||
|
<!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> |
@ -0,0 +1,79 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html> |
||||
|
<head> |
||||
|
<title>Reporte General de Préstamos</title> |
||||
|
<style> |
||||
|
body { font-family: Arial, sans-serif; font-size: 11px; } |
||||
|
.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: 6px 4px; |
||||
|
text-align: center; |
||||
|
} |
||||
|
.reporte-table th { |
||||
|
background: #e3e8f0; |
||||
|
font-weight: bold; |
||||
|
font-size: 11px; |
||||
|
} |
||||
|
.firmas { |
||||
|
margin-top: 40px; |
||||
|
width: 100%; |
||||
|
text-align: center; |
||||
|
} |
||||
|
.firmas td { |
||||
|
padding: 30px 10px 0 10px; |
||||
|
} |
||||
|
</style> |
||||
|
</head> |
||||
|
<body> |
||||
|
<div class="header"> |
||||
|
<h2>REPORTE GENERAL DE PRÉSTAMOS</h2> |
||||
|
<p>Fecha de generación: {{ now()->format('d/m/Y H:i') }}</p> |
||||
|
</div> |
||||
|
<table class="reporte-table"> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th>#</th> |
||||
|
<th>Solicitante</th> |
||||
|
<th>Vehículo</th> |
||||
|
<th>Destino</th> |
||||
|
<th>Fecha Salida</th> |
||||
|
<th>Fecha Llegada</th> |
||||
|
<th>Motivo</th> |
||||
|
<th>Domicilio</th> |
||||
|
<th>Personas</th> |
||||
|
<th>Chofer</th> |
||||
|
<th>Estado</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
@foreach($prestamos as $i => $prestamo) |
||||
|
<tr> |
||||
|
<td>{{ $i + 1 }}</td> |
||||
|
<td>{{ $prestamo->nombre_solicitante }}</td> |
||||
|
<td>{{ $prestamo->vehiculo->nombre ?? '-' }}</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->domicilio }}</td> |
||||
|
<td>{{ $prestamo->numero_personas }}</td> |
||||
|
<td>{{ $prestamo->choferAsignado ? $prestamo->choferAsignado->nombre : 'Sin chofer' }}</td> |
||||
|
<td>{{ ucfirst($prestamo->estado) }}</td> |
||||
|
</tr> |
||||
|
@endforeach |
||||
|
</tbody> |
||||
|
</table> |
||||
|
<table class="firmas"> |
||||
|
<tr> |
||||
|
<td>_________________________<br>Elaboró</td> |
||||
|
<td>_________________________<br>Vo. Bo.</td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
</body> |
||||
|
</html> |
Loading…
Reference in new issue