<?= $this->include('Mobile/Layouts/Header/index') ?>

<body>

    <!-- Preloader -->
    <div id="preloader">
        <div class="spinner-grow text-primary" role="status"><span class="visually-hidden">Loading...</span></div>
    </div>
    <div id="app">
        <!-- Internet Connection Status -->
        <!-- # This code for showing internet connection status -->
        <?php if (is_https()) : ?>
            <div class="internet-connection-status" id="internetStatus"></div>
        <?php endif; ?>
        <?php if (!isset($no_header)) : ?>
            <?= $this->include('Mobile/Layouts/Header/common-header') ?>
        <?php endif; ?>
        <?= $this->renderSection('header') ?>
        <?php if (!isset($no_sidebar)) : ?>
            <!-- <sidebar></sidebar> -->
        <?php endif; ?>
        <?= $this->renderSection('sidebar') ?>
        <?= $this->renderSection('content') ?>
        <?= $this->renderSection('after-content') ?>
    </div>
    <?php if (!isset($no_footer)) : ?>
        <?= $this->include('Mobile/Layouts/Footer/index') ?>
    <?php endif; ?>
    <?= $this->renderSection('footer') ?>
    <?php if (current_url() == base_url('login')) : ?>
        <?= $this->include('Mobile/Layouts/Footer/js-login') ?>
    <?php else : ?>
        <?= $this->include('Mobile/Layouts/Footer/js') ?>
    <?php endif ?>
</body>

</html>