<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta id="csrfToken" name="csrf-token" content="<?php echo e(csrf_token()); ?>"/>
    <title>پنل مدیریت | <?php echo e($title ?? ''); ?></title>

    <link href="https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v29.1.0/dist/font-face.css" rel="stylesheet"
          type="text/css"/>
    <!-- Tell the browser to be responsive to screen width -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Font Awesome -->

    <script src="https://use.fontawesome.com/943f545643.js"></script>

<!-- Ionicons -->
    <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="<?php echo e(asset('adminPanel/dist/css/adminlte.min.css')); ?>">


<!-- bootstrap wysihtml5 - text editor -->
    <link rel="stylesheet" href="<?php echo e(asset('adminPanel/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css')); ?>">
    <!-- Google Font: Source Sans Pro -->
    <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
    <!-- bootstrap rtl -->
    <link rel="stylesheet" href="<?php echo e(asset('adminPanel/dist/css/bootstrap-rtl.min.css')); ?>">
    <!-- template rtl version -->
    <?php echo e($linkCss ?? ''); ?>

    <link rel="stylesheet" href="<?php echo e(asset('adminPanel/dist/css/custom-style.css')); ?>">



</head>

<body class="hold-transition sidebar-mini">
<div class="wrapper">

    <!-- Navbar -->
    <nav class="main-header navbar navbar-expand bg-white navbar-light border-bottom">
        <!-- Left navbar links -->
        <ul class="navbar-nav">
            <li class="nav-item">
                <a class="nav-link" data-widget="pushmenu" href="#"><i class="fa fa-bars"></i></a>
            </li>
        </ul>

        <!-- SEARCH FORM -->

        <!-- Right navbar links -->
        <ul class="navbar-nav mr-auto">
            <!-- Messages Dropdown Menu -->
            <?php if(auth()->user()->hasAnyPermission([\Mehrab\RolePermission\Models\Permission::PERMISSION_EXPERT,\Mehrab\RolePermission\Models\Permission::PERMISSION_ORDER_SERVICE_OPERATOR,\Mehrab\RolePermission\Models\Permission::PERMISSION_TEAM_LEADER])): ?>
                <li class="nav-item dropdown">
                    <a class="nav-link" onclick="statusItemAvailable(event,'<?php echo e(route('users.status_available')); ?>')"
                       href="<?php echo e(route('users.status_available')); ?>" title="وضعیت حضور">
                    <span
                        class="badge <?php echo e(auth()->user()->getStatusUser() == "در دسترس هستم" ? 'badge-success' : 'badge-warning'); ?>  navbar-badge p-2 d-flex align-items-center justify-content-between"
                        id="available_status" style="margin-top: -3px;right:-83px;min-width: 5rem">
                        <span class="" id="available_status_text"><?php echo e(auth()->user()->getStatusUser()); ?></span>
                        <i class="fa fa-refresh mr-2" aria-hidden="true"></i>
                    </span>
                    </a>
                </li>
            <?php endif; ?>






            <li class="nav-item dropdown">
                <a class="nav-link" href="<?php echo e(route('home')); ?>">
                    <i class="fa fa-home"></i>
                    <span class="badge badge-danger navbar-badge"></span>
                </a>
            </li>
            <!-- Notifications Dropdown Menu -->
        </ul>
    </nav>
    <!-- /.navbar -->

    <!-- Main Sidebar Container -->
    <aside class="main-sidebar sidebar-dark-primary elevation-4">
        <!-- Brand Logo -->
        <a href="index3.html" class="brand-link">
            <span class="brand-text font-weight-light">داشبورد</span>
        </a>

        <!-- Sidebar -->
        <div class="sidebar" style="direction: ltr">
            <div style="direction: rtl">
                <!-- Sidebar user panel (optional) -->
                <div class="user-panel mt-3 pb-3 mb-3 d-flex align-items-center">
                    <div class="image ">
                        <?php if(auth()->user()->profile_pic_id): ?>
                            <img src="<?php echo e(auth()->user()->thumb()); ?>" class=" mr-3" style="width: 65px; height: 65px">
                        <?php else: ?>
                        <i class="fa fa-user-circle text-info fa-4x mr-3"></i>
                        <?php endif; ?>
                    </div>
                    <div class="info">
                        <a href="#" class="d-block">
                            <?php echo e(auth()->user()->name ?? auth()->user()->mobile); ?>

                            <span class="small d-block"><?php echo app('translator')->get(auth()->user()->role ?? ''); ?></span>
                            <?php if(auth()->user()->hasPermissionTo(\Mehrab\RolePermission\Models\Permission::PERMISSION_EXPERT)): ?>
                                <span class="small d-block"><?php echo app('translator')->get('موجودی : ' . auth()->user()->amount ?? ''); ?></span>
                            <?php else: ?>
                                <span class="small d-block mt-1"><?php echo app('translator')->get(auth()->user()->getRoleNames()->first()); ?></span>
                            <?php endif; ?>
                        </a>
                    </div>
                </div>

                <!-- Sidebar Menu -->
                <nav class="mt-2">
                    <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu"
                        data-accordion="false">
                        <li class="nav-item has-treeview mr-1">
                            <a href="<?php echo e(route("admin.dashboard")); ?>"
                               class="nav-link <?php if(request()->segment(2) == 'dashboard'): ?> active <?php endif; ?>">
                                <i class="fa fa-tachometer" aria-hidden="true"></i>
                                <p>
                                    داشبورد
                                </p>
                            </a>
                        </li>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check(\Mehrab\RolePermission\Models\Permission::PERMISSION_MANAGE_USER)): ?>
                            <li class="nav-item has-treeview ">
                                <a href="#" class="nav-link <?php if(request()->segment(2) == 'users'): ?> active <?php endif; ?>">
                                    <i class="fa fa-users" aria-hidden="true"></i>
                                    <p>
                                        مدیریت کاربران
                                        <i class="right fa fa-angle-left"></i>
                                    </p>
                                </a>
                                <ul class="nav nav-treeview">
                                    <li class="nav-item">
                                        <a href="<?php echo e(route('users.index')); ?>" class="nav-link ">
                                            <i class="fa fa-circle-o nav-icon"></i>
                                            <p>کاربران</p>
                                        </a>
                                    </li>
                                </ul>
                                <ul class="nav nav-treeview">
                                    <li class="nav-item">
                                        <a href="<?php echo e(route('users.create')); ?>" class="nav-link ">
                                            <i class="fa fa-circle-o nav-icon"></i>
                                            <p>ایجاد کاربر</p>
                                        </a>
                                    </li>
                                </ul>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check(\Mehrab\RolePermission\Models\Permission::PERMISSION_MANAGE_TEAM_LEADER)): ?>
                                    <ul class="nav nav-treeview">
                                        <li class="nav-item">
                                            <a href="<?php echo e(route('team_leaders.index')); ?>" class="nav-link ">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p>مدیریت سرتیم ها</p>
                                            </a>
                                        </li>
                                    </ul>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check(\Mehrab\RolePermission\Models\Permission::PERMISSION_MANAGE_EXPERT)): ?>
                                    <ul class="nav nav-treeview">
                                        <li class="nav-item">
                                            <a href="<?php echo e(route('experts.index')); ?>" class="nav-link ">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p>مدیریت متخصصان</p>
                                            </a>
                                        </li>
                                    </ul>
                                <?php endif; ?>
                            </li>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check(\Mehrab\RolePermission\Models\Permission::PERMISSION_MANAGE_ROLEPERMISSON)): ?>
                                <li class="nav-item has-treeview ">
                                    <a href="#"
                                       class="nav-link <?php if(request()->segment(2) == 'role_permission'): ?> active <?php endif; ?>">
                                        <i class="fa fa-shield" aria-hidden="true"></i>
                                        <p>
                                            مدیریت دسترسی ها
                                            <i class="right fa fa-angle-left"></i>
                                        </p>
                                    </a>
                                    <ul class="nav nav-treeview">
                                        <li class="nav-item">
                                            <a href="<?php echo e(route('role_permission.index')); ?>" class="nav-link ">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p class="small">لیست دسترسی ها</p>
                                            </a>
                                        </li>
                                    </ul>
                                    <ul class="nav nav-treeview">
                                        <li class="nav-item">
                                            <a href="<?php echo e(route('role_permission.create')); ?>" class="nav-link ">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p class="small">ایجاد دسترسی جدید</p>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check(\Mehrab\RolePermission\Models\Permission::PERMISSION_MANAGE_SERVICE)): ?>
                                <li class="nav-item has-treeview ">
                                    <a href=""
                                       class="nav-link <?php if(request()->segment(2) == 'service'): ?> active <?php endif; ?>">
                                        <i class="fa fa-wrench" aria-hidden="true"></i>
                                        <p>
                                            مدیریت خدمات
                                            <i class="right fa fa-angle-left"></i>
                                        </p>
                                    </a>
                                    <ul class="nav nav-treeview">
                                        <li class="nav-item">
                                            <a href="<?php echo e(route('service.index')); ?>" class="nav-link">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p>
                                                    لیست خدمات
                                                </p>
                                            </a>
                                        </li>
                                    </ul>
                                    <ul class="nav nav-treeview">
                                        <li class="nav-item">
                                            <a href="<?php echo e(route('service.create')); ?>" class="nav-link">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p>
                                                    ایجاد خدمات
                                                </p>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check(\Mehrab\RolePermission\Models\Permission::PERMISSION_MANAGE_STATE)): ?>
                                <li class="nav-item has-treeview ">
                                    <a href="#"
                                       class="nav-link <?php if(request()->segment(2) == 'city' || request()->segment(2) == 'region'): ?> active <?php endif; ?>">
                                        <i class="fa fa-map-marker" aria-hidden="true"></i>
                                        <p>
                                            مدیریت شهرها
                                            <i class="right fa fa-angle-left"></i>
                                        </p>
                                    </a>
                                    <ul class="nav nav-treeview">
                                        <li class="nav-item">
                                            <a href="<?php echo e(route('city.index')); ?>" class="nav-link ">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p class="small">لیست استان ها</p>
                                            </a>
                                        </li>
                                    </ul>
                                    <ul class="nav nav-treeview">
                                        <li class="nav-item">
                                            <a href="<?php echo e(route('city.create')); ?>" class="nav-link ">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p class="small">ایجاد استان</p>
                                            </a>
                                        </li>
                                    </ul>
                                    <ul class="nav nav-treeview">
                                        <li class="nav-item">
                                            <a href="<?php echo e(route('region.index')); ?>" class="nav-link ">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p class="small">لیست مناطق</p>
                                            </a>
                                        </li>
                                    </ul>
                                    <ul class="nav nav-treeview">
                                        <li class="nav-item">
                                            <a href="<?php echo e(route('region.create')); ?>" class="nav-link ">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p class="small">ایجاد مناطق</p>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any([\Mehrab\RolePermission\Models\Permission::PERMISSION_ORDER_SERVICE_OPERATOR,\Mehrab\RolePermission\Models\Permission::PERMISSION_TEAM_LEADER,\Mehrab\RolePermission\Models\Permission::PERMISSION_EXPERT,\Mehrab\RolePermission\Models\Permission::PERMISSION_ACCESS_ALL_ORDER_SERVICE])): ?>
                                <li class="nav-item has-treeview ">
                                    <a href=""
                                       class="nav-link <?php if(request()->segment(2) == 'order_service'): ?> active <?php endif; ?>">
                                        <i class="fa fa-newspaper-o" aria-hidden="true"></i>
                                        <p>
                                            مدیریت سفارشات
                                            <i class="right fa fa-angle-left"></i>
                                        </p>
                                    </a>
                                    <ul class="nav nav-treeview">
                                        <li class="nav-item">
                                            <a href="<?php echo e(route('order_service.index')); ?>" class="nav-link">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p>
                                                    لیست سفارشات
                                                </p>
                                            </a>
                                        </li>
                                    </ul>
                                    <ul class="nav nav-treeview">
                                        <li class="nav-item">
                                            <a href="<?php echo e(route('cancel_order_service.index')); ?>" class="nav-link">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p>
                                                    سفارشات لغو شده
                                                </p>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any([\Mehrab\RolePermission\Models\Permission::PERMISSION_MANAGE_PAYMENT,\Mehrab\RolePermission\Models\Permission::PERMISSION_EXPERT])): ?>
                                <li class="nav-item has-treeview ">
                                    <a href=""
                                       class="nav-link <?php if(request()->segment(2) == 'payments'): ?> active <?php endif; ?>">
                                        <i class="fa fa-credit-card" aria-hidden="true"></i>
                                        <p>
                                            مدیریت پرداخت ها
                                            <i class="right fa fa-angle-left"></i>
                                        </p>
                                    </a>
                                    <ul class="nav nav-treeview">
                                        <li class="nav-item">
                                            <a href="<?php echo e(route('payment.index')); ?>" class="nav-link">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p>
                                                    لیست پرداخت ها
                                                </p>
                                            </a>
                                        </li>
                                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check(\Mehrab\RolePermission\Models\Permission::PERMISSION_MANAGE_PAYMENT)): ?>
                                            <li class="nav-item">
                                                <a href="<?php echo e(route('payment.info')); ?>" class="nav-link">
                                                    <i class="fa fa-circle-o nav-icon"></i>
                                                    <p>
                                                        آمار پرداخت ها
                                                    </p>
                                                </a>
                                            </li>
                                        <?php endif; ?>
                                        <?php if(auth()->user()->hasPermissionTo(\Mehrab\RolePermission\Models\Permission::PERMISSION_EXPERT)): ?>
                                            <li class="nav-item">
                                                <a href="<?php echo e(route('settlement.create')); ?>" class="nav-link">
                                                    <i class="fa fa-circle-o nav-icon"></i>
                                                    <p>
                                                        درخواست تسویه
                                                    </p>
                                                </a>
                                            </li>
                                        <?php endif; ?>
                                        <li class="nav-item">
                                            <a href="<?php echo e(route('settlement.index')); ?>" class="nav-link">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p>
                                                    لیست تسویه
                                                </p>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any([\Mehrab\RolePermission\Models\Permission::PERMISSION_MANAGE_COMMENT,\Mehrab\RolePermission\Models\Permission::PERMISSION_EXPERT])): ?>
                                <li class="nav-item has-treeview ">
                                    <a href=""
                                       class="nav-link <?php if(request()->segment(2) == 'service_comments'): ?> active <?php endif; ?>">
                                        <i class="fa fa-comments" aria-hidden="true"></i>
                                        <p>
                                            مدیریت نظرات
                                            <i class="right fa fa-angle-left"></i>
                                        </p>
                                    </a>
                                    <ul class="nav nav-treeview">
                                        <li class="nav-item">
                                            <a href="<?php echo e(route('service_comments.index')); ?>" class="nav-link">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p>
                                                    لیست نظرات خدمات
                                                </p>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check(\Mehrab\RolePermission\Models\Permission::PERMISSION_MANAGE_SLIDER)): ?>
                            <li class="nav-item has-treeview ">
                                <a href=""
                                   class="nav-link <?php if(request()->segment(2) == 'slider'): ?> active <?php endif; ?>">
                                    <i class="fa fa-picture-o" aria-hidden="true"></i>
                                    <p>
                                        مدیریت اسلایدر
                                        <i class="right fa fa-angle-left"></i>
                                    </p>
                                </a>
                                <ul class="nav nav-treeview">
                                    <li class="nav-item">
                                        <a href="<?php echo e(route('slider.create')); ?>" class="nav-link">
                                            <i class="fa fa-circle-o nav-icon"></i>
                                            <p>
                                                ایجاد اسلایدر
                                            </p>
                                        </a>
                                        <a href="<?php echo e(route('slider.index')); ?>" class="nav-link">
                                            <i class="fa fa-circle-o nav-icon"></i>
                                            <p>
                                                لیست اسلایدر عمومی
                                            </p>
                                        </a>
                                        <a href="<?php echo e(route('slider.service.index')); ?>" class="nav-link">
                                            <i class="fa fa-circle-o nav-icon"></i>
                                            <p>
                                                 لیست اسلایدر خدمات
                                            </p>
                                        </a>
                                        <a href="<?php echo e(route('slider.service_discount.index')); ?>" class="nav-link">
                                            <i class="fa fa-circle-o nav-icon"></i>
                                            <p>
                                                  اسلایدر خدمات شگفت انگیز
                                            </p>
                                        </a>
                                    </li>
                                </ul>
                            </li>
                            <?php endif; ?>
                                <li class="nav-item has-treeview ">
                                    <a href=""
                                       class="nav-link <?php if(request()->segment(2) == 'slider'): ?> active <?php endif; ?>">
                                        <i class="fa fa-user-circle ml-1" aria-hidden="true"></i>
                                        <p>
                                            پروفایل
                                            <i class="right fa fa-angle-left"></i>
                                        </p>
                                    </a>
                                    <ul class="nav nav-treeview">
                                        <li class="nav-item">
                                            <a href="<?php echo e(route('users.update_profile_info')); ?>" class="nav-link">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p>
                                                    ویرایش پروفایل
                                                </p>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check(\Mehrab\RolePermission\Models\Permission::PERMISSION_SUPER_ADMIN)): ?>
                                <li class="nav-item has-treeview ">
                                    <a href=""
                                       class="nav-link <?php if(request()->segment(2) == 'contactUs'): ?> active <?php endif; ?>">
                                        <i class="fa fa-mobile ml-1" aria-hidden="true"></i>
                                        <p>
                                            تماس با ما
                                            <i class="right fa fa-angle-left"></i>
                                        </p>
                                    </a>
                                    <ul class="nav nav-treeview">
                                        <li class="nav-item">
                                            <a href="<?php echo e(route('contactUs.status')); ?>" class="nav-link">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p>
                                                    لیست تماس با ما
                                                </p>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check(\Mehrab\RolePermission\Models\Permission::PERMISSION_SUPER_ADMIN)): ?>
                                <li class="nav-item has-treeview ">
                                    <a href="#" class="nav-link <?php if(request()->segment(2) == 'terakets'): ?> active <?php endif; ?>">
                                        <i class="fa fa-book" aria-hidden="true"></i>
                                        <p>
                                            مدیریت مقالات
                                            <i class="right fa fa-angle-left"></i>
                                        </p>
                                    </a>
                                    <ul class="nav nav-treeview">
                                        <li class="nav-item">
                                            <a href="#" class="nav-link ">
                                                <i class="fa fa-circle-o nav-icon"></i>
                                                <p>در حال توسعه</p>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                            <?php endif; ?>
                    </ul>
                </nav>
                <!-- /.sidebar-menu -->
            </div>
        </div>
        <!-- /.sidebar -->
    </aside>
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <!-- /.content-header -->

        <!-- Main content -->
        <section class="content">
            <?php echo e($main ?? ''); ?>

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


<!-- jQuery -->

<div class="loader_ajax d-none"></div>

</body>

<script src="<?php echo e(asset('adminPanel/plugins/jquery/jquery.min.js')); ?>"></script>
<!-- Bootstrap 4 -->
<script src="<?php echo e(asset('adminPanel/plugins/bootstrap/js/bootstrap.bundle.min.js')); ?>"></script>
<script src="<?php echo e(asset('adminPanel/plugins/chartjs-old/Chart.js')); ?>"></script>
<!-- AdminLTE App -->
<script src="<?php echo e(asset('adminPanel/dist/js/adminlte.js')); ?>"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="<?php echo e(asset('adminPanel/dist/js/sweetalert2.js')); ?>"></script>
<script src="<?php echo e(asset('adminPanel/dist/js/styles.js')); ?>"></script>
<script src="<?php echo e(asset('adminPanel/dist/js/ckeditor.js')); ?>"></script>
<script src="<?php echo e(asset('adminPanel/dist/js/pages/dashboard.js')); ?>"></script>
<script src="<?php echo e(asset('adminPanel/dist/js/dropzone.min.js')); ?>"></script>
<?php echo e($linkScript ?? ''); ?>

<script src="<?php echo e(asset('adminPanel/dist/js/ajaxAdmin.js')); ?>"></script>


<script>
    <?php echo e($script ?? ''); ?>

    modal.click()
    jQuery(document).ajaxStart(function () {
        jQuery('.loader_ajax').toggleClass('d-none')
        jQuery("#btnClose").trigger('click');
    });
    $(document).ajaxComplete(function () {
        jQuery('.loader_ajax').toggleClass('d-none')
    });

    function logout(event) {
        event.preventDefault();
        document.getElementById('logoutForm').submit();
    }
</script>
</html>
<?php /**PATH C:\xampp\htdocs\newer\resources\views/layouts/appAdmin.blade.php ENDPATH**/ ?>
