<?php $__env->startSection('container_content'); ?>
    <?php echo $__env->make('admin.layouts.menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

    <!--Contents-->
    <main class="main">
        <!-- ------------ top nav ------------- -->
    <section class="top-nav d-flex justify-content-between">

        <?php if(getCurrentLocale() == 'ar'): ?>
            <a class="butn btn_line" href="<?php echo e(LaravelLocalization::getLocalizedURL('en', null, [], true)); ?>">
                <span> <i class="fas fa-globe"></i> <?php echo e(__('main.another_lang')); ?> </span>
            </a>
        <?php endif; ?>
        <?php if(getCurrentLocale() == 'en'): ?>
            <a class="butn btn_line" href="<?php echo e(LaravelLocalization::getLocalizedURL('ar', null, [], true)); ?>">
                <span> <i class="fas fa-globe"></i> <?php echo e(__('main.another_lang')); ?> </span>
            </a>
        <?php endif; ?>

        <a class="butn btn_line" href="<?php echo e(route('admin_logout')); ?>" onclick="event.preventDefault();document.getElementById('logout-form').submit();">
            <span> <i class="fas fa-sign-out-alt"></i> <?php echo e(__('dashboard.logout')); ?> </span>
        </a>
        <form id="logout-form" action="<?php echo e(route('admin_logout')); ?>" method="POST" style="display: none;">
            <?php echo csrf_field(); ?>
        </form>
    </section>
        <?php if(count($errors)): ?>
            <div class="alert alert-danger">
                <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <li>
                        <?php echo e($error); ?>

                    </li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        <?php endif; ?>

        <?php if(session('message')): ?>
            <div class="alert alert-success message_alert"><?php echo e(session('message')); ?></div>
        <?php endif; ?>

        <div class="alert alert-danger ajaxErrorResponse" style="display: none"></div>
        <div class="alert alert-success ajaxResponse" style="display: none"></div>

    <!-- Response of ajax requests -->


        <?php echo $__env->yieldContent('content'); ?>
    </main>

    <!--Footer-->
    <footer class="">
        <div class="loading hide">
            <div class="loader"></div>
        </div>
    </footer>
    <!--End-Footer-->

<?php $__env->stopSection(); ?>

<?php $__env->startSection('container_js'); ?>
    
    <script src="<?php echo e(asset('assets/admin/js/lib/axios.min.js')); ?>"></script>

    <script>
        axios.defaults.headers.common = {
            'X-Requested-With': 'XMLHttpRequest',
            'X-CSRF-TOKEN' : document.querySelector('meta[name="csrf-token"]').getAttribute('content')
        };
    </script>
    <script src="<?php echo e(asset('assets/admin/js/actions.js')); ?>"></script>
    <?php echo $__env->yieldContent('inner_js'); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/balyomhost/public_html/procare/resources/views/admin/layouts/container.blade.php ENDPATH**/ ?>