 <div class="custom-header d-flex align-items-center justify-content-between mb-4" style="max-height: 50px;">
    <?php
        $host = $_SERVER['HTTP_HOST'];
        $parts = explode('.', $host);
        $logoName = (count($parts) > 2) ? $parts[0] : 'default-logo';

        if ($logoName == 'chitA') { // Example for a specific chit provider
            $logoPath = '/images/logo_chitA.png';
        } else {
            $logoPath = (isset($chitprovider) && !empty($chitprovider->logo))
                ? Storage::url($chitprovider->logo)
                : asset('/epay/uploads/default.png');
        }
    ?>

    <!-- Logo on the left -->
    <div class="logo-container">
        <img src="<?php echo $logoPath; ?>" alt="<?php echo (isset($chitprovider) ? $chitprovider->name : 'Chit Provider'); ?>" style="max-height: 50px;">
    </div>

    <!-- Navigation on the right -->
    <nav>
        <ul class="list-inline mb-0">
            <li class="list-inline-item"><a href="/">Home</a></li>
            <li class="list-inline-item"><a href="/about">About</a></li>
            <li class="list-inline-item"><a href="/contact">Contact</a></li>
        </ul>
    </nav>
</div>
 | <div class="custom-footer text-center mt-5 pt-4 border-top">
    <p>&copy; <?php echo date('Y'); ?> <?php echo (isset($school) ? $school->name : 'School'); ?>. All rights reserved.</p>
    <ul class="list-inline">
        <li class="list-inline-item"><a href="/privacy">Privacy Policy</a></li>
        <li class="list-inline-item"><a href="/terms">Terms of Service</a></li>
    </ul>
</div>