Browse Source

Mostrar más campos en la tabla de prestadores

master
Sergio 2 years ago
parent
commit
df7295f7ae
2 changed files with 5 additions and 0 deletions
  1. +1
    -0
      app/Controllers/Admin.php
  2. +4
    -0
      app/Views/Admin/prestadores.php

+ 1
- 0
app/Controllers/Admin.php View File

@@ -25,6 +25,7 @@ class Admin extends BaseController
public function prestadores()
{
$prestadores = model(PrestadorModel::class)->getPrestadoresActivos();
// dd($prestadores[0]);
return view('Admin/prestadores', ['prestadores' => $prestadores]);
}



+ 4
- 0
app/Views/Admin/prestadores.php View File

@@ -16,6 +16,8 @@
<thead>
<th>Nombre</th>
<th>Tipo</th>
<th>Email</th>
<th>Celular</th>
</thead>
<tbody>

@@ -23,6 +25,8 @@
<tr>
<td><?= $prestador['nombre'] . ' ' . $prestador['apaterno'] . ' ' . $prestador['amaterno'] ?></td>
<td><?= $prestador['tipo'] ?></td>
<td><?= $prestador['email'] ?></td>
<td><?= $prestador['celular'] ?></td>
</tr>
<?php endforeach ?>



Loading…
Cancel
Save