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

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>Admin</title>
    <link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
    <link href="<?php echo e(asset('css/libs/bootstrap4.min.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/libs/fontawesome.min.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/libs/custom-dashboard.css')); ?>" rel="stylesheet">
    
    <?php echo $__env->yieldContent('styles'); ?>

</head>

<body id="page-top">

    <!-- Page Wrapper -->
    <div id="wrapper">

        <!-- Sidebar -->
        <ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">

            <!-- Sidebar - Brand -->
            <a class="sidebar-brand d-flex align-items-center justify-content-center" href="#0">
                <div class="sidebar-brand-icon rotate-n-15">
                    <i class="fa fa-code"></i>
                </div>
                <div class="sidebar-brand-text mx-3">Vex<sup>v1.0</sup></div>
            </a>

            <!-- Divider -->
            <hr class="sidebar-divider my-0">

            <!-- Nav Item - Dashboard -->
            <li class="nav-item">
                <a class="nav-link" href="<?php echo e(route('dashboard.index')); ?>">
                    <i class="fas fa-fw fa-tachometer-alt"></i>
                    <span><?php echo e(clean( trans('niva-backend.dashboard') , array('Attr.EnableID' => true))); ?></span>
                </a>
            </li>

            <!-- Divider -->
            <hr class="sidebar-divider">

            <?php $lang = App\Models\Language::find(1); ?>

            <?php if(Auth::user()->role->name == 'administrator'): ?>
            <!-- Nav Item - Pages Collapse Menu -->
            <li class="nav-item">
                <a class="nav-link collapsed" href="/admin" data-toggle="collapse" data-target="#collapsePages"
                    aria-expanded="true" aria-controls="collapsePages">
                    <i class="far fa-fw fa-file"></i>
                    <span><?php echo e(clean( trans('niva-backend.pages') , array('Attr.EnableID' => true))); ?></span>
                </a>
                <div id="collapsePages" class="collapse"  data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">

                     
                        

                        <a class="collapse-item" href="<?php echo e(route('page.index')); ?>?language=<?php echo $lang->code; ?>"><?php echo e(clean( trans('niva-backend.all_pages') , array('Attr.EnableID' => true))); ?></a>
                        <a class="collapse-item" href="<?php echo e(route('page.create')); ?>?language=<?php echo $lang->code; ?>"><?php echo e(clean( trans('niva-backend.create_page') , array('Attr.EnableID' => true))); ?></a>
                       
                        <h6 class="collapse-header"><?php echo e(clean( trans('niva-backend.custom_pages') , array('Attr.EnableID' => true))); ?></h6>

                        
                           <a class="collapse-item" href="<?php echo e(route('index-custom')); ?>?language=<?php echo $lang->code; ?>"><?php echo e(clean( trans('niva-backend.custom_templates') , array('Attr.EnableID' => true))); ?></a>


                        
                    </div>
                </div>
            </li>
            <?php endif; ?>

            <?php if(Auth::user()->role->name == 'administrator'): ?>
            <li class="nav-item">
                <a class="nav-link collapsed" href="/admin" data-toggle="collapse" data-target="#collapseProjects"
                    aria-expanded="true" aria-controls="collapseProjects">
                    <i class="fas fa-fw fa-pencil-ruler"></i>
                    <span><?php echo e(clean( trans('niva-backend.projects') , array('Attr.EnableID' => true))); ?></span>
                </a>
                <div id="collapseProjects" class="collapse"  data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">
                        <a class="collapse-item" href="<?php echo e(route('project.index')); ?>?language=<?php echo $lang->code; ?>"><?php echo e(clean( trans('niva-backend.all_projects') , array('Attr.EnableID' => true))); ?></a>
                        <a class="collapse-item" href="<?php echo e(route('project.create')); ?>?language=<?php echo $lang->code; ?>"><?php echo e(clean( trans('niva-backend.create_project') , array('Attr.EnableID' => true))); ?></a>
                        <h6 class="collapse-header"><?php echo e(clean( trans('niva-backend.categories') , array('Attr.EnableID' => true))); ?></h6>
                        <a class="collapse-item" href="<?php echo e(route('project-category.index')); ?>?language=<?php echo $lang->code; ?>"><?php echo e(clean( trans('niva-backend.all_categories') , array('Attr.EnableID' => true))); ?></a>
                    </div>
                </div>
            </li>
            <?php endif; ?>

            <li class="nav-item">
                <a class="nav-link collapsed" href="/admin" data-toggle="collapse" data-target="#collapsePosts"
                    aria-expanded="true" aria-controls="collapsePosts">
                    <i class="fas fa-fw fa-file-signature"></i>
                    <span><?php echo e(clean( trans('niva-backend.posts') , array('Attr.EnableID' => true))); ?></span>
                </a>
                <div id="collapsePosts" class="collapse"  data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">
                        <a class="collapse-item" href="<?php echo e(route('post.index')); ?>?language=<?php echo $lang->code; ?>"><?php echo e(clean( trans('niva-backend.all_posts') , array('Attr.EnableID' => true))); ?></a>
                        <a class="collapse-item" href="<?php echo e(route('post.create')); ?>?language=<?php echo $lang->code; ?>"><?php echo e(clean( trans('niva-backend.create_post') , array('Attr.EnableID' => true))); ?></a>
                        <h6 class="collapse-header"><?php echo e(clean( trans('niva-backend.categories') , array('Attr.EnableID' => true))); ?></h6>
                        <a class="collapse-item" href="<?php echo e(route('category.index')); ?>?language=<?php echo $lang->code; ?>"><?php echo e(clean( trans('niva-backend.all_categories') , array('Attr.EnableID' => true))); ?></a>
                    </div>
                </div>
            </li>

            <li class="nav-item">
                <a class="nav-link collapsed" href="/media" data-toggle="collapse" data-target="#collapseMedia"
                    aria-expanded="true" aria-controls="collapseMedia">
                    <i class="fas fa-fw fa-images"></i>
                    <span><?php echo e(clean( trans('niva-backend.media') , array('Attr.EnableID' => true))); ?></span>
                </a>
                <div id="collapseMedia" class="collapse"  data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">
                        <a class="collapse-item" href="<?php echo e(route('media.index')); ?>"><?php echo e(clean( trans('niva-backend.all_media') , array('Attr.EnableID' => true))); ?></a>
                        <a class="collapse-item" href="<?php echo e(route('media.create')); ?>"><?php echo e(clean( trans('niva-backend.upload_image') , array('Attr.EnableID' => true))); ?></a>
                    </div>
                </div>
            </li>

            <?php if(Auth::user()->role->name == 'administrator'): ?>
            <!-- Nav Item - Pages Collapse Menu -->
            <li class="nav-item">
                <a class="nav-link collapsed" href="/admin" data-toggle="collapse" data-target="#collapseUsers"
                    aria-expanded="true" aria-controls="collapseUsers">
                    <i class="fas fa-fw fa-user"></i>
                    <span><?php echo e(clean( trans('niva-backend.users') , array('Attr.EnableID' => true))); ?></span>
                </a>
                <div id="collapseUsers" class="collapse"  data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">
                        <a class="collapse-item" href="<?php echo e(route('users.index')); ?>"><?php echo e(clean( trans('niva-backend.all_users') , array('Attr.EnableID' => true))); ?></a>
                        <a class="collapse-item" href="<?php echo e(route('users.create')); ?>"><?php echo e(clean( trans('niva-backend.create_user') , array('Attr.EnableID' => true))); ?></a>
                    </div>
                </div>
            </li>
            <?php endif; ?>

            <?php if(Auth::user()->role->name == 'administrator'): ?>
             <!-- Nav Item - Pages Collapse Menu -->
            <li class="nav-item">
                <a class="nav-link collapsed" href="/admin" data-toggle="collapse" data-target="#collapseElements"
                    aria-expanded="true" aria-controls="collapseElements">
                    <i class="fas fa-fw fa-layer-group"></i>
                    <span>Elements</span>
                </a>
                <div id="collapseElements" class="collapse"  data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">
                    	<a class="collapse-item" href="<?php echo e(route('slider.index')); ?>?language=<?php echo $lang->code; ?>">Manage slider </a>
                    	<a class="collapse-item" href="<?php echo e(route('service.index')); ?>?language=<?php echo $lang->code; ?>">Manage services</a>
                    	<a class="collapse-item" href="<?php echo e(route('testimonial.index')); ?>?language=<?php echo $lang->code; ?>">Manage testimonials</a>
                        <a class="collapse-item" href="<?php echo e(route('member.index')); ?>?language=<?php echo $lang->code; ?>">Manage members</a>
                        <a class="collapse-item" href="<?php echo e(route('client.index')); ?>?language=<?php echo $lang->code; ?>">Manage clients</a>
                        <a class="collapse-item" href="<?php echo e(route('pricing.index')); ?>?language=<?php echo $lang->code; ?>">Pricing tables</a>
                    </div>
                </div>
            </li>
            <?php endif; ?>

            <?php if(Auth::user()->role->name == 'administrator'): ?>
             <!-- Nav Item - Pages Collapse Menu -->
            <li class="nav-item">
                <a class="nav-link collapsed" href="/admin" data-toggle="collapse" data-target="#collapseSEO"
                    aria-expanded="true" aria-controls="collapseSEO">
                    <i class="fas fa-fw fa-cogs"></i>
                    <span><?php echo e(clean( trans('niva-backend.settings') , array('Attr.EnableID' => true))); ?></span>
                </a>
                <div id="collapseSEO" class="collapse"  data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">
                        <a class="collapse-item" href="<?php echo e(route('setting.edit')); ?>?language=<?php echo $lang->code; ?>"><?php echo e(clean( trans('niva-backend.title_log_favicon') , array('Attr.EnableID' => true))); ?></a>
                        <a class="collapse-item" href="<?php echo e(route('menu.index')); ?>?language=<?php echo $lang->code; ?>"><?php echo e(clean( trans('niva-backend.main_menu') , array('Attr.EnableID' => true))); ?></a>
                        <a class="collapse-item" href="<?php echo e(route('headerfooter-setting.edit')); ?>?language=<?php echo $lang->code; ?>"><?php echo e(clean( trans('niva-backend.header_and_footer') , array('Attr.EnableID' => true))); ?></a>
                        <a class="collapse-item" href="<?php echo e(route('language.index')); ?>"><?php echo e(clean( trans('niva-backend.all_languages') , array('Attr.EnableID' => true))); ?></a>
                    </div>
                </div>
            </li>
            <?php endif; ?>


           


            


  

            <!-- Divider -->
            <hr class="sidebar-divider d-none d-md-block">

            <!-- Sidebar Toggler (Sidebar) -->
            <div class="text-center d-none d-md-inline">
                <button class="rounded-circle border-0" id="sidebarToggle"></button>
            </div>


        </ul>
        <!-- End of Sidebar -->

        <!-- Content Wrapper -->
        <div id="content-wrapper" class="d-flex flex-column">

            <!-- Main Content -->
            <div id="content">

                <!-- Topbar -->
                <nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">



                    <!-- Sidebar Toggle (Topbar) -->
                    <button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
                        <i class="fa fa-bars"></i>
                    </button>


     

                    <!-- Topbar Navbar -->
                    <ul class="navbar-nav ml-auto">

    


                        <li> <a target="_blank" href="<?php echo e(route('home')); ?>" class="view-website-link d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="fab fa-chrome"></i> <?php echo e(clean( trans('niva-backend.view_website') , array('Attr.EnableID' => true))); ?></a></li>

                        <div class="topbar-divider d-none d-sm-block"></div>



                        <!-- Nav Item - User Information -->
                        <li class="nav-item dropdown no-arrow">
                            <a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button"
                                data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                <?php $user = Auth::user(); ?>
                                <span class="mr-2 d-none d-lg-inline text-gray-600 small"><?php echo e(auth()->user()->name); ?></span>
                                <img class="img-profile rounded-circle" src="<?php echo e($user->photo ? '/public/images/media/' . $user->photo->file : '/public/img/200x200.png'); ?>" alt="">
                            </a>
                            <!-- Dropdown - User Information -->
                            <div class="dropdown-menu dropdown-menu-right shadow animated--grow-in"
                                aria-labelledby="userDropdown">
                                <a class="dropdown-item" href="<?php echo e(url('/admin/users')); ?>/<?php echo e(auth()->user()->id); ?>/edit">
                                    <i class="fas fa-cogs fa-sm fa-fw mr-2 text-gray-400"></i>
                                    <?php echo e(clean( trans('niva-backend.edit_user') , array('Attr.EnableID' => true))); ?>

                                </a>
                                <div class="dropdown-divider"></div>
                                <a class="dropdown-item" href="#" data-toggle="modal" data-target="#logoutModal">
                                    <i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
                                    <?php echo e(clean( trans('niva-backend.logout') , array('Attr.EnableID' => true))); ?>

                                </a>
                               
                            </div>
                        </li>

                    </ul>

                </nav>

                                <div class="alert alert-success alert-dismissible fade show" role="alert">
  <strong>In the demo version, all buttons are deactivated.</strong>
  <button type="button" class="close" data-dismiss="alert" aria-label="Close">
    <span aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i>
</span>
  </button>
</div>


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

            </div>
            <!-- End of Main Content -->

            <!-- Footer -->
            <footer class="sticky-footer bg-white">
                <div class="container my-auto">
                    <div class="copyright text-center my-auto">
                        <span><?php echo e(clean( trans('niva-backend.copyright_text') , array('Attr.EnableID' => true))); ?></span>
                    </div>
                </div>
            </footer>
            <!-- End of Footer -->

        </div>
        <!-- End of Content Wrapper -->

    </div>
    <!-- End of Page Wrapper -->

    <!-- Scroll to Top Button-->
    <a class="scroll-to-top rounded" href="#page-top">
        <i class="fas fa-angle-up"></i>
    </a>

    <!-- Logout Modal-->
    <div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
        aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="exampleModalLabel"><?php echo e(clean( trans('niva-backend.ready_leave') , array('Attr.EnableID' => true))); ?></h5>
                    <button class="close" type="button" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">×</span>
                    </button>
                </div>
                <div class="modal-body"><?php echo e(clean( trans('niva-backend.logout_message') , array('Attr.EnableID' => true))); ?></div>
                <div class="modal-footer">
                    <button class="btn btn-secondary" type="button" data-dismiss="modal" ><?php echo e(clean( trans('niva-backend.cancel') , array('Attr.EnableID' => true))); ?></button>
                    <a class="btn btn-primary" href="<?php echo e(route('logout')); ?>"  onclick="event.preventDefault(); document.getElementById('logout-form').submit();"><?php echo e(clean( trans('niva-backend.logout') , array('Attr.EnableID' => true))); ?></a>
                    <form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" style="display: none;"><?php echo e(csrf_field()); ?> </form>
                </div>
            </div>
        </div>
    </div>

    <!-- Scripts -->
    <script src="<?php echo e(asset('js/libs/jquery.min.js')); ?>"></script>
    <script src="<?php echo e(asset('js/libs/bootstrap.bundle.min.js')); ?>"></script>
    <script src="<?php echo e(asset('js/libs/sb-admin-2.min.js')); ?>"></script>
    <script src="<?php echo e(asset('js/libs/dropzone.min.js')); ?>"></script>
    <script src="<?php echo e(asset('js/libs/custom-dashboard.js')); ?>"></script>

    <script type="text/javascript">
        ( function ( $ ) {
            'use strict';
            $( document ).ready( function () {

                 $('body#page-top .card-body form .btn').prop('disabled', true);
                 $('body#page-top .card-body form').removeAttr('action');

            

            })
        } ( jQuery ) )
    </script>

    <?php echo $__env->yieldContent('footer'); ?>
   

    


</body>

</html>
<?php /**PATH /home/lucilzud/vex4.lucian.host/resources/views/layouts/admin.blade.php ENDPATH**/ ?>