feat: garage module for client B (step 4)

This commit is contained in:
Floriansylvain
2025-12-16 21:19:34 +01:00
parent dbce932ce2
commit 4e7c0f10c1
4 changed files with 118 additions and 0 deletions
@@ -0,0 +1,17 @@
<?php
require_once __DIR__ . '/../../../../src/utils.php';
$garages = DataManager::getGarages('clientb');
?>
<h1>Garages Client B</h1>
<?php if (empty($garages)): ?>
<p>Aucun garage trouvé.</p>
<?php else: ?>
<ul>
<?php foreach ($garages as $g): ?>
<li class="garage-item" data-garage-id="<?php echo htmlspecialchars($g['id'] ?? ''); ?>">
<strong><?php echo htmlspecialchars($g['title'] ?? '-'); ?></strong>
- <?php echo htmlspecialchars($g['address'] ?? '-'); ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>