<?php include dirname(__DIR__) . '/header.phtml'; ?>

<div class="inhalt">
    <h2>Unsere Standorte</h2>

<?php if (!empty($standorte)): ?>
    <table border="1" cellpadding="8" cellspacing="0">
        <thead>
        <tr>
            <th>Straße</th>
            <th>Hausnr.</th>
            <th>PLZ</th>
            <th>Ort</th>
            <th>Land</th>
            <th>Telefon</th>
            <th>Email</th>
        </tr>
        </thead>
        <tbody>
        <?php foreach ($standorte as $standort): ?>
            <tr>
                <td><?php echo htmlspecialchars($standort['street']); ?></td>
                <td><?php echo htmlspecialchars($standort['house_number']); ?></td>
                <td><?php echo htmlspecialchars($standort['postal_code']); ?></td>
                <td><?php echo htmlspecialchars($standort['city']); ?></td>
                <td><?php echo htmlspecialchars($standort['country']); ?></td>
                <td><?php echo htmlspecialchars($standort['phone']); ?></td>
                <td><?php echo htmlspecialchars($standort['email']); ?></td>
            </tr>
        <?php endforeach; ?>
        </tbody>
    </table>
<?php else: ?>
    <p>Keine Standorte gefunden.</p>
<?php endif; ?>
</div>
<?php include dirname(__DIR__) . '/footer.phtml'; ?>