<?php require 'includes/auth.php'; ?>
<?php require_once '../app/db.php'; ?>

<?php
$drivers = $pdo->query("SELECT * FROM drivers");
?>

<table class="table">
<tr>
<th>Name</th>
<th>Phone</th>
<th>Status</th>
</tr>

<?php foreach($drivers as $d): ?>
<tr>
<td><?= $d['full_name'] ?></td>
<td><?= $d['phone'] ?></td>
<td><?= $d['status'] ?></td>
</tr>
<?php endforeach; ?>
</table>
