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.
		
		
		
		
		
			
		
			
				
					
					
						
							63 lines
						
					
					
						
							1.7 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							63 lines
						
					
					
						
							1.7 KiB
						
					
					
				
								<!-- resources/views/exports/usuarios-pdf.blade.php -->
							 | 
						|
								<!DOCTYPE html>
							 | 
						|
								<html>
							 | 
						|
								<head>
							 | 
						|
								    <title>Lista de Usuarios</title>
							 | 
						|
								    <style>
							 | 
						|
								        body {
							 | 
						|
								            font-family: Arial, sans-serif;
							 | 
						|
								        }
							 | 
						|
								        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: 30px;
							 | 
						|
								        }
							 | 
						|
								    </style>
							 | 
						|
								</head>
							 | 
						|
								<body>
							 | 
						|
								    <div class="header">
							 | 
						|
								    <h1>Lista de Usuarios</h1>
							 | 
						|
								        <p>Fecha de generación: {{ date('d/m/Y H:i:s') }}</p>
							 | 
						|
								    </div>
							 | 
						|
								    <table>
							 | 
						|
								        <thead>
							 | 
						|
								            <tr>
							 | 
						|
								                <th>No.</th>
							 | 
						|
								                <th>Nombre</th>
							 | 
						|
								                <th>Email</th>
							 | 
						|
								                <th>Apellido</th>
							 | 
						|
								                <th>Puesto</th>
							 | 
						|
								                <th>Tipo</th>
							 | 
						|
								                <th>Departamento</th>
							 | 
						|
								                <th>Teléfono</th>
							 | 
						|
								            </tr>
							 | 
						|
								        </thead>
							 | 
						|
								        <tbody>
							 | 
						|
								            @foreach($usuarios as $index => $usuario)
							 | 
						|
								            <tr>
							 | 
						|
								                <td>{{ $index + 1 }}</td>
							 | 
						|
								                <td>{{ $usuario->name }}</td>
							 | 
						|
								                <td>{{ $usuario->email }}</td>
							 | 
						|
								                <td>{{ $usuario->apellido }}</td>
							 | 
						|
								                <td>{{ $usuario->puesto->nombre ?? '' }}</td>
							 | 
						|
								                <td>{{ $usuario->tipo->nombre ?? '' }}</td>
							 | 
						|
								                <td>{{ $usuario->departamento->departamento ?? '' }}</td>
							 | 
						|
								                <td>{{ $usuario->telefono }}</td>
							 | 
						|
								            </tr>
							 | 
						|
								            @endforeach
							 | 
						|
								        </tbody>
							 | 
						|
								    </table>
							 | 
						|
								</body>
							 | 
						|
								</html>
							 | 
						|
								
							 |