
<!DOCTYPE html>
<html class="loading bordered-layout" lang="en" data-layout="bordered-layout" data-textdirection="rtl">
  <!-- BEGIN: Head-->
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=0,minimal-ui">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="author" content="">
    <title><?php echo $__env->yieldContent('title',env('APP_NAME')); ?></title>
    <meta name="_token" content="<?php echo e(csrf_token()); ?>" />
    <meta name="app_url" content="<?php echo e(env('APP_URL')); ?>" />
    <link rel="shortcut icon" type="image/x-icon" href="<?php echo e(asset('app-assets/images/favicon.ico')); ?>">
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500;1,600" rel="stylesheet">
    
        <!-- END: Vendor CSS-->
      <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/vendors/css/vendors-rtl.min.css')); ?>">
      <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/vendors/css/apexcharts.css')); ?>">
      <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/vendors/css/toastr.min.css')); ?>">
      <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/css/sweetalert.min.css')); ?>">
      <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/css/dataTables.bootstrap5.min.css')); ?>">
      <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/css/responsive.bootstrap5.min.css')); ?>">
      <link rel="stylesheet" href="<?php echo e(asset('app-assets/css/select2.min.css')); ?>">


        <!-- END: Vendor CSS-->

    <!-- BEGIN: Theme CSS-->
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/css/bootstrap.min.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/css/bootstrap-extended.min.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/css/colors.min.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/css/components.min.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/css/dark-layout.min.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/css/bordered-layout.min.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/css/semi-dark-layout.min.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/plugins/form-validation.css')); ?>">

    <!-- BEGIN: Page CSS-->
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/css/vertical-menu.min.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/vendors/pages/dashboard-ecommerce.min.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/plugins/chart-apex.min.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/plugins/ext-component-toastr.min.css')); ?>">
    <!-- END: Page CSS-->

    <!-- BEGIN: Custom CSS-->
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/css/custom-rtl.min.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/css/line-awesome.css')); ?>">
    <!-- END: Custom CSS-->
     <?php echo $__env->yieldContent('style'); ?>

    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/css/style-rtl.css')); ?>">
  </head>
  <!-- END: Head-->

  <!-- BEGIN: Body-->
  <body class="vertical-layout vertical-menu-modern  navbar-floating footer-static  " data-open="click" data-menu="vertical-menu-modern" data-col="">

    <!-- BEGIN: Header-->
    <nav class="header-navbar navbar navbar-expand-lg align-items-center floating-nav navbar-light navbar-shadow container-xxl no-print">
      
      <div class="navbar-container d-flex content">
        <div class="bookmark-wrapper d-flex align-items-center">
          <ul class="nav navbar-nav d-xl-none">
            <li class="nav-item"><a class="nav-link menu-toggle" href="#"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-menu ficon"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg></a></li>
          </ul>
        </div>
        <ul class="nav navbar-nav align-items-center ms-auto">
          <li class="nav-item dropdown dropdown-user">
             <a class="nav-link dropdown-toggle dropdown-user-link" id="dropdown-user" href="#" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                <div class="user-nav d-sm-flex d-none"><span class="user-name fw-bolder"><?php echo e(Auth::user()->name); ?></span><span class="user-status"><?php $__currentLoopData = Auth::user()->getRoleNames(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php echo e($role); ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></span></div>
                <span class="avatar"><img class="round" src="<?php if(isset(Auth::user()->profile->profile_pic) && !empty(Auth::user()->profile->profile_pic) ): ?><?php echo e(asset(Auth::user()->profile->profile_pic)); ?><?php else: ?> <?php echo e(asset('app-assets/images/user.png')); ?> <?php endif; ?>"
               alt="avatar" height="40" width="40"><span class="avatar-status-online"></span></span>
             </a>
             <div class="dropdown-menu dropdown-menu-end" aria-labelledby="dropdown-user">
                <a class="dropdown-item" href="<?php echo e(route('client.profile.edit')); ?>"><i class="me-50" data-feather="user"></i> الملف الشخصي</a>
                <div class="dropdown-divider"></div>
                <a class="dropdown-item" href="<?php echo e(route('client.logout')); ?>"
                onclick="event.preventDefault();document.getElementById('logout-form').submit();"><i class="me-50" data-feather="power"></i> تسجيل الخروج</a>
             </div>
          </li>
       </ul>
      </div>
    </nav>
    <form id="logout-form" action="<?php echo e(route('client.logout')); ?>" method="POST"
    style="display: none;">
  <?php echo csrf_field(); ?>
</form>

 
    <!-- END: Header-->


    <!-- BEGIN: Main Menu-->
    <div class="main-menu menu-fixed menu-light menu-accordion menu-shadow no-print" data-scroll-to-active="true">
      <div class="navbar-header">
        <ul class="nav navbar-nav flex-row">
          <li class="nav-item me-auto"><a class="navbar-brand" href="<?php echo e(route('client.home')); ?>">
              <h2 class="brand-text"><?php echo e(Auth::user()->company->company_name); ?></h2></a></li>
          <li class="nav-item nav-toggle"><a class="nav-link modern-nav-toggle pe-0" data-bs-toggle="collapse"><i class="d-block d-xl-none text-primary toggle-icon font-medium-4" data-feather="x"></i><i class="d-none d-xl-block collapse-toggle-icon font-medium-4  text-primary" data-feather="disc" data-ticon="disc"></i></a></li>
        </ul>
      </div>
      <div class="shadow-bottom"></div>
      <div class="main-menu-content">
        <ul class="navigation navigation-main" id="main-menu-navigation" data-menu="menu-navigation">
          
          <li class="<?php echo e(Request::is('*/home') ? 'active' : ''); ?> nav-item"><a class="d-flex align-items-center" href="<?php echo e(route('client.home')); ?>"><i data-feather="home"></i><span class="menu-title text-truncate" data-i18n="Dashboards">لوحة التحكم</span></a></li>
         
          <?php if(empty($package) ||  $package->sales == "1"): ?>
          <?php if($screen_settings->sales == "1"): ?>
          <li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='shopping-cart'></i><span class="menu-title text-truncate">المبيعات</span></a>
            <ul class="menu-content">
      
                  <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('فواتير البيع السابقة')): ?>
                  <li class=" nav-item <?php echo e(Request::is('*/sale_bills/index') ? 'active' : ''); ?> <?php echo e(Request::is('*/sale_bills/edit/*') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.sale_bills.index')); ?>"><i  data-feather='eye' style="width: 15;height: 15;"></i><span class="menu-title text-truncate">عرض</span></a>
                  </li>
                  <?php endif; ?>
                  <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('اضافة فاتورة بيع جديدة')): ?>
                  <li class=" nav-item <?php echo e(Request::is('*/sale_bills/create') ? 'active' : ''); ?> "><a class="d-flex align-items-center" href="<?php echo e(route('client.sale_bills.create')); ?>"><i data-feather='plus' style="width: 15;height: 15;"></i><span class="menu-title text-truncate" >فاتورة جديدة</span></a>
                  </li>
                  <?php endif; ?>
                </ul>
          </li>
          <?php endif; ?>
          <?php endif; ?>


          <?php if(empty($package) ||  $package->debt == "1"): ?>
          <?php if($screen_settings->debt == "1"): ?>

          <li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='users' ></i><span class="menu-title text-truncate">العملاء</span></a>
            <ul class="menu-content">
              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('قائمة العملاء الحاليين')): ?>
              <li class=" nav-item <?php echo e(Request::is('*/outer_clients/index','*/outer_clients/edit/*','*/outer_clients/*/*') ? 'active' : ''); ?>   " ><a class="d-flex align-items-center" href="<?php echo e(route('client.outer_clients.index')); ?>"><i  data-feather='eye' style="width: 15;height: 15;"></i><span class="menu-title text-truncate">عرض العملاء</span></a>
              </li>
              <?php endif; ?>
              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('اضافة عميل جديد')): ?>
              <li class=" nav-item <?php echo e(Request::is('*/outer_clients/create') ? 'active' : ''); ?> "><a class="d-flex align-items-center" href="<?php echo e(route('client.outer_clients.create')); ?>"><i data-feather='plus' style="width: 15;height: 15;"></i><span class="menu-title text-truncate" >إضافة</span></a>
              </li>
              <?php endif; ?>
            </ul>
          </li>
          <?php endif; ?>
          <?php endif; ?>

          <?php if(empty($package) ||  $package->finance == "1"): ?>
          <?php if($screen_settings->finance == "1"): ?>
      
          <li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='layers'></i><span class="menu-title text-truncate"> المصاريف </span></a>
          <ul class="menu-content">
      
              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('عرض المصاريف')): ?>
              <li class=" nav-item <?php echo e(Request::is('*/expenses/index') ? 'active' : ''); ?> <?php echo e(Request::is('*/expenses/edit/*') ? 'active' : ''); ?> "><a class="d-flex align-items-center" href="<?php echo e(route('client.expenses.index')); ?>"><i data-feather='eye' style="width: 15;height: 15;"></i><span class="menu-title text-truncate" > عرض</span></a>
              </li>
              <?php endif; ?>
              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('تسجيل مصاريف جديدة')): ?>
              <li class=" nav-item <?php echo e(Request::is('*/expenses/create') ? 'active' : ''); ?> "><a class="d-flex align-items-center" href="<?php echo e(route('client.expenses.create')); ?>"><i data-feather='plus' style="width: 15;height: 15;"></i><span class="menu-title text-truncate" >إضافة</span></a>
              </li>
              <?php endif; ?>
              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('المصاريف الثابتة')): ?>
              <li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='circle' style="width: 18;height: 18;"></i><span class="menu-title text-truncate"> الثوابت </span></a>
                <ul class="menu-content">
                  <li class=" nav-item <?php echo e(Request::is('*/expenses/fixed') ? 'active' : ''); ?> <?php echo e(Request::is('*/expenses/fixed/edit/*') ? 'active' : ''); ?> <?php echo e(Request::is('*/banks/edit/*') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.fixed.expenses')); ?>"><i  data-feather='eye' style="width: 15;height: 15;"></i><span class="menu-title text-truncate">عرض</span></a>
                  </li>
                </ul>
              </li>
              <?php endif; ?>
            </ul>
            </li>
           <?php endif; ?>
           <?php endif; ?>

          <?php if(empty($package) ||  $package->purchases == "1"): ?>
          <?php if($screen_settings->purchases == "1"): ?>
          <li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='file-text'></i><span class="menu-title text-truncate">المشتريات</span></a>
            <ul class="menu-content">
                  <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('فواتير المشتريات السابقة')): ?>
                  <li class=" nav-item <?php echo e(Request::is('*/buy_bills/index') ? 'active' : ''); ?> <?php echo e(Request::is('*/buy_bills/edit/*') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.buy_bills.index')); ?>"><i  data-feather='eye' style="width: 15;height: 15;"></i><span class="menu-title text-truncate">عرض</span></a>
                  </li>
                  <?php endif; ?>
                  <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('اضافة فاتورة مشتريات جديدة')): ?>
                  <li class=" nav-item <?php echo e(Request::is('*/buy_bills/create') ? 'active' : ''); ?> "><a class="d-flex align-items-center" href="<?php echo e(route('client.buy_bills.create')); ?>"><i data-feather='plus' style="width: 15;height: 15;"></i><span class="menu-title text-truncate" >فاتورة جديدة</span></a>
                  </li>
                  <?php endif; ?>
            </ul>
          </li>
          <?php endif; ?>
          <?php endif; ?>

          <?php if(empty($package) ||  $package->debt == "1"): ?>
          <?php if($screen_settings->debt == "1"): ?>
              <li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='users' ></i><span class="menu-title text-truncate">الموردين</span></a>
                <ul class="menu-content">
                  <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('قائمة الموردين الحاليين')): ?>
                  <li class=" nav-item <?php echo e(Request::is('*/suppliers/index') ? 'active' : ''); ?> <?php echo e(Request::is('*/suppliers/edit/*') ? 'active' : ''); ?> <?php echo e(Request::is('*/suppliers/*/*') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.suppliers.index')); ?>"><i  data-feather='eye' style="width: 15;height: 15;"></i><span class="menu-title text-truncate">عرض الموردين</span></a>
                  </li>
                  <?php endif; ?>
                  <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('اضافة مورد جديد')): ?>
                  <li class=" nav-item <?php echo e(Request::is('*/suppliers/create') ? 'active' : ''); ?> "><a class="d-flex align-items-center" href="<?php echo e(route('client.suppliers.create')); ?>"><i data-feather='plus' style="width: 15;height: 15;"></i><span class="menu-title text-truncate" >إضافة</span></a>
                  </li>
                  <?php endif; ?>
                </ul>
              </li>
          <?php endif; ?>
         <?php endif; ?>

  <?php if(empty($package) ||  $package->banks_safes == "1"): ?>
  <?php if($screen_settings->banks_safes == "1"): ?>
  <li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='hard-drive'></i><span class="menu-title text-truncate">الخزن و رأس المال</span></a>
  <ul class="menu-content">

    <li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='circle' style="width: 18;height: 18;"></i><span class="menu-title text-truncate">الخزن</span></a>
      <ul class="menu-content">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('قائمة خزائن الشركة')): ?>
        <li class=" nav-item <?php echo e(Request::is('*/safes/index') ? 'active' : ''); ?> <?php echo e(Request::is('*/safes/edit/*') ? 'active' : ''); ?><?php echo e(Request::is('*/opreations/safe/*') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.safes.index')); ?>"><i  data-feather='eye' style="width: 15;height: 15;"></i><span class="menu-title text-truncate">عرض الخزن</span></a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('اضافة خزينة جديد')): ?>
        <li class=" nav-item <?php echo e(Request::is('*/safes/create') ? 'active' : ''); ?> "><a class="d-flex align-items-center" href="<?php echo e(route('client.safes.create')); ?>"><i data-feather='plus' style="width: 15;height: 15;"></i><span class="menu-title text-truncate" >إضافة</span></a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='circle' style="width: 18;height: 18;"></i><span class="menu-title text-truncate">رأس المال</span></a>
      <ul class="menu-content">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('مبالغ راس المال المضافة')): ?>
        <li class=" nav-item <?php echo e(Request::is('*/capitals/index') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.capitals.index')); ?>"><i  data-feather='eye' style="width: 15;height: 15;"></i><span class="menu-title text-truncate">عرض </span></a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('اضافة مبلغ راس مال')): ?>
        <li class=" nav-item <?php echo e(Request::is('*/capitals/create*') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.capitals.create')); ?>"><i data-feather='plus' style="width: 15;height: 15;"></i><span class="menu-title text-truncate" >إضافة</span></a>
        </li>
        <?php endif; ?>
      </ul>
    </li>


  </ul>
</li>

<li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='server'></i><span class="menu-title text-truncate">البنوك</span></a>
  <ul class="menu-content">
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('قائمة البنوك الحاليين')): ?>
    <li class=" nav-item <?php echo e(Request::is('*/banks/index') ? 'active' : ''); ?> <?php echo e(Request::is('*/banks/edit/*') ? 'active' : ''); ?><?php echo e(Request::is('*/opreations/bank/*') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.banks.index')); ?>"><i  data-feather='eye' style="width: 15;height: 15;"></i><span class="menu-title text-truncate">عرض البنوك</span></a>
    </li>
    <?php endif; ?>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('اضافة بنك جديد')): ?>
    <li class=" nav-item <?php echo e(Request::is('*/banks/create') ? 'active' : ''); ?> "><a class="d-flex align-items-center" href="<?php echo e(route('client.banks.create')); ?>"><i data-feather='plus' style="width: 15;height: 15;"></i><span class="menu-title text-truncate" >إضافة</span></a>
    </li>
    <?php endif; ?>
  </ul>
</li>

    <?php endif; ?>
    <?php endif; ?>


        <?php if(empty($package) || $package->products == "1"): ?>
          <?php if($screen_settings->products == "1"): ?>

          <li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='box'></i><span class="menu-title text-truncate">المنتجات</span></a>
            <ul class="menu-content">
              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('قائمة المنتجات المتوفرة')): ?>
              <li class=" nav-item <?php echo e(Request::is('*/products/index','*/products/services','*/products/limited-stock','*/products/out-stock','*/products/edit/*') ? 'active' : ''); ?>   "><a class="d-flex align-items-center" href="<?php echo e(route('client.products.index')); ?>"><i  data-feather='eye' style="width: 15;height: 15;"></i><span class="menu-title text-truncate">عرض المنتجات</span></a>
              </li>
              <?php endif; ?>
              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('اضافة منتج جديد')): ?>
              <li class=" nav-item <?php echo e(Request::is('*/products/create') ? 'active' : ''); ?> "><a class="d-flex align-items-center" href="<?php echo e(route('client.products.create')); ?>"><i data-feather='plus' style="width: 15;height: 15;"></i><span class="menu-title text-truncate" >إضافة</span></a>
              </li>
              <?php endif; ?>
              <li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='database' style="width: 18;height: 18;"></i><span class="menu-title text-truncate">الفئات</span></a>
                <ul class="menu-content">
                  <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('قائمة فئات الشركة')): ?>
                  <li class=" nav-item <?php echo e(Request::is('*/categories/index') ? 'active' : ''); ?> <?php echo e(Request::is('*/categories/edit/*') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.categories.index')); ?>"><i  data-feather='eye' style="width: 15;height: 15;"></i><span class="menu-title text-truncate">عرض الفئات</span></a>
                  </li>
                  <?php endif; ?>
                  <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('اضافة فئة جديد')): ?>
                  <li class=" nav-item <?php echo e(Request::is('*/categories/create') ? 'active' : ''); ?> "><a class="d-flex align-items-center" href="<?php echo e(route('client.categories.create')); ?>"><i data-feather='plus' style="width: 15;height: 15;"></i><span class="menu-title text-truncate" >إضافة</span></a>
                  </li>
                  <?php endif; ?>
                </ul>
              </li>

              <li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='flag' style="width: 18;height: 18;"></i><span class="menu-title text-truncate">الوحدات</span></a>
                <ul class="menu-content">
                  <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('قائمة فئات الشركة')): ?>
                  <li class=" nav-item <?php echo e(Request::is('*/units/index') ? 'active' : ''); ?> <?php echo e(Request::is('*/units/edit/*') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.units.index')); ?>"><i  data-feather='eye' style="width: 15;height: 15;"></i><span class="menu-title text-truncate">عرض الفئات</span></a>
                  </li>
                  <?php endif; ?>
                  <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('اضافة فئة جديد')): ?>
                  <li class=" nav-item <?php echo e(Request::is('*/units/create') ? 'active' : ''); ?> "><a class="d-flex align-items-center" href="<?php echo e(route('client.units.create')); ?>"><i data-feather='plus' style="width: 15;height: 15;"></i><span class="menu-title text-truncate" >إضافة</span></a>
                  </li>
                  <?php endif; ?>
                </ul>
              </li>

            </ul>
          </li>

          <li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='git-branch'></i><span class="menu-title text-truncate">  الفروع و المخازن</span></a>
            <ul class="menu-content">
              <li class="nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='shopping-bag' style="width: 18;height: 18;"></i><span class="menu-title text-truncate">المخازن</span></a>
                <ul class="menu-content">
                 <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('قائمة مخازن الشركة')): ?>
                  <li class=" nav-item <?php echo e(Request::is('*/stores/index') ? 'active' : ''); ?> <?php echo e(Request::is('*/stores/edit/*') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.stores.index')); ?>"><i  data-feather='eye' style="width: 15;height: 15;"></i><span class="menu-title text-truncate" data-i18n="eye">عرض المخازن</span></a>
                  </li>
                  <?php endif; ?>
                  <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('اضافة مخزن جديد')): ?>
                  <li class=" nav-item <?php echo e(Request::is('*/stores/create') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.stores.create')); ?>"><i data-feather='plus' style="width: 15;height: 15;"></i><span class="menu-title text-truncate" data-i18n="plus">إضافة</span></a>
                  </li>
                  <?php endif; ?>
                  <li class=" nav-item <?php echo e(Request::is('*/stores/inventory') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.inventory.get')); ?>"><i data-feather='command' style="width: 15;height: 15;"></i><span class="menu-title text-truncate" data-i18n="command">جرد المخازن</span></a>
                  </li>
                </ul>
              </li>
              

              

              <li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='briefcase' style="width: 18;height: 18;"></i><span class="menu-title text-truncate">الفروع</span></a>
                <ul class="menu-content">
                  <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('قائمة فروع الشركة')): ?>
                  <li class=" nav-item <?php echo e(Request::is('*/branches/index') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.branches.index')); ?>"><i  data-feather='eye' style="width: 15;height: 15;"></i><span class="menu-title text-truncate">عرض الفروع</span></a>
                  </li>
                  <?php endif; ?>
                  <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('اضافة فرع جديد')): ?>
                  <li class=" nav-item <?php echo e(Request::is('*/branches/create') ? 'active' : ''); ?> "><a class="d-flex align-items-center" href="<?php echo e(route('client.branches.create')); ?>"><i data-feather='plus' style="width: 15;height: 15;"></i><span class="menu-title text-truncate" >إضافة</span></a>
                  </li>
                  <?php endif; ?>
                </ul>
              </li>

              

            </ul>
          </li>
          
         <?php endif; ?>
        <?php endif; ?>
          
     <?php if(empty($package) ||  $package->accounting == "1"): ?>
     <?php if($screen_settings->accounting == "1"): ?>
     <li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='credit-card'></i><span class="menu-title text-truncate">المحاسبة</span></a>
       <ul class="menu-content">

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('دفتر اليومية')): ?>
        <li class=" nav-item <?php echo e(Request::is('*/accounting/journal') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.journal.get')); ?>"><i  data-feather='book-open' style="width: 18;height: 18;"></i><span class="menu-title text-truncate">دفتر اليومية</span></a>
        </li>
        <?php endif; ?>
       </ul>
     <?php endif; ?>
     <?php endif; ?> 

     <?php if(empty($package) ||  $package->marketing == "1"): ?>
     <?php if($screen_settings->marketing == "1"): ?>
     <li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='hash'></i><span class="menu-title text-truncate">التسويق</span></a>
       <ul class="menu-content">

       </ul>
     </li>

    <?php endif; ?>
    <?php endif; ?> 

    <?php if(empty($package) ||  $package->reports == "1"): ?>
    <?php if($screen_settings->reports == "1"): ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('تقارير عامة')): ?>
              <li class="nav-item <?php echo e(Request::is('*/report*','*/summary/*') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.reports')); ?>"><i data-feather="trello"></i><span class="menu-title text-truncate" >التقارير</span></a></li>

        <?php endif; ?>
    <?php endif; ?>
<?php endif; ?>


<?php if(empty($package) ||  $package->settings == "1"): ?>
<?php if($screen_settings->settings == "1"): ?>
<li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='user-check'></i><span class="menu-title text-truncate">الموظفين</span></a>
  <ul class="menu-content">
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('عرض قائمة الموظفين')): ?>
    <li class="nav-item <?php echo e(Request::is('*/employees/index','*/employees/edit/*','*/employees/*/cash') ? 'active' : ''); ?> "><a class="d-flex align-items-center" href="<?php echo e(route('client.employees.index')); ?>"><i data-feather="eye" style="width: 18;height: 18;"></i><span class="menu-title text-truncate" >قائمة الموظفين</span></a></li>
    <?php endif; ?>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('إضافة موظف')): ?>
    <li class="nav-item <?php echo e(Request::is('*/employees/create') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.employees.create')); ?>"><i data-feather="plus" style="width: 18;height: 18;"></i><span class="menu-title text-truncate" >اضافة موظف</span></a></li>
    <?php endif; ?>
  </ul>
<?php endif; ?>
<?php endif; ?> 

<?php if(empty($package) ||  $package->settings == "1"): ?>
<?php if($screen_settings->settings == "1"): ?>
<li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='settings'></i><span class="menu-title text-truncate">الإعدادات</span></a>
  <ul class="menu-content">

    <li class=" nav-item has-sub"><a class="d-flex align-items-center" href="#"><i data-feather='circle' style="width: 18;height: 18;"></i><span class="menu-title text-truncate">المستخدمين</span></a>
      <ul class="menu-content">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('عرض قائمة المستخدمين')): ?>
        <li class=" nav-item  <?php echo e(Request::is('*/users/index','*/users/edit/*') ? 'active' : ''); ?>"><a class="d-flex align-items-center" href="<?php echo e(route('client.users.index')); ?>"><i  data-feather='eye' style="width: 15;height: 15;"></i><span class="menu-title text-truncate">عرض المستخدمين</span></a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('إضافة مستخدم')): ?>
        <li class=" nav-item <?php echo e(Request::is('*/users/create') ? 'active' : ''); ?> "><a class="d-flex align-items-center" href="<?php echo e(route('client.users.create')); ?>"><i data-feather='plus' style="width: 15;height: 15;"></i><span class="menu-title text-truncate" >إضافة</span></a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('صلاحيات المستخدمين')): ?>
    <li class=" nav-item <?php echo e(Request::is('*/roles/index') ? 'active' : ''); ?> "><a class="d-flex align-items-center" href="<?php echo e(route('client.roles.index')); ?>"><i data-feather='shield' style="width: 18;height: 18;"></i><span class="menu-title text-truncate" >الصلاحيات</span></a>
    </li>
    <?php endif; ?>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('الاعدادات العامة للنظام')): ?>
    <li class=" nav-item <?php echo e(Request::is('*/settings/*') ? 'active' : ''); ?> "><a class="d-flex align-items-center" href="<?php echo e(route('client.basic.settings.edit')); ?>"><i data-feather='settings' style="width: 18;height: 18;"></i><span class="menu-title text-truncate" >إعدادات النظام</span></a>
    </li>
    <?php endif; ?>

  </ul>
<?php endif; ?>
<?php endif; ?> 

<li class=" nav-item "><a class="d-flex align-items-center" href="<?php echo e(route('client.home')); ?>"><i data-feather='help-circle' style="width: 18;height: 18;"></i><span class="menu-title text-truncate" >المساعدة و الدعم</span></a>
</li>

    </ul>
      </div>
    </div>
    <!-- END: Main Menu-->

    <!-- BEGIN: Content-->
    <?php echo $__env->yieldContent('content'); ?>
    <!-- END: Content-->


    <!-- BEGIN: Customizer-->
    
    <!-- End: Customizer-->

    <!-- Buynow Button-->
    

    </div>
    <div class="sidenav-overlay"></div>
    <div class="drag-target"></div>

    <!-- BEGIN: Footer-->
    <footer class="footer footer-static footer-light">
      <p class="clearfix mb-0"><span class="float-md-start d-block d-md-inline-block mt-25"><span class="d-none d-sm-inline-block">جميع حقوق الطبع والنشر محفوظة  &copy; </span> <?php echo e(env('APP_NAME')); ?> <?php echo e(date('Y')); ?></span><span class="float-md-end d-none d-md-block">كل<i data-feather="heart"></i> من فريق المطورين</span></p>
    </footer>
    <button class="btn btn-primary btn-icon scroll-top" type="button"><i data-feather="arrow-up"></i></button>
    <!-- END: Footer-->

    <script src="<?php echo e(asset('app-assets/js/jquery.min.js')); ?>"></script>

    <!-- BEGIN: Vendor JS-->
    <script src="<?php echo e(asset('app-assets/js/vendors.min.js')); ?>"></script>
    <!-- BEGIN Vendor JS-->

    <!-- BEGIN: Page Vendor JS-->
    
    <script src="<?php echo e(asset('app-assets/js/toastr.min.js')); ?>"></script>
    <!-- END: Page Vendor JS-->

    <!-- BEGIN: Theme JS-->
    <script src="<?php echo e(asset('app-assets/js/app-menu.min.js')); ?>"></script>
    <script src="<?php echo e(asset('app-assets/js/app.min.js')); ?>"></script>
    <script src="<?php echo e(asset('app-assets/js/customizer.min.js')); ?>"></script>
    <script src="<?php echo e(asset('app-assets/js/jquery.validate.min.js')); ?>"></script>


    <!-- END: Theme JS-->
    <?php echo $__env->yieldContent('script'); ?>  
    <!-- BEGIN: Page JS-->
    <!-- END: Page JS-->

    <script>
      $(window).on('load',  function(){
        if (feather) {
          feather.replace({ width: 14, height: 14 });
        }
      })
    </script>
    
  </body>
  <!-- END: Body-->
</html>
<?php /**PATH /home/barasys/public_html/resources/views/client/layouts/app.blade.php ENDPATH**/ ?>