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


    <!-- ------------ top nav ------------- -->
    <section class="top-nav">
        <div class="row">
            <div class="col-lg-5">
                <div class="title">
                    <h3><?php echo e($title ?? __('dashboard.title')); ?></h3>

                </div>
            </div>
            <!-- <div class="col-lg-4">
                <div class="search-bar">
                    <form>
                        <div class="form-group">
                            <input class="form-control" type="text" placeholder="search">
                            <button><i class="fas fa-search"></i></button>
                        </div>
                    </form>
                </div>
            </div> -->
            <div class="col-lg-3">
                <ul class="notivacations">
                    <li class="items notivacat">
                        <div class="icon">
                            <i class="far fa-bell"></i>
                            <span class="num">
                                1
                            </span>
                        </div>
                    </li>
                </ul>
            </div>
            <div class="col-lg-4">
                <div class="profile-nav">
                    <div class="info">
                        <h5><?php echo e($currentUserInfo->name ?? ''); ?></h5>
                    </div>
                    <div class="user-img dropdown show">
                        <a href="#" class="dropdown-toggle" role="button" id="dropdownMenuLink" data-toggle="dropdown">
                            <img src="<?php echo e(asset($currentUserInfo->photo)); ?>" alt="">
                        </a>
                        <div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
                            <div class="pic text-center">
                                <img src="<?php echo e(asset($currentUserInfo->photo)); ?>" alt="">
                                <h5><?php echo e($currentUserInfo->name ?? ''); ?></h5>
                            </div>
                            <a class="dropdown-item" href="<?php echo e(route('admin_logout')); ?>"
                               onclick="event.preventDefault();document.getElementById('logout-form').submit();"><i class="fas fa-sign-out-alt"></i> <?php echo e(__('Logout')); ?>

                            </a>
                            <form id="logout-form" action="<?php echo e(route('admin_logout')); ?>" method="POST" style="display: none;">
                                <?php echo csrf_field(); ?>
                            </form>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="toggelmenu">
            <span></span>
            <span></span>
            <span></span>
            <i class="fas fa-arrow-right"></i>
        </div>
    </section>

    <!--Contents-->
    <main class="main">
        <?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-->
    <!-- -------------- request ----------------- -->
    <!-- <a class="to-top" data-scroll href="#bazinga" id="scroll-btn">
        <i class="fa fa-arrow-up"></i>
    </a> -->
<?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 C:\wamp64\www\nesma\resources\views/admin/layouts/container.blade.php ENDPATH**/ ?>