<!DOCTYPE html>
<html lang="<?php echo e(app()->getLocale()); ?>" dir="<?php echo e(app()->getLocale() === 'ar' ? 'rtl' : 'ltr'); ?>">

<head>
    <meta charset="utf-8" />
    <title><?php echo e($title ?? config('app.name', 'Dashboard')); ?></title>
    <!-- CSRF Token -->
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="Premium Multipurpose Admin & Dashboard Template" name="description" />
    <meta content="Themesbrand" name="author" />
    <!-- App favicon -->
    <link rel="shortcut icon" href="<?php echo e(Path::FavIcon()); ?>" type="image/x-icon" />

    <!-- Css -->
    <?php if (isset($component)) { $__componentOriginal45b6542a0b6fa3fd417c7a420e5746db = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal45b6542a0b6fa3fd417c7a420e5746db = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.partials.css','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.partials.css'); ?>
<?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($__attributesOriginal45b6542a0b6fa3fd417c7a420e5746db)): ?>
<?php $attributes = $__attributesOriginal45b6542a0b6fa3fd417c7a420e5746db; ?>
<?php unset($__attributesOriginal45b6542a0b6fa3fd417c7a420e5746db); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal45b6542a0b6fa3fd417c7a420e5746db)): ?>
<?php $component = $__componentOriginal45b6542a0b6fa3fd417c7a420e5746db; ?>
<?php unset($__componentOriginal45b6542a0b6fa3fd417c7a420e5746db); ?>
<?php endif; ?>

    <!--TinyMCE  script -->
    <?php if (isset($component)) { $__componentOriginalb025f0ff8b73c997cc260c58671e6a84 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb025f0ff8b73c997cc260c58671e6a84 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.tinymce-config','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.tinymce-config'); ?>
<?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($__attributesOriginalb025f0ff8b73c997cc260c58671e6a84)): ?>
<?php $attributes = $__attributesOriginalb025f0ff8b73c997cc260c58671e6a84; ?>
<?php unset($__attributesOriginalb025f0ff8b73c997cc260c58671e6a84); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb025f0ff8b73c997cc260c58671e6a84)): ?>
<?php $component = $__componentOriginalb025f0ff8b73c997cc260c58671e6a84; ?>
<?php unset($__componentOriginalb025f0ff8b73c997cc260c58671e6a84); ?>
<?php endif; ?>

    <!-- Page specific styles -->
    <?php echo $__env->yieldPushContent('styles'); ?>

    
    <?php if(config('settings.google_tag_manager_id')): ?>
    <script>
        (function(w, d, s, l, i) {
            w[l] = w[l] || [];
            w[l].push({
                'gtm.start': new Date().getTime(),
                event: 'gtm.js'
            });
            var f = d.getElementsByTagName(s)[0],
                j = d.createElement(s),
                dl = l != 'dataLayer' ? '&l=' + l : '';
            j.async = true;
            j.src =
                'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
            f.parentNode.insertBefore(j, f);
        })(window, document, 'script', 'dataLayer', '<?php echo e(config('
            settings.google_tag_manager_id ')); ?>');
    </script>
    <?php endif; ?>
    

</head>

<body>
    <!-- Begin page -->
    <div id="layout-wrapper">

        <?php if (isset($component)) { $__componentOriginale98ebcd3c8d77ba07efa71b91a027e7a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale98ebcd3c8d77ba07efa71b91a027e7a = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.partials.header','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.partials.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($__attributesOriginale98ebcd3c8d77ba07efa71b91a027e7a)): ?>
<?php $attributes = $__attributesOriginale98ebcd3c8d77ba07efa71b91a027e7a; ?>
<?php unset($__attributesOriginale98ebcd3c8d77ba07efa71b91a027e7a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale98ebcd3c8d77ba07efa71b91a027e7a)): ?>
<?php $component = $__componentOriginale98ebcd3c8d77ba07efa71b91a027e7a; ?>
<?php unset($__componentOriginale98ebcd3c8d77ba07efa71b91a027e7a); ?>
<?php endif; ?>

        <!-- ========== Left Sidebar Start ========== -->
        <?php if (isset($component)) { $__componentOriginalb88db5191c1ac65942a848a7eb7f4875 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb88db5191c1ac65942a848a7eb7f4875 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.partials.left-sidebar','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.partials.left-sidebar'); ?>
<?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($__attributesOriginalb88db5191c1ac65942a848a7eb7f4875)): ?>
<?php $attributes = $__attributesOriginalb88db5191c1ac65942a848a7eb7f4875; ?>
<?php unset($__attributesOriginalb88db5191c1ac65942a848a7eb7f4875); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb88db5191c1ac65942a848a7eb7f4875)): ?>
<?php $component = $__componentOriginalb88db5191c1ac65942a848a7eb7f4875; ?>
<?php unset($__componentOriginalb88db5191c1ac65942a848a7eb7f4875); ?>
<?php endif; ?>
        <!-- Left Sidebar End -->


        <!-- Start right Content here -->
        <div class="main-content">
            <div class="page-content">
                <div class="container-fluid">
                    <?php echo e($slot); ?>

                </div>
            </div>
        </div>

        <!-- Right Sidebar -->
        <?php if (isset($component)) { $__componentOriginalbb53ee4e6d0a193d41eaf543e3117ff7 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalbb53ee4e6d0a193d41eaf543e3117ff7 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.partials.right-sidebar','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.partials.right-sidebar'); ?>
<?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($__attributesOriginalbb53ee4e6d0a193d41eaf543e3117ff7)): ?>
<?php $attributes = $__attributesOriginalbb53ee4e6d0a193d41eaf543e3117ff7; ?>
<?php unset($__attributesOriginalbb53ee4e6d0a193d41eaf543e3117ff7); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalbb53ee4e6d0a193d41eaf543e3117ff7)): ?>
<?php $component = $__componentOriginalbb53ee4e6d0a193d41eaf543e3117ff7; ?>
<?php unset($__componentOriginalbb53ee4e6d0a193d41eaf543e3117ff7); ?>
<?php endif; ?>
        <!-- /Right-bar -->

    </div>

    <!-- JAVASCRIPT -->

    <?php if (isset($component)) { $__componentOriginal6b2367ce1bba3d0221baa53998696452 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal6b2367ce1bba3d0221baa53998696452 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.partials.script','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.partials.script'); ?>
<?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($__attributesOriginal6b2367ce1bba3d0221baa53998696452)): ?>
<?php $attributes = $__attributesOriginal6b2367ce1bba3d0221baa53998696452; ?>
<?php unset($__attributesOriginal6b2367ce1bba3d0221baa53998696452); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal6b2367ce1bba3d0221baa53998696452)): ?>
<?php $component = $__componentOriginal6b2367ce1bba3d0221baa53998696452; ?>
<?php unset($__componentOriginal6b2367ce1bba3d0221baa53998696452); ?>
<?php endif; ?>

    <?php echo $__env->yieldPushContent('scripts'); ?>

    <!-- Required Fields Styling Script -->
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // Function to apply required field styling
            function applyRequiredFieldStyling() {
                // Get current language
                const currentLang = document.documentElement.lang || 'ar';
                const isArabic = currentLang === 'ar';

                // Required text based on language
                const requiredText = isArabic ? 'مطلوب' : 'Required';
                const requiredColor = '#dc3545'; // Bootstrap danger color

                // Find all required inputs
                const requiredInputs = document.querySelectorAll(
                    'input[required], select[required], textarea[required]');

                requiredInputs.forEach(function(input) {
                    // Add red border to required inputs
                    input.style.borderColor = requiredColor;
                    input.style.borderWidth = '2px';

                    // Find the label for this input
                    let label = null;

                    // Try different ways to find the label
                    if (input.id) {
                        label = document.querySelector(`label[for="${input.id}"]`);
                    }

                    if (!label) {
                        // Look for label in the same form-group or parent container
                        const container = input.closest('.form-group, .mb-3, [class*="col-"]');
                        if (container) {
                            label = container.querySelector('label');
                        }
                    }

                    if (!label) {
                        // Look for previous sibling label
                        let sibling = input.previousElementSibling;
                        while (sibling) {
                            if (sibling.tagName === 'LABEL') {
                                label = sibling;
                                break;
                            }
                            sibling = sibling.previousElementSibling;
                        }
                    }

                    // If label found, add required indicator
                    if (label && !label.querySelector('.required-indicator')) {
                        const requiredSpan = document.createElement('span');
                        requiredSpan.className = 'required-indicator';
                        requiredSpan.style.color = requiredColor;
                        requiredSpan.style.fontWeight = 'bold';
                        requiredSpan.style.marginLeft = '5px';
                        requiredSpan.textContent = ` (${requiredText})`;

                        label.appendChild(requiredSpan);
                    }

                    // Add focus/blur events to enhance the styling
                    input.addEventListener('focus', function() {
                        this.style.boxShadow = `0 0 0 0.2rem rgba(220, 53, 69, 0.25)`;
                    });

                    input.addEventListener('blur', function() {
                        if (!this.value.trim()) {
                            this.style.borderColor = requiredColor;
                            this.style.boxShadow = 'none';
                        } else {
                            this.style.borderColor = '#28a745'; // Green when filled
                            this.style.boxShadow = 'none';
                        }
                    });

                    // Add input event to change border color when typing
                    input.addEventListener('input', function() {
                        if (this.value.trim()) {
                            this.style.borderColor = '#28a745'; // Green when filled
                        } else {
                            this.style.borderColor = requiredColor; // Red when empty
                        }
                    });
                });
            }

            // Apply styling immediately
            applyRequiredFieldStyling();

            // Also apply after delays to catch dynamically loaded content
            setTimeout(applyRequiredFieldStyling, 100);
            setTimeout(applyRequiredFieldStyling, 500);
            setTimeout(applyRequiredFieldStyling, 1000);

            // Watch for dynamically added content
            const observer = new MutationObserver(function(mutations) {
                let shouldReapply = false;
                mutations.forEach(function(mutation) {
                    if (mutation.type === 'childList') {
                        mutation.addedNodes.forEach(function(node) {
                            if (node.nodeType === 1 && (
                                    node.matches && node.matches(
                                        'input[required], select[required], textarea[required]'
                                    ) ||
                                    node.querySelector && node.querySelector(
                                        'input[required], select[required], textarea[required]'
                                    )
                                )) {
                                shouldReapply = true;
                            }
                        });
                    }
                });

                if (shouldReapply) {
                    setTimeout(applyRequiredFieldStyling, 100);
                }
            });

            observer.observe(document.body, {
                childList: true,
                subtree: true
            });

            // Make function globally available
            window.applyRequiredFieldStyling = applyRequiredFieldStyling;
        });
    </script>

    
    <?php if(config('settings.google_tag_manager_id')): ?>
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=<?php echo e(config('settings.google_tag_manager_id')); ?>"
            height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <?php endif; ?>
    
</body>

</html><?php /**PATH /home/egypetoo/public_html/resources/views/components/dashboard/layout.blade.php ENDPATH**/ ?>