<!DOCTYPE html>
<html lang="en">

<head>
    <!-- Required meta tags-->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="Rosa Mystica Portal">
    <meta name="author" content="Rosa Mystica">
    <link rel="icon" href="<?php echo e(asset('images/rosa-mys-logo.png')); ?>" type="image/x-icon">

    <title>Welcome - <?php echo e(config('app.name')); ?></title>

    <!-- Bootstrap CSS-->
    <link href="<?php echo e(asset('vendor/bootstrap-5.3.7.min.css')); ?>" rel="stylesheet" media="all">
    <link href="<?php echo e(asset('vendor/fontawesome-6.7.2/css/all.min.css')); ?>" rel="stylesheet" media="all">

    <!-- Main CSS-->
    <link href="<?php echo e(asset('css/school-portal.css')); ?>" rel="stylesheet" media="all">
    <style>
        footer {
            left: 0 !important;
            width: 100% !important;
        }
    </style>
</head>

<body class="homepage">

<?php if (isset($component)) { $__componentOriginalfd1f218809a441e923395fcbf03e4272 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalfd1f218809a441e923395fcbf03e4272 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.header','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('header'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalfd1f218809a441e923395fcbf03e4272)): ?>
<?php $attributes = $__attributesOriginalfd1f218809a441e923395fcbf03e4272; ?>
<?php unset($__attributesOriginalfd1f218809a441e923395fcbf03e4272); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalfd1f218809a441e923395fcbf03e4272)): ?>
<?php $component = $__componentOriginalfd1f218809a441e923395fcbf03e4272; ?>
<?php unset($__componentOriginalfd1f218809a441e923395fcbf03e4272); ?>
<?php endif; ?>

<div class="container-fluid">
    <div class="page-content">
        <?php echo $__env->yieldContent('content'); ?>
    </div>
</div>
<?php if (isset($component)) { $__componentOriginal99051027c5120c83a2f9a5ae7c4c3cfa = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal99051027c5120c83a2f9a5ae7c4c3cfa = $attributes; } ?>
<?php $component = App\View\Components\Footer::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('footer'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\Footer::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal99051027c5120c83a2f9a5ae7c4c3cfa)): ?>
<?php $attributes = $__attributesOriginal99051027c5120c83a2f9a5ae7c4c3cfa; ?>
<?php unset($__attributesOriginal99051027c5120c83a2f9a5ae7c4c3cfa); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal99051027c5120c83a2f9a5ae7c4c3cfa)): ?>
<?php $component = $__componentOriginal99051027c5120c83a2f9a5ae7c4c3cfa; ?>
<?php unset($__componentOriginal99051027c5120c83a2f9a5ae7c4c3cfa); ?>
<?php endif; ?>
<?php echo $__env->yieldContent('modals'); ?>

<!-- Livewire Loading Animation -->
<div id="livewire-loader" class="livewire-loader" style="display: none;">
    <div class="loader-dots">
        <div class="dot"></div>
        <div class="dot"></div>
        <div class="dot"></div>
    </div>
</div>

<!-- JS-->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="<?php echo e(asset('vendor/bootstrap-5.3.7.bundle.min.js')); ?>"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="<?php echo e(asset('js/school-portal.js')); ?>"></script>

<?php if(session('toast')): ?>
    <script>
        document.addEventListener('DOMContentLoaded', function () {
            const toastData = <?php echo json_encode(session('toast'), 15, 512) ?>;
            showToast(toastData.type, toastData.message, toastData.title, toastData.icon);
        });
    </script>
<?php endif; ?>

<script>
    document.addEventListener('DOMContentLoaded', function () {
        const loader = document.getElementById('livewire-loader');
        let activeRequests = 0;
        let safetyTimeout;

        function showLoader() {
            activeRequests++;
            loader.style.display = 'flex';

            // Safety timeout - hide after 10 seconds max
            clearTimeout(safetyTimeout);
            safetyTimeout = setTimeout(() => {
                activeRequests = 0;
                loader.style.display = 'none';
            }, 10000);
        }

        function hideLoader() {
            activeRequests--;
            if (activeRequests <= 0) {
                activeRequests = 0;
                clearTimeout(safetyTimeout);
                loader.style.display = 'none';
            }
        }

        document.addEventListener('livewire:init', () => {
            Livewire.hook('request', showLoader);
            Livewire.hook('response', hideLoader);
            Livewire.hook('commit', hideLoader);
            Livewire.hook('morph.updated', hideLoader);
        });
    });
</script>
</body>

</html>
<!-- end document-->
<?php /**PATH C:\wamp64\www\edu-p\resources\views/layouts/guest.blade.php ENDPATH**/ ?>