<?php $__env->startSection('content'); ?>
<?php
use App\Models\PackPrem;
?>
<style>
   .Form-2{
     display: inherit;
    border: 1px solid black;
    border-radius: 27px;
    padding: 20px;
    margin:10px;
   }
   .form-groupp {
         display: inherit;
    border: 1px solid black;
    border-radius: 27px;
    padding: 20px;
    margin:10px;
   }
</style>
  <title><?php echo e(trans('admin.Modules_Settings')); ?></title>
  <link rel="stylesheet" media="screen, print" href="css/formplugins/summernote/summernote.css">
     <main id="js-page-content" role="main" class="page-content">
                    <ol class="breadcrumb page-breadcrumb">
                        <li class="breadcrumb-item"><a href="javascript:void(0);"><?php echo e(trans('admin.Settings')); ?></a></li>

                        <li class="breadcrumb-item active"> <?php echo e(trans('admin.Modules_Settings')); ?>   </li>
                        <li class="position-absolute pos-top pos-right d-none d-sm-block"><span
                                class="js-get-date"></span></li>
                    </ol>

                    <!-- data entry -->
                    <div class="row">
                        <div class="col-lg-12">
                            <div id="panel-2" class="panel">
                                <div class="panel-hdr">

                                </div>
                                <div class="panel-container show">
                                  <span id="ex"> <?php echo $__env->make('admin.layouts.messages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?></span>
                                    <div class="panel-content">
                                        <ul class="nav nav-tabs" role="tablist">
                                            <li class="nav-item">
                                                <a class="nav-link active" data-toggle="tab" href="#tab_borders_icons-1" role="tab">  1   </a>
                                            </li>
                                               <li class="nav-item">
                              <a class="nav-link" data-toggle="tab" href="#tab_borders_icons-2" role="tab"> 2   </a>
                                            </li>


                                                    <li class="nav-item">
                              <a class="nav-link" data-toggle="tab" href="#tab_borders_icons-3" role="tab"> <?php echo e(trans('admin.Reports')); ?>   </a>
                                            </li>


                                                                  <li class="nav-item">
                              <a class="nav-link" data-toggle="tab" href="#tab_borders_icons-4" role="tab"> <?php echo e(trans('admin.AddPackage')); ?>   </a>
                                            </li>

                                            <li class="nav-item">
                              <a class="nav-link" data-toggle="tab" href="#tab_borders_icons-5" role="tab"> <?php echo e(trans('admin.Packages')); ?>   </a>
                                            </li>


                                                                <li class="nav-item">
                              <a class="nav-link" data-toggle="tab" href="#tab_borders_icons-6" role="tab"> Intro & Privacy   </a>
                                            </li>

                                             <li class="nav-item">
                              <a class="nav-link" data-toggle="tab" href="#tab_borders_icons-7" role="tab">  <?php echo e(trans('admin.Education')); ?>  </a>
                                            </li>

                                        </ul>
                                        <div class="tab-content border border-top-0 p-3">

                             <div class="tab-pane fade show active" id="tab_borders_icons-1" role="tabpanel">
                           <?php if(!empty($Modules)): ?>
               <form action="<?php echo e(url('AddDefaultModules')); ?>" method="post"  class="form-row">
                                  <?php echo csrf_field(); ?>

                    <?php echo view('honeypot::honeypotFormFields'); ?>
                                                    <div class="col-md-12">
                                                        <div class="data-def">
                                                          <div class="form-row">

                                        <div class="form-groupp col-lg-3" style="display: none">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Capital')); ?></label>
         <input type="hidden" name="Capital" value="0" class="form-control">
                                        </div>

                                   <div class="form-groupp col-lg-3">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Accounts')); ?></label>
         <input type="checkbox" name="Accounts" value="1" class="form-control" <?php if($Modules->Accounts == 1): ?> checked <?php endif; ?>>
                                        </div>
                                                                                     <div class="form-groupp col-lg-3">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Stores')); ?></label>
         <input type="checkbox" name="Stores" value="1" class="form-control" <?php if($Modules->Stores == 1): ?> checked <?php endif; ?>>
                                        </div>
                               <div class="form-groupp col-lg-3">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.CRM')); ?></label>
         <input type="checkbox" name="CRM" value="1" class="form-control" <?php if($Modules->CRM == 1): ?> checked <?php endif; ?>>
                                        </div>
                                   <div class="form-groupp col-lg-3">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.HR')); ?></label>
         <input type="checkbox" name="HR" value="1" class="form-control" <?php if($Modules->HR == 1): ?> checked <?php endif; ?>>
                                        </div>
                               <div class="form-groupp col-lg-3">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Manufacturing')); ?></label>
         <input type="checkbox" name="Manufacturing" value="1" class="form-control" <?php if($Modules->Manufacturing == 1): ?> checked <?php endif; ?>>
                                        </div>
                               <div class="form-groupp col-lg-3" style="display: none">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Maintenance')); ?></label>
         <input type="checkbox" name="Maintenance" value="1" class="form-control" <?php if($Modules->Maintenance == 1): ?> checked <?php endif; ?>>
                                        </div>

                               <div class="form-groupp col-lg-3">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Secretariat')); ?></label>
         <input type="checkbox" name="Secretariat" value="1" class="form-control" <?php if($Modules->Secretariat == 1): ?> checked <?php endif; ?>>
                                        </div>

                           <div class="form-groupp col-lg-3" style="display: none">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Petrol')); ?></label>
         <input type="checkbox" name="Petrol" value="1" class="form-control" <?php if($Modules->Petrol == 1): ?> checked <?php endif; ?>>
                                        </div>

                               <div class="form-groupp col-lg-3" >
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.ECommerce')); ?></label>
         <input type="checkbox" name="ECommerce" value="1" class="form-control" <?php if($Modules->ECommerce == 1): ?> checked <?php endif; ?>>
                                        </div>

                                                                           <div class="form-groupp col-lg-3" style="display: none">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Shipping')); ?></label>
         <input type="checkbox" name="Shipping" value="1" class="form-control" <?php if($Modules->Shipping == 1): ?> checked <?php endif; ?>>
                                        </div>

                                                                                                               <div class="form-groupp col-lg-3">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Bill_Electronic')); ?></label>
         <input type="checkbox" name="Bill_Electronic" value="1" class="form-control" <?php if($Modules->Bill_Electronic == 1): ?> checked <?php endif; ?>>
                                        </div>


                                                                                                               <div class="form-groupp col-lg-3" style="display: none">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Hotels')); ?></label>
         <input type="checkbox" name="Hotels" value="1" class="form-control" <?php if($Modules->Hotels == 1): ?> checked <?php endif; ?>>
                                        </div>



                                        <div class="form-groupp col-lg-3">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Resturant')); ?></label>
         <input type="checkbox" name="Resturant" value="1" class="form-control" <?php if($Modules->Resturant == 1): ?> checked <?php endif; ?>>
                                        </div>
                                                                     <div class="form-groupp col-lg-3" style="display: none">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Traning_Center')); ?></label>
         <input type="checkbox" name="Traning_Center" value="1" class="form-control" <?php if($Modules->Traning_Center == 1): ?> checked <?php endif; ?>>
                                        </div>
                                                                       <div class="form-groupp col-lg-3" style="display: none">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Translate')); ?></label>
         <input type="checkbox" name="Translate" value="1" class="form-control" <?php if($Modules->Translate == 1): ?> checked <?php endif; ?>>
                                        </div>





                                                            </div>
                                                                 <div class="form-row" style="margin-top:30px;">
                                <button type="submit" class="btn btn-primary " ><?php echo e(trans('admin.Save')); ?></button>
                                                    </div>
                                                        </div>
                                                    </div>

                                 </form>

                                <?php else: ?>
         <div  class="form-row">
           <div class="col-md-12">
              <div class="data-def">
          <div class="form-row">
               <div class="form-group col-md-12">
              <a class="btn btn-primary" href="<?php echo e(url('AddDefaultModulesFirst')); ?>">
                    <?php echo e(trans('admin.AddNew')); ?>

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

                                    <?php endif; ?>

                                            </div>
                            <div class="tab-pane fade" id="tab_borders_icons-2" role="tabpanel">
                           <?php if(!empty($ModulesNum)): ?>
               <form action="<?php echo e(url('AddDefaultModulesNum')); ?>" method="post"  class="form-row">
                                  <?php echo csrf_field(); ?>

                    <?php echo view('honeypot::honeypotFormFields'); ?>
                                                    <div class="col-md-12">
                                                        <div class="data-def">
                                                              <div class="form-row">

                                                    <div class="col-md-6">
                                                        <label><?php echo e(trans('admin.Branches')); ?></label>
          <select class="select2 form-control" name="Branch_Select" required id="BS" onchange="BranchHH()">
                                                            <option value=""><?php echo e(trans('admin.Branches')); ?></option>
        <option value="0" <?php if($ModulesNum->Branch_Select == 0): ?> selected <?php endif; ?> ><?php echo e(trans('admin.infinite')); ?></option>
        <option value="1" <?php if($ModulesNum->Branch_Select == 1): ?> selected <?php endif; ?>><?php echo e(trans('admin.Limit_Num')); ?></option>
                                                        </select>
                                                                  </div>
                                                    <div class="col-md-6" id="BN" style="display: none">
                                                        <label><?php echo e(trans('admin.Branches_Num')); ?></label>
          <input type="number" class="form-control" name="Branch_Num" value="<?php echo e($ModulesNum->Branch_Num); ?>">
                                                                  </div>
                                                               <div class="col-md-6">
                                                        <label><?php echo e(trans('admin.Stores')); ?></label>
          <select class="select2 form-control" name="Store_Select" required id="SS" onchange="StoreSSSS()">
                                                            <option value=""><?php echo e(trans('admin.Stores')); ?></option>
     <option value="0" <?php if($ModulesNum->Store_Select == 0): ?> selected <?php endif; ?> ><?php echo e(trans('admin.infinite')); ?></option>
        <option value="1" <?php if($ModulesNum->Store_Select == 1): ?> selected <?php endif; ?>><?php echo e(trans('admin.Limit_Num')); ?></option>
                                                        </select>
                                                                  </div>
                                                    <div class="col-md-6" id="SN" style="display: none">
                                                        <label><?php echo e(trans('admin.Stores_Num')); ?></label>
                      <input type="number" class="form-control" name="Store_Num" value="<?php echo e($ModulesNum->Store_Num); ?>">
                                                                  </div>
                                                                              <div class="col-md-6">
                                                        <label><?php echo e(trans('admin.Users')); ?></label>
          <select class="select2 form-control" name="Users_Select" required id="US" onchange="UsersSS()">
                                                            <option value=""><?php echo e(trans('admin.Users')); ?></option>
             <option value="0" <?php if($ModulesNum->Users_Select == 0): ?> selected <?php endif; ?> ><?php echo e(trans('admin.infinite')); ?></option>
        <option value="1" <?php if($ModulesNum->Users_Select == 1): ?> selected <?php endif; ?>><?php echo e(trans('admin.Limit_Num')); ?></option>
                                                        </select>
                                                                  </div>
                                                    <div class="col-md-6" id="UN" style="display: none">
                                                        <label><?php echo e(trans('admin.Users_Num')); ?></label>
                                                    <input type="number" class="form-control" name="Users_Num" value="<?php echo e($ModulesNum->Users_Num); ?>">
                                                                  </div>

                                                                  <div class="col-md-6">
                                                        <label><?php echo e(trans('admin.System')); ?></label>
          <select class="select2 form-control" name="System" required id="System" onchange="Systems()">
                                                            <option value=""><?php echo e(trans('admin.System')); ?></option>
             <option value="0" <?php if($ModulesNum->System == 0): ?> selected <?php endif; ?> ><?php echo e(trans('admin.infinite')); ?></option>
        <option value="1" <?php if($ModulesNum->System == 1): ?> selected <?php endif; ?>><?php echo e(trans('admin.Expire_Date')); ?></option>
                                                        </select>
                                                                  </div>
                                     <div class="form-group col-lg-6" id="EXD" style="display: none">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Expire_Date')); ?></label>
         <input type="date" name="Expire_Date" value="<?php echo e($ModulesNum->Expire_Date); ?>" class="form-control" >
                                        </div>

                                                                                  <div class="col-md-6" id="TYPE" style="display: none">
                                                        <label><?php echo e(trans('admin.Type')); ?></label>
          <select class="select2 form-control" name="Type" >
                                                            <option value=""><?php echo e(trans('admin.Type')); ?></option>
             <option value="M" <?php if($ModulesNum->Type == 'M'): ?> selected <?php endif; ?> ><?php echo e(trans('admin.Monthly')); ?></option>
        <option value="3M" <?php if($ModulesNum->Type == '3M'): ?> selected <?php endif; ?>><?php echo e(trans('admin.3M')); ?></option>
        <option value="6M" <?php if($ModulesNum->Type == '6M'): ?> selected <?php endif; ?>><?php echo e(trans('admin.6M')); ?></option>
        <option value="Y" <?php if($ModulesNum->Type == 'Y'): ?> selected <?php endif; ?>><?php echo e(trans('admin.Yearly')); ?></option>

                                                        </select>
                                                                  </div>

                                                          <div class="form-group col-lg-6" id="PRI" style="display: none">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Price')); ?></label>
         <input type="number" step="any" name="Price" value="<?php echo e($ModulesNum->Price); ?>" class="form-control" >
                                        </div>




                                                            </div>
                                                            <div class="form-row" style="margin-top:30px;">
                                <button type="submit" class="btn btn-primary"><?php echo e(trans('admin.Save')); ?></button>
                                                    </div>
                                                        </div>
                                                    </div>

                                 </form>


                                <?php else: ?>
         <div  class="form-row">
           <div class="col-md-12">
              <div class="data-def">
          <div class="form-row">
               <div class="form-group col-md-12">
              <a class="btn btn-primary" href="<?php echo e(url('AddDefaultModulesNumFirst')); ?>">
                    <?php echo e(trans('admin.AddNew')); ?>

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

                                    <?php endif; ?>

                                            </div>



                          <div class="tab-pane fade" id="tab_borders_icons-3" role="tabpanel">
                        <?php if(!empty($ReportsSettings)): ?>
               <form action="<?php echo e(url('AddDefaultReportSettings')); ?>" method="post"  class="form-row">
                                  <?php echo csrf_field(); ?>

                                    <?php echo view('honeypot::honeypotFormFields'); ?>
                                                    <div class="col-md-12">
                                                        <div class="data-def">
                                                              <div class="form-row ">

                                            <div class="col-md-2 Form-2" style="display: inherit;">

                                <strong style="font-size: large; maegin-bottom:10px;"> <?php echo e(trans('admin.Product_Info')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="Product_Info" value="1" <?php if($ReportsSettings->Product_Info == 1): ?> checked <?php endif; ?>>

                                               </div>
                                                  <div class="col-md-2 Form-2" style="display: inherit;">

                                 <strong style="font-size: large;"> <?php echo e(trans('admin.Product_Order_Limit')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="Product_Order_Limit" value="1" <?php if($ReportsSettings->Product_Order_Limit == 1): ?> checked <?php endif; ?>>

                                             </div>
                                              <div class="col-md-2 Form-2" style="display: inherit;">

                                     <strong style="font-size: large;"> <?php echo e(trans('admin.ReportStartPeriodProducts')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="ReportStartPeriodProducts" value="1" <?php if($ReportsSettings->ReportStartPeriodProducts == 1): ?> checked <?php endif; ?>>
                                                  </div>
                                                    <div class="col-md-2 Form-2" style="display: inherit;">

                                                <strong style="font-size: large;"> <?php echo e(trans('admin.SettlementsReports')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="SettlementsReports" value="1" <?php if($ReportsSettings->SettlementsReports == 1): ?> checked <?php endif; ?>>
                                                 </div>
                                                    <div class="col-md-2 Form-2" style="display: inherit;">

                                              <strong style="font-size: large;"> <?php echo e(trans('admin.StoresCost')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="StoresCost" value="1" <?php if($ReportsSettings->StoresCost == 1): ?> checked <?php endif; ?>>
                                           </div>
                                              <div class="col-md-2 Form-2" style="display: inherit;">

                                 <strong style="font-size: large;"> <?php echo e(trans('admin.StoresInventory')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="StoresInventory" value="1" <?php if($ReportsSettings->StoresInventory == 1): ?> checked <?php endif; ?>>
                                                </div>
                                                <div class="col-md-2 Form-2" style="display: inherit;">

                                     <strong style="font-size: large;"> <?php echo e(trans('admin.Collection_Delegates')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="Collection_Delegates" value="1" <?php if($ReportsSettings->Collection_Delegates == 1): ?> checked <?php endif; ?>>
                                          </div>
                                              <div class="col-md-2 Form-2" style="display: inherit;">

                                                <strong style="font-size: large;"> <?php echo e(trans('admin.Sales_Delegates')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="Sales_Delegates" value="1" <?php if($ReportsSettings->Sales_Delegates == 1): ?> checked <?php endif; ?>>
                                                </div>
                                                  <div class="col-md-2 Form-2" style="display: inherit;">

                                          <strong style="font-size: large;"> <?php echo e(trans('admin.StagnantItems')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="StagnantItems" value="1" <?php if($ReportsSettings->StagnantItems == 1): ?> checked <?php endif; ?>>
                                               </div>
                                               <div class="col-md-2 Form-2" style="display: inherit;">

                                 <strong style="font-size: large;"> <?php echo e(trans('admin.ItemsMoves')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="ItemsMoves" value="1" <?php if($ReportsSettings->ItemsMoves == 1): ?> checked <?php endif; ?>>
                                           </div>
                                                    <div class="col-md-2 Form-2" style="display: inherit;">

                                     <strong style="font-size: large;"> <?php echo e(trans('admin.StoresBalancesTwo')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="StoresBalancesTwo" value="1" <?php if($ReportsSettings->StoresBalancesTwo == 1): ?> checked <?php endif; ?>>
                                                </div>
                                                     <div class="col-md-2 Form-2" style="display: inherit;">

                                                <strong style="font-size: large;"> <?php echo e(trans('admin.NetPurchases')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="NetPurchases" value="1" <?php if($ReportsSettings->NetPurchases == 1): ?> checked <?php endif; ?>>
                                                </div>
                                                    <div class="col-md-2 Form-2" style="display: inherit;">

                                              <strong style="font-size: large;"> <?php echo e(trans('admin.NetSales')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="NetSales" value="1" <?php if($ReportsSettings->NetSales == 1): ?> checked <?php endif; ?>>
                                                   </div>
                                                      <div class="col-md-2 Form-2" style="display: inherit;">

                                 <strong style="font-size: large;"> <?php echo e(trans('admin.ClientSales')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="ClientSales" value="1" <?php if($ReportsSettings->ClientSales == 1): ?> checked <?php endif; ?>>
                                                 </div>
                                                   <div class="col-md-2 Form-2" style="display: inherit;">

                                     <strong style="font-size: large;"> <?php echo e(trans('admin.ExecutorSales')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="ExecutorSales" value="1" <?php if($ReportsSettings->ExecutorSales == 1): ?> checked <?php endif; ?>>
                                             </div>
                                                 <div class="col-md-2 Form-2" style="display: inherit;">

                                                <strong style="font-size: large;"> <?php echo e(trans('admin.InstallmentReport')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="InstallmentReport" value="1" <?php if($ReportsSettings->InstallmentReport == 1): ?> checked <?php endif; ?>>
                                          </div>
                                               <div class="col-md-2 Form-2" style="display: inherit;">

                                          <strong style="font-size: large;"> <?php echo e(trans('admin.ExpiredProucts')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="ExpiredProucts" value="1" <?php if($ReportsSettings->ExpiredProucts == 1): ?> checked <?php endif; ?>>
                                                   </div>
                                                    <div class="col-md-2 Form-2" style="display: inherit;">

                                           <strong style="font-size: large;"> <?php echo e(trans('admin.StoresSalesDetails')); ?></strong>
                                <input type="checkbox" class="form-control m-2" name="StoresSalesDetails" value="1" <?php if($ReportsSettings->StoresSalesDetails == 1): ?> checked <?php endif; ?>>


                                               </div>

                                                                       <div class="col-md-2  Form-2" style="display: inherit; ">

                                <strong style="font-size: large;"> <?php echo e(trans('admin.TotalNetPurchases')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="TotalNetPurchases" value="1" <?php if($ReportsSettings->TotalNetPurchases == 1): ?> checked <?php endif; ?>>
                                               </div>
                                               <div class="col-md-2 Form-2" style="display: inherit;">

                                 <strong style="font-size: large;"> <?php echo e(trans('admin.TotalNetSales')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="TotalNetSales" value="1" <?php if($ReportsSettings->TotalNetSales == 1): ?> checked <?php endif; ?>>
                                       </div>
                                            <div class="col-md-2 Form-2" style="display: inherit;">

                                     <strong style="font-size: large;"> <?php echo e(trans('admin.Profits')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="Profits" value="1" <?php if($ReportsSettings->Profits == 1): ?> checked <?php endif; ?>>
                                           </div>
                                                <div class="col-md-2  Form-2" style="display: inherit;">

                                                <strong style="font-size: large;"> <?php echo e(trans('admin.Shifts')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="Shifts" value="1" <?php if($ReportsSettings->Shifts == 1): ?> checked <?php endif; ?>>
                                          </div>
                                          <div class="col-md-2  Form-2" style="display: inherit;">

                                              <strong style="font-size: large;"> <?php echo e(trans('admin.Shifts_Details')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="Shifts_Details" value="1" <?php if($ReportsSettings->Shifts_Details == 1): ?> checked <?php endif; ?>>
                                               </div>
                                                    <div class="col-md-2  Form-2" style="display: inherit;">

                                 <strong style="font-size: large;"> <?php echo e(trans('admin.DailyClosing')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="DailyClosing" value="1" <?php if($ReportsSettings->DailyClosing == 1): ?> checked <?php endif; ?>>
                                              </div>
                                              <div class="col-md-2 Form-2" style="display: inherit;">


                                     <strong style="font-size: large;"> <?php echo e(trans('admin.Products')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="Products" value="1" <?php if($ReportsSettings->Products == 1): ?> checked <?php endif; ?>>
                                   </div>
                                <div class="col-md-2 Form-2" style="display: inherit;">

                                                <strong style="font-size: large;"> <?php echo e(trans('admin.DailyShifts')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="DailyShifts" value="1" <?php if($ReportsSettings->DailyShifts == 1): ?> checked <?php endif; ?>>
                                                </div>
                                                    <div class="col-md-2 Form-2" style="display: inherit;">

                                          <strong style="font-size: large;"> <?php echo e(trans('admin.ExpensesReport')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="ExpensesReport" value="1" <?php if($ReportsSettings->ExpensesReport == 1): ?> checked <?php endif; ?>>
                                               </div>
                                                     <div class="col-md-2  Form-2" style="display: inherit;">

                                 <strong style="font-size: large;"> <?php echo e(trans('admin.DailyProducts')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="DailyProducts" value="1" <?php if($ReportsSettings->DailyProducts == 1): ?> checked <?php endif; ?>>
                                            </div>
                                                 <div class="col-md-2  Form-2" style="display: inherit;">
                                     <strong style="font-size: large;"> <?php echo e(trans('admin.EmployeeCommissionDiscounts')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="EmployeeCommissionDiscounts" value="1" <?php if($ReportsSettings->EmployeeCommissionDiscounts == 1): ?> checked <?php endif; ?>>
                                                </div>
                                                      <div class="col-md-2  Form-2" style="display: inherit;">

                                                <strong style="font-size: large;"> <?php echo e(trans('admin.VendorPricesReport')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="VendorPricesReport" value="1" <?php if($ReportsSettings->VendorPricesReport == 1): ?> checked <?php endif; ?>>
                                                </div>
                                                 <div class="col-md-2 Form-2" style="display: inherit;">

                                              <strong style="font-size: large;"> <?php echo e(trans('admin.DailyMoves')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="DailyMoves" value="1" <?php if($ReportsSettings->DailyMoves == 1): ?> checked <?php endif; ?>>
                                                  </div>
                                                    <div class="col-md-2 Form-2" style="display: inherit;">

                                 <strong style="font-size: large;"> <?php echo e(trans('admin.GroupsSales')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="GroupsSales" value="1" <?php if($ReportsSettings->GroupsSales == 1): ?> checked <?php endif; ?>>
                                                   </div>
                                                   <div class="col-md-2 Form-2" style="display: inherit;">

                                     <strong style="font-size: large;"> <?php echo e(trans('admin.VendorPurchases')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="VendorPurchases" value="1" <?php if($ReportsSettings->VendorPurchases == 1): ?> checked <?php endif; ?>>
                                                  </div>
                                                    <div class="col-md-2 Form-2" style="display: inherit;">

                                                <strong style="font-size: large;"> <?php echo e(trans('admin.ExceptProfits')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="ExceptProfits" value="1" <?php if($ReportsSettings->ExceptProfits == 1): ?> checked <?php endif; ?>>
                                          </div>
                                            <div class="col-md-2 Form-2" style="display: inherit;">

                                          <strong style="font-size: large;"> <?php echo e(trans('admin.DelegateSalesDetails')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="DelegateSalesDetails" value="1" <?php if($ReportsSettings->DelegateSalesDetails == 1): ?> checked <?php endif; ?>>
                                                   </div>
                                                    <div class="col-md-2 Form-2" style="display: inherit;">

                                           <strong style="font-size: large;"> <?php echo e(trans('admin.CreditStores')); ?></strong>
                                <input type="checkbox" class="form-control m-2" name="CreditStores" value="1" <?php if($ReportsSettings->CreditStores == 1): ?> checked <?php endif; ?>>
                                                                  </div>
                                                        <div class="col-md-2 Form-2" style="display: inherit;">
                                                         <strong style="font-size: large;"> <?php echo e(trans('admin.IncomListReport')); ?></strong>
                                <input type="checkbox" class="form-control m-2" name="IncomListReport" value="1" <?php if($ReportsSettings->IncomListReport == 1): ?> checked <?php endif; ?>>
                                               </div>


                                                                  <div class="col-md-2 Form-2" style="display: inherit;">

                                <strong style="font-size: large;"> <?php echo e(trans('admin.ProductProfits')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="ProductProfits" value="1" <?php if($ReportsSettings->ProductProfits == 1): ?> checked <?php endif; ?>>
                                               </div>
                                                   <div class="col-md-2 Form-2" style="display: inherit;">
                                 <strong style="font-size: large;"> <?php echo e(trans('admin.ExceptProductProfits')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="ExceptProductProfits" value="1" <?php if($ReportsSettings->ExceptProductProfits == 1): ?> checked <?php endif; ?>>
                                      </div>
                                              <div class="col-md-2 Form-2" style="display: inherit;">

                                     <strong style="font-size: large;"> <?php echo e(trans('admin.SalesBills')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="SalesBills" value="1" <?php if($ReportsSettings->SalesBills == 1): ?> checked <?php endif; ?>>
                                            </div>
                                                  <div class="col-md-2 Form-2" style="display: inherit;">
                                                <strong style="font-size: large;"> <?php echo e(trans('admin.PurchasesBills')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="PurchasesBills" value="1" <?php if($ReportsSettings->PurchasesBills == 1): ?> checked <?php endif; ?>>
                                          </div>
                                           <div class="col-md-2 Form-2" style="display: inherit;">

                                              <strong style="font-size: large;"> <?php echo e(trans('admin.StoresMovesReport')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="StoresMovesReport" value="1" <?php if($ReportsSettings->StoresMovesReport == 1): ?> checked <?php endif; ?>>
                                              </div>
                                                 <div class="col-md-2 Form-2" style="display: inherit;">

                                 <strong style="font-size: large;"> <?php echo e(trans('admin.StoresTransferReport')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="StoresTransferReport" value="1" <?php if($ReportsSettings->StoresTransferReport == 1): ?> checked <?php endif; ?>>
                                               </div>
                                                    <div class="col-md-2 Form-2" style="display: inherit;">
                                     <strong style="font-size: large;"> <?php echo e(trans('admin.SafesTransferReport')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="SafesTransferReport" value="1" <?php if($ReportsSettings->SafesTransferReport == 1): ?> checked <?php endif; ?>>
                                         </div>
                                             <div class="col-md-2 Form-2" style="display: inherit;">
                                                <strong style="font-size: large;"> <?php echo e(trans('admin.CompareSalesPrice')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="CompareSalesPrice" value="1" <?php if($ReportsSettings->CompareSalesPrice == 1): ?> checked <?php endif; ?>>
                                                </div>
                                                    <div class="col-md-2 Form-2" style="display: inherit;">
                                          <strong style="font-size: large;"> <?php echo e(trans('admin.ProductMoveDetails')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="ProductMoveDetails" value="1" <?php if($ReportsSettings->ProductMoveDetails == 1): ?> checked <?php endif; ?>>
                                               </div>
                                                    <div class="col-md-2 Form-2" style="display: inherit;">
                                 <strong style="font-size: large;"> <?php echo e(trans('admin.MostSalesProducts')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="MostSalesProducts" value="1" <?php if($ReportsSettings->MostSalesProducts == 1): ?> checked <?php endif; ?>>
                                                   </div>
                                                   <div class="col-md-2 Form-2" style="display: inherit;">
                                     <strong style="font-size: large;"> <?php echo e(trans('admin.ProfitSalesProduct')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="ProfitSalesProduct" value="1" <?php if($ReportsSettings->ProfitSalesProduct == 1): ?> checked <?php endif; ?>>
                                                </div>
                                                    <div class="col-md-2 Form-2" style="display: inherit;">
                                                <strong style="font-size: large;"> <?php echo e(trans('admin.ClientAccountStatement')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="ClientAccountStatement" value="1" <?php if($ReportsSettings->ClientAccountStatement == 1): ?> checked <?php endif; ?>>
                                               </div>
                                                    <div class="col-md-2 Form-2" style="display: inherit;">
                                              <strong style="font-size: large;"> <?php echo e(trans('admin.ClientsStatement')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="ClientsStatement" value="1" <?php if($ReportsSettings->ClientsStatement == 1): ?> checked <?php endif; ?>>
                                                  </div>
                                                     <div class="col-md-2 Form-2" style="display: inherit;">
                                 <strong style="font-size: large;"> <?php echo e(trans('admin.VendorAccountStatement')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="VendorAccountStatement" value="1" <?php if($ReportsSettings->VendorAccountStatement == 1): ?> checked <?php endif; ?>>
                                                    </div>
                                                     <div class="col-md-2 Form-2" style="display: inherit;">

                                     <strong style="font-size: large;"> <?php echo e(trans('admin.VendorsStatement')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="VendorsStatement" value="1" <?php if($ReportsSettings->VendorsStatement == 1): ?> checked <?php endif; ?>>
                                                 </div>
                                                    <div class="col-md-2 Form-2" style="display: inherit;">
                                                <strong style="font-size: large;"> <?php echo e(trans('admin.EmpGoals')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="EmpGoals" value="1" <?php if($ReportsSettings->EmpGoals == 1): ?> checked <?php endif; ?>>
                                          </div>
                                           <div class="col-md-2 Form-2" style="display: inherit;">
                                          <strong style="font-size: large;"> <?php echo e(trans('admin.InventorySerial')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="InventorySerial" value="1" <?php if($ReportsSettings->InventorySerial == 1): ?> checked <?php endif; ?>>
                                                   </div>
                                                   <div class="col-md-2 Form-2" style="display: inherit;">
                                           <strong style="font-size: large;"> <?php echo e(trans('admin.TotalExpensesSafes')); ?></strong>
                                <input type="checkbox" class="form-control m-2" name="TotalExpensesSafes" value="1" <?php if($ReportsSettings->TotalExpensesSafes == 1): ?> checked <?php endif; ?>>
                                                            </div>
                                                           <div class="col-md-2 Form-2" style="display: inherit;">
                                                    <strong style="font-size: large;"> <?php echo e(trans('admin.ProfitGroupsReport')); ?></strong>
                                <input type="checkbox" class="form-control m-2" name="ProfitGroupsReport" value="1" <?php if($ReportsSettings->ProfitGroupsReport == 1): ?> checked <?php endif; ?>>


                                               </div>



                                                           <div class="col-md-2 Form-2" style="display: inherit;">
                                <strong style="font-size: large;"> <?php echo e(trans('admin.SubIncomList')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="SubIncomList" value="1" <?php if($ReportsSettings->SubIncomList == 1): ?> checked <?php endif; ?>>
                                               </div>
                                                     <div class="col-md-2 Form-2" style="display: inherit;">
                                 <strong style="font-size: large;"> <?php echo e(trans('admin.ExpensesList')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="ExpensesList" value="1" <?php if($ReportsSettings->ExpensesList == 1): ?> checked <?php endif; ?>>
                                         </div>
                                                   <div class="col-md-2 Form-2" style="display: inherit;">
                                     <strong style="font-size: large;"> <?php echo e(trans('admin.StoresBalances')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="StoresBalances" value="1" <?php if($ReportsSettings->StoresBalances == 1): ?> checked <?php endif; ?>>
                                            </div>
                                               <div class="col-md-2 Form-2" style="display: inherit;">
                                                <strong style="font-size: large;"> <?php echo e(trans('admin.StoresBalancesCat')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="StoresBalancesCat" value="1" <?php if($ReportsSettings->StoresBalancesCat == 1): ?> checked <?php endif; ?>>
                                        </div>
                                           <div class="col-md-2 Form-2" style="display: inherit;">
                                              <strong style="font-size: large;"> <?php echo e(trans('admin.ItemCost')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="ItemCost" value="1" <?php if($ReportsSettings->ItemCost == 1): ?> checked <?php endif; ?>>
                                            </div>
                                             <div class="col-md-2 Form-2" style="display: inherit;">
                                 <strong style="font-size: large;"> <?php echo e(trans('admin.StoresInventory')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="StoresInventoryy" value="1" <?php if($ReportsSettings->StoresInventoryy == 1): ?> checked <?php endif; ?>>
                                                </div>
                                               <div class="col-md-2 Form-2" style="display: inherit;">
                                     <strong style="font-size: large;"> <?php echo e(trans('admin.DelegateSalesDetails')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="DelegateSalesDetailss" value="1" <?php if($ReportsSettings->DelegateSalesDetailss == 1): ?> checked <?php endif; ?>>
                                         </div>
                                             <div class="col-md-2 Form-2" style="display: inherit;">
                                                <strong style="font-size: large;"> <?php echo e(trans('admin.ProfitDelegateSalesDetails')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="ProfitDelegateSalesDetails" value="1" <?php if($ReportsSettings->ProfitDelegateSalesDetails == 1): ?> checked <?php endif; ?>>
                                                </div>
                                                   <div class="col-md-2 Form-2" style="display: inherit;">
                                          <strong style="font-size: large;"> <?php echo e(trans('admin.InstallmentCompaniesSales')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="InstallmentCompaniesSales" value="1" <?php if($ReportsSettings->InstallmentCompaniesSales == 1): ?> checked <?php endif; ?>>
                                               </div>
                                                 <div class="col-md-2 Form-2" style="display: inherit;">
                                 <strong style="font-size: large;"> <?php echo e(trans('admin.StoresCosts')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="StoresCosts" value="1" <?php if($ReportsSettings->StoresCosts == 1): ?> checked <?php endif; ?>>
                                              </div>
                                              <div class="col-md-2 Form-2" style="display: inherit;">
                                     <strong style="font-size: large;"> <?php echo e(trans('admin.DailyClosingDetails')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="DailyClosingDetails" value="1" <?php if($ReportsSettings->DailyClosingDetails == 1): ?> checked <?php endif; ?>>
                                                </div>
                                                <div class="col-md-2 Form-2" style="display: inherit;">
                                                <strong style="font-size: large;"> <?php echo e(trans('admin.SalesProsMoreDetails')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="SalesProsMoreDetails" value="1" <?php if($ReportsSettings->SalesProsMoreDetails == 1): ?> checked <?php endif; ?>>
                                                </div>
                                                  <div class="col-md-2 Form-2" style="display: inherit;">
                                              <strong style="font-size: large;"> <?php echo e(trans('admin.StagnantItems')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="StagnantItemss" value="1" <?php if($ReportsSettings->StagnantItemss == 1): ?> checked <?php endif; ?>>
                                                   </div>
                                                     <div class="col-md-2 Form-2" style="display: inherit;">
                                 <strong style="font-size: large;"> <?php echo e(trans('admin.SalesCustomersGroups')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="SalesCustomersGroups" value="1" <?php if($ReportsSettings->SalesCustomersGroups == 1): ?> checked <?php endif; ?>>
                                                  </div>
                                                  <div class="col-md-2 Form-2" style="display: inherit;">

                                     <strong style="font-size: large;"> <?php echo e(trans('admin.BrandsSales')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="BrandsSales" value="1" <?php if($ReportsSettings->BrandsSales == 1): ?> checked <?php endif; ?>>
                                                   </div>
                                                  <div class="col-md-2 Form-2" style="display: inherit;">
                                                <strong style="font-size: large;"> <?php echo e(trans('admin.Customer_Debts')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="Customer_Debts" value="1" <?php if($ReportsSettings->Customer_Debts == 1): ?> checked <?php endif; ?>>
                                          </div>
                                        <div class="col-md-2 Form-2" style="display: inherit;">
                                          <strong style="font-size: large;"> <?php echo e(trans('admin.Vendor_Debts')); ?></strong>
                                <input  type="checkbox" class="form-control m-2" name="Vendor_Debts" value="1" <?php if($ReportsSettings->Vendor_Debts == 1): ?> checked <?php endif; ?>>
                                                    </div>
                                                <div class="col-md-2 Form-2" style="display: inherit;">
                                           <strong style="font-size: large;"> <?php echo e(trans('admin.MaintanceSalesReport')); ?></strong>
                                <input type="checkbox" class="form-control m-2" name="MaintanceSalesReport" value="1" <?php if($ReportsSettings->MaintanceSalesReport == 1): ?> checked <?php endif; ?>>
                                                          </div>
                                                 <div class="col-md-2 Form-2" style="display: inherit;">
                                                    <strong style="font-size: large;"> <?php echo e(trans('admin.Maintenance_Tune')); ?></strong>
                                <input type="checkbox" class="form-control m-2" name="Maintenance_Tune" value="1" <?php if($ReportsSettings->Maintenance_Tune == 1): ?> checked <?php endif; ?>>


                                               </div>

                                            <div class="col-md-2 Form-2" style="display: inherit;">
                                                    <strong style="font-size: large;"> <?php echo e(trans('admin.AssemblyProQties')); ?></strong>
                                <input type="checkbox" class="form-control m-2" name="AssemblyProQties" value="1" <?php if($ReportsSettings->AssemblyProQties == 1): ?> checked <?php endif; ?>>


                                               </div>


                                                            </div>
                                                                 <div class="form-row" style="margin-top:30px;">
                                <button type="submit" class="btn btn-primary"><?php echo e(trans('admin.Save')); ?></button>
                                                    </div>
                                                        </div>
                                                    </div>

                                 </form>
                            <?php else: ?>
         <div  class="form-row">
           <div class="col-md-12">
              <div class="data-def">
          <div class="form-row">
               <div class="form-group col-md-12">
              <a class="btn btn-primary" href="<?php echo e(url('AddDefaultReportSettingsFirst')); ?>">
                    <?php echo e(trans('admin.AddNew')); ?>

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

                                    <?php endif; ?>


                                            </div>


                                                 <div class="tab-pane fade" id="tab_borders_icons-4" role="tabpanel">

               <form action="<?php echo e(url('AddDefaultPackagesSettings')); ?>" method="post"  class="form-row">
                                  <?php echo csrf_field(); ?>

                                    <?php echo view('honeypot::honeypotFormFields'); ?>
                                                    <div class="col-md-12">
                                                        <div class="data-def">
                                                              <div class="form-row text-center">

                                            <div class="row">

               <div class="col-md-6">
            <label><?php echo e(trans('admin.Arabic_Name')); ?></label>
            <input type="text" class="form-control" name="Arabic_Name" value="<?php echo e(old('Arabic_Name')); ?>" required>
                    </div>

                    <div class="col-md-6">
            <label><?php echo e(trans('admin.English_Name')); ?></label>
            <input type="text" class="form-control" name="English_Name" value="<?php echo e(old('English_Name')); ?>" required>
                    </div>

                                                        <input type="checkbox" style="display:block;" id="checkbox" onclick="CheckAll()">

                          <?php $__currentLoopData = $permission; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                         <?php if($value->Parent == 0): ?>
                <?php     $CHILDs=DB::table('permissions')->where('Parent',$value->Main)->get(); ?>
                <div class="col-md-12" style="margin-top:10px;">

                <h3 class="mb-2"> <?php echo e(app()->getLocale() == 'ar' ?$value->name :$value->nameEn); ?></h3>
     <input type="checkbox" name="permission[]" class="form-control name" value="<?php echo e($value->id); ?>">
                </div>


  <?php $__currentLoopData = $CHILDs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $child): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
               <div class="col-md-2 Form-2" >
  <h5 class="mb-2"><?php echo e(app()->getLocale() == 'ar' ?$child->name :$child->nameEn); ?></h5>
    <input type="checkbox" name="permission[]" value="<?php echo e($child->id); ?>" class="form-control name">
             </div>
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>



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



                                               </div>


                                                            </div>
                                                                 <div class="form-row">
                                <button type="submit" class="btn btn-primary"><?php echo e(trans('admin.Save')); ?></button>
                                                    </div>
                                                        </div>
                                                    </div>

                                 </form>



                                            </div>



                                 <div class="tab-pane fade" id="tab_borders_icons-5" role="tabpanel">

    <div class="col-md-12">

           <div style="overflow:auto;">
                                        <table
                                            class="table table-bordered table-hover table-striped " style="width:100%;">

                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Name')); ?></th>
                                                    <th><?php echo e(trans('admin.Details')); ?></th>
                                                    <th><?php echo e(trans('admin.Actions')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <?php $__currentLoopData = $Packages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pack): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                             <tr>
                                                <td><?php echo e(app()->getLocale() == 'ar' ?$pack->Arabic_Name :$pack->English_Name); ?></td>

                                                                                 <td>
                    <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#show-data<?php echo e($pack->id); ?>">
                                                           <?php echo e(trans('admin.Details')); ?>

                                                        </button>
                                                    </td>

                                                 <td>

                            <a class="btn btn-danger" href="<?php echo e(url('DeletePackage/'.$pack->id)); ?>"><i class="fal fa-trash"></i></a>
                                                 </td>

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

                                            </tbody>
                                        </table>


                                        </div>

                                     </div>




                                            </div>


                                   <div class="tab-pane fade" id="tab_borders_icons-6" role="tabpanel">
                           <?php if(!empty($Intro)): ?>
               <form action="<?php echo e(url('AddDefaultIntro')); ?>" method="post"  class="form-row">
                                  <?php echo csrf_field(); ?>

                    <?php echo view('honeypot::honeypotFormFields'); ?>
                                                    <div class="col-md-12">
                                                        <div class="data-def">
                                                              <div class="form-row">




                                                            <div class="form-group col-md-6" style="display: none">
                                       <label class="form-label" for=""> About In Arabic  </label>
                                       <textarea class="js-summernote" id="saveToLocal" name="">
                                       <?php echo e($intro->Arabic_About); ?>

                                       </textarea>
                                    </div>

                                    <div class="form-group col-md-6">
                                       <label class="form-label" for=""> About In Arabic </label>
                                       <textarea class="js-summernote" id="saveToLocal" name="Arabic_About">
                                       <?php echo e($intro->Arabic_About); ?>

                                       </textarea>
                                    </div>


                                                            <div class="form-group col-md-6" style="display: none">
                                       <label class="form-label" for=""> About In English  </label>
                                       <textarea class="js-summernote" id="saveToLocal" name="">
                                       <?php echo e($intro->English_About); ?>

                                       </textarea>
                                    </div>

                                    <div class="form-group col-md-6">
                                       <label class="form-label" for=""> About In English </label>
                                       <textarea class="js-summernote" id="saveToLocal" name="English_About">
                                       <?php echo e($intro->English_About); ?>

                                       </textarea>
                                    </div>



                                                          <div class="form-group col-lg-6">
                                            <label class="form-label" for="simpleinput">Phone 1</label>
         <input type="tel"  name="Phone_1" value="<?php echo e($Intro->Phone_1); ?>" class="form-control" >
                                        </div>
                                                          <div class="form-group col-lg-6">
                                            <label class="form-label" for="simpleinput">Phone 2</label>
         <input type="tel"  name="Phone_2" value="<?php echo e($Intro->Phone_2); ?>" class="form-control" >
                                        </div>
                                                          <div class="form-group col-lg-6">
                                            <label class="form-label" for="simpleinput">Phone 3</label>
         <input type="tel"  name="Phone_3" value="<?php echo e($Intro->Phone_3); ?>" class="form-control" >
                                        </div>
                                                          <div class="form-group col-lg-6">
                                            <label class="form-label" for="simpleinput">Phone 4</label>
         <input type="tel"  name="Phone_4" value="<?php echo e($Intro->Phone_4); ?>" class="form-control" >
                                        </div>




                                                <div class="form-group col-md-6" style="display: none">
                                       <label class="form-label" for=""> Terms In Arabic   </label>
                                       <textarea class="js-summernote" id="saveToLocal" name="">
                                       <?php echo e($intro->Arabic_Terms); ?>

                                       </textarea>
                                    </div>

                                    <div class="form-group col-md-6">
                                       <label class="form-label" for=""> Terms In Arabic   </label>
                                       <textarea class="js-summernote" id="saveToLocal" name="Arabic_Terms">
                                       <?php echo e($intro->Arabic_Terms); ?>

                                       </textarea>
                                    </div>


                                <div class="form-group col-md-6" style="display: none">
                                       <label class="form-label" for=""> Terms In English   </label>
                                       <textarea class="js-summernote" id="saveToLocal" name="">
                                       <?php echo e($intro->English_Terms); ?>

                                       </textarea>
                                    </div>

                                    <div class="form-group col-md-6">
                                       <label class="form-label" for=""> Terms In English   </label>
                                       <textarea class="js-summernote" id="saveToLocal" name="English_Terms">
                                       <?php echo e($intro->English_Terms); ?>

                                       </textarea>
                                    </div>



       <div class="form-group col-md-6" style="display: none">
                                       <label class="form-label" for=""> Privacy In Arabic   </label>
                                       <textarea class="js-summernote" id="saveToLocal" name="">
                                       <?php echo e($intro->Arabic_Privacy); ?>

                                       </textarea>
                                    </div>

                                    <div class="form-group col-md-6">
                                       <label class="form-label" for=""> Privacy In Arabic   </label>
                                       <textarea class="js-summernote" id="saveToLocal" name="Arabic_Privacy">
                                       <?php echo e($intro->Arabic_Privacy); ?>

                                       </textarea>
                                    </div>


                                <div class="form-group col-md-6" style="display: none">
                                       <label class="form-label" for=""> Privacy In English   </label>
                                       <textarea class="js-summernote" id="saveToLocal" name="">
                                       <?php echo e($intro->English_Privacy); ?>

                                       </textarea>
                                    </div>

                                    <div class="form-group col-md-6">
                                       <label class="form-label" for=""> Privacy In English   </label>
                                       <textarea class="js-summernote" id="saveToLocal" name="English_Privacy">
                                       <?php echo e($intro->English_Privacy); ?>

                                       </textarea>
                                    </div>







                                                            </div>
                                                            <div class="form-row" style="margin-top:30px;">
                                <button type="submit" class="btn btn-primary"><?php echo e(trans('admin.Save')); ?></button>
                                                    </div>
                                                        </div>
                                                    </div>

                                 </form>


                                <?php else: ?>
         <div  class="form-row">
           <div class="col-md-12">
              <div class="data-def">
          <div class="form-row">
               <div class="form-group col-md-12">
              <a class="btn btn-primary" href="<?php echo e(url('AddDefaultIntroFirst')); ?>">
                    <?php echo e(trans('admin.AddNew')); ?>

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

                                    <?php endif; ?>

                                            </div>


                                 <div class="tab-pane fade" id="tab_borders_icons-7" role="tabpanel">



                     <button type="button" class="btn btn-default" data-toggle="modal" data-target="#default-example-modal-lg"><?php echo e(trans('admin.AddNew')); ?></button>


                                     <div id="mobile-overflow">
                                        <table
                                            class="table table-bordered table-hover table-striped w-100 mobile-width">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Arabic_Name')); ?></th>
                                                    <th><?php echo e(trans('admin.English_Name')); ?></th>
                                                    <th><?php echo e(trans('admin.Video')); ?></th>
                                                    <th><?php echo e(trans('admin.Package')); ?></th>
                                                    <th><?php echo e(trans('admin.Actions')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <?php $__currentLoopData = $Educations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <tr>

                                                    <td><?php echo e($item->Arabic_Name); ?></td>
                                                    <td><?php echo e($item->English_Name); ?></td>
                                                    <td>

                                                    <iframe width="560" height="315" src="<?php echo e($item->Video); ?>" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

                                                    </td>
                                                    <td>

                          <?php if(!empty($item->Package()->first()->Arabic_Name)): ?>
                     <?php echo e(app()->getLocale() == 'ar' ?$item->Package()->first()->Arabic_Name :$item->Package()->first()->English_Name); ?>


                                                        <?php endif; ?>
                                                    </td>


                                                    <td class="text-center">

             <button type="button" class="btn btn-default" data-toggle="modal" data-target="#Delete<?php echo e($item->id); ?>"><i class="fal fa-trash-alt"></i></button>


            <button type="button" class="btn btn-default" data-toggle="modal" data-target="#Edit<?php echo e($item->id); ?>"><i class="fal fa-edit"></i></button>

                                                    </td>
                                                </tr>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </tbody>
                                            <tfoot>
                                                <tr>
                                                    <th><?php echo e(trans('admin.Arabic_Name')); ?></th>
                                                    <th><?php echo e(trans('admin.English_Name')); ?></th>
                                                    <th><?php echo e(trans('admin.Video')); ?></th>
                                                    <th><?php echo e(trans('admin.Package')); ?></th>
                                                    <th><?php echo e(trans('admin.Actions')); ?></th>
                                                </tr>
                                            </tfoot>
                                        </table>
                                        </div>
                    <!-- Modal Add-->
             <div class="modal fade" id="default-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true">
                        <div class="modal-dialog modal-lg" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h5 class="modal-title"><?php echo e(trans('admin.AddNew')); ?>  </h5>
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true"><i class="fal fa-times"></i></span>
                                    </button>
                                </div>
                                <div class="modal-body">
                          <form action="<?php echo e(url('AddRabihEdu')); ?>" method="post" enctype="multipart/form-data">
                                        <?php echo csrf_field(); ?>

                                        <div class="form-row">


                                            <div class="form-group col-lg-6">
                                                <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Arabic_Name')); ?></label>
                        <input type="text" name="Arabic_Name" value="<?php echo e(old('Arabic_Name')); ?>"  class="form-control" required>
                                            </div>

                                            <div class="form-group col-lg-6">
                                                <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.English_Name')); ?></label>
                        <input type="text" name="English_Name" value="<?php echo e(old('English_Name')); ?>"  class="form-control" required >
                                            </div>


                                                        <div class="form-group col-lg-6">
                                                <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Video')); ?></label>
                        <input type="text" name="Video" value="<?php echo e(old('Video')); ?>"  class="form-control" required >
                                            </div>



                                                        <div class="form-group col-lg-6">
                                                <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Package')); ?></label>
                      <select class="select2 form-control" name="Package" required>

                                    <option value=""><?php echo e(trans('admin.Package')); ?></option>

                          <?php $__currentLoopData = $Packages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pack): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($pack->id); ?>">
                          <?php echo e(app()->getLocale() == 'ar' ?$pack->Arabic_Name :$pack->English_Name); ?>

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

                                                            </select>
                                            </div>

                                        </div>
                                         <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
                        <button type="submit" class="btn btn-primary"> <?php echo e(trans('admin.Add')); ?></button>
                                </div>
                                    </form>
                                </div>

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

      <?php $__currentLoopData = $Educations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                    <!-- Modal Edit-->
                    <div class="modal fade" id="Edit<?php echo e($item->id); ?>" tabindex="-1" role="dialog" aria-hidden="true">
                        <div class="modal-dialog modal-lg" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h5 class="modal-title"><?php echo e(trans('admin.Edit')); ?>  </h5>
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true"><i class="fal fa-times"></i></span>
                                    </button>
                                </div>

                                    <div class="modal-body">
                          <form action="<?php echo e(url('EditRabihEdu/'.$item->id)); ?>" method="post" enctype="multipart/form-data">
                                        <?php echo csrf_field(); ?>

                            <div class="form-row">

                                    <div class="form-group col-lg-6">
                                                <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Arabic_Name')); ?></label>
                        <input type="text" name="Arabic_Name" value="<?php echo e($item->Arabic_Name); ?>"  class="form-control" required>
                                            </div>

                                            <div class="form-group col-lg-6">
                                                <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.English_Name')); ?></label>
                        <input type="text" name="English_Name" value="<?php echo e($item->English_Name); ?>"  class="form-control" required >
                                            </div>


                                                        <div class="form-group col-lg-6">
                                                <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Video')); ?></label>
                        <input type="text" name="Video" value="<?php echo e($item->Video); ?>"  class="form-control" required >
                                            </div>



                                                        <div class="form-group col-lg-6">
                                                <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Package')); ?></label>
                      <select class="select2 form-control" name="Package" required>

                                    <option value=""><?php echo e(trans('admin.Package')); ?></option>

                          <?php $__currentLoopData = $Packages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pack): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($pack->id); ?>" <?php if($pack->id == $item->Package): ?> selected <?php endif; ?>>
                          <?php echo e(app()->getLocale() == 'ar' ?$pack->Arabic_Name :$pack->English_Name); ?>

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

                                        </select>
                                            </div>



                                        </div>
                                         <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
                        <button type="submit" class="btn btn-primary"> <?php echo e(trans('admin.SaveChanges')); ?></button>
                                </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Modal Delete -->
          <div class="modal fade" id="Delete<?php echo e($item->id); ?>" tabindex="-1" role="dialog" aria-hidden="true">
                        <div class="modal-dialog modal-dialog-centered" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h4 class="modal-title">
                                    <?php echo e(trans('admin.RUSWDT')); ?> <strong> <?php echo e(app()->getLocale() == 'ar' ?$item->Arabic_Name :$item->English_Name); ?></strong>
                                    </h4>
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true"><i class="fal fa-times"></i></span>
                                    </button>
                                </div>
                                <div class="modal-footer">
                 <button type="button" class="btn btn-secondary" data-dismiss="modal"> <?php echo e(trans('admin.No')); ?></button>
                   <a href="<?php echo e(url('DeleteRabihEdu/'.$item->id)); ?>"  class="btn btn-primary"> <?php echo e(trans('admin.Yes')); ?></a>
                                </div>
                            </div>
                        </div>
                    </div>

     <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>





                                            </div>



                                        </div>

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

                </main>



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

<?php $__env->startPush('js'); ?>
  <link rel="stylesheet" media="screen, print" href="<?php echo e(asset('Admin/css/datagrid/datatables/datatables.bundle.css')); ?>">
    <link rel="stylesheet" media="screen, print" href="<?php echo e(asset('Admin/css/formplugins/summernote/summernote.css')); ?>">
    <link rel="stylesheet" media="screen, print" href="<?php echo e(asset('Admin/css/formplugins/select2/select2.bundle.css')); ?>">

 <script src="<?php echo e(asset('Admin/js/datagrid/datatables/datatables.bundle.js')); ?>"></script>
    <script src="<?php echo e(asset('Admin/js/datagrid/datatables/datatables.export.js')); ?>"></script>
    <script src="<?php echo e(asset('Admin/js/formplugins/summernote/summernote.js')); ?>"></script>
    <script src="<?php echo e(asset('Admin/js/formplugins/select2/select2.bundle.js')); ?>"></script>
    <script>
        //_fnFeatureHtmlLength();
        $(document).ready(function () {
            // Setup - add a text input to each footer cell
            $('#dt-basic-example thead tr').clone(true).appendTo('#dt-basic-example thead');
            $('#dt-basic-example thead tr:eq(1) th').each(function (i) {
                var title = $(this).text();
                $(this).html('<input type="text" class="form-control form-control-sm" placeholder="Search ' + title + '" />');

                $('input', this).on('keyup change', function () {
                    if (table.column(i).search() !== this.value) {
                        table
                            .column(i)
                            .search(this.value)
                            .draw();
                    }
                });
            });
            var table = $('#dt-basic-example').DataTable(
                {
                    responsive: true,
                    orderCellsTop: true,
                    fixedHeader: true,
                    lengthChange: true,

                    dom: "<'row mb-3'<'col-sm-12 col-md-3 d-flex align-items-center justify-content-start'f><'col-sm-12 col-md-9 d-flex align-items-center justify-content-end'B>>" +
                        "<'row'<'col-sm-12'tr>>" +
                        "<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",

                    buttons: [
                        {
                            extend: 'pageLength',
                            className: 'btn-outline-default'
                        },
                        {
                            extend: 'colvis',
                            text: 'Column Visibility',
                            titleAttr: 'Col visibility',
                            className: 'btn-outline-default'
                        },
                        {
                            extend: 'pdfHtml5',
                            text: 'PDF',
                            titleAttr: 'Generate PDF',
                            className: 'btn-outline-danger btn-sm mr-1'
                        },
                        {
                            extend: 'excelHtml5',
                            text: 'Excel',
                            titleAttr: 'Generate Excel',
                            className: 'btn-outline-success btn-sm mr-1'
                        },
                        {
                            extend: 'csvHtml5',
                            text: 'CSV',
                            titleAttr: 'Generate CSV',
                            className: 'btn-outline-primary btn-sm mr-1'
                        },
                        {
                            extend: 'copyHtml5',
                            text: 'Copy',
                            titleAttr: 'Copy to clipboard',
                            className: 'btn-outline-primary btn-sm mr-1'
                        },
                        {
                            extend: 'print',
                            text: 'Print',
                            titleAttr: 'Print Table',
                            className: 'btn-outline-primary btn-sm'
                        }
                    ],
                });
            $('.js-thead-colors a').on('click', function () {
                var theadColor = $(this).attr("data-bg");
                console.log(theadColor);
                $('#dt-basic-example thead').removeClassPrefix('bg-').addClass(theadColor);
            });

            $('.js-tbody-colors a').on('click', function () {
                var theadColor = $(this).attr("data-bg");
                console.log(theadColor);
                $('#dt-basic-example').removeClassPrefix('bg-').addClass(theadColor);
            });

        });

    </script>

<script>
   var autoSave = $('#autoSave');
   var interval;
   var timer = function()
   {
       interval = setInterval(function()
       {
           //start slide...
           if (autoSave.prop('checked'))
               saveToLocal();

           clearInterval(interval);
       }, 3000);
   };

   //save
   var saveToLocal = function()
   {
       localStorage.setItem('summernoteData', $('#saveToLocal').summernote("code"));
       console.log("saved");
   }

   //delete
   var removeFromLocal = function()
   {
       localStorage.removeItem("summernoteData");
       $('#saveToLocal').summernote('reset');
   }

   $(document).ready(function()
   {
       //init default
       $('.js-summernote').summernote(
       {
           height: 200,
           tabsize: 2,
           placeholder: "Type here...",
           dialogsFade: true,
           toolbar: [
               ['style', ['style']],
               ['font', ['strikethrough', 'superscript', 'subscript']],
               ['font', ['bold', 'italic', 'underline', 'clear']],
               ['fontsize', ['fontsize']],
               ['fontname', ['fontname']],
               ['color', ['color']],
               ['para', ['ul', 'ol', 'paragraph']],
               ['height', ['height']]
               ['table', ['table']],
               ['insert', ['link', 'picture', 'video']],
               ['view', ['fullscreen', 'codeview', 'help']]
           ],
           callbacks:
           {
               //restore from localStorage
               onInit: function(e)
               {
                   $('.js-summernote').summernote("code", localStorage.getItem("summernoteData"));
               },
               onChange: function(contents, $editable)
               {
                   clearInterval(interval);
                   timer();
               }
           }
       });

       //load emojis
       $.ajax(
       {
           url: 'https://api.github.com/emojis',
           async: false
       }).then(function(data)
       {
           window.emojis = Object.keys(data);
           window.emojiUrls = data;
       });

       //init emoji example
       $(".js-hint2emoji").summernote(
       {
           height: 100,
           toolbar: false,
           placeholder: 'type starting with : and any alphabet',
           hint:
           {
               match: /:([\-+\w]+)$/,
               search: function(keyword, callback)
               {
                   callback($.grep(emojis, function(item)
                   {
                       return item.indexOf(keyword) === 0;
                   }));
               },
               template: function(item)
               {
                   var content = emojiUrls[item];
                   return '<img src="' + content + '" width="20" /> :' + item + ':';
               },
               content: function(item)
               {
                   var url = emojiUrls[item];
                   if (url)
                   {
                       return $('<img />').attr('src', url).css('width', 20)[0];
                   }
                   return '';
               }
           }
       });

       //init mentions example
       $(".js-hint2mention").summernote(
       {
           height: 100,
           toolbar: false,
           placeholder: "type starting with @",
           hint:
           {
               mentions: ['jayden', 'sam', 'alvin', 'david'],
               match: /\B@(\w*)$/,
               search: function(keyword, callback)
               {
                   callback($.grep(this.mentions, function(item)
                   {
                       return item.indexOf(keyword) == 0;
                   }));
               },
               content: function(item)
               {
                   return '@' + item;
               }
           }
       });

   });

</script>
          <!-- Search Selecet -->
        <script>
        $(document).ready(function()
        {
            $(function()
            {
                $('.select2').select2();

                $(".select2-placeholder-multiple").select2(
                {
                    placeholder: "Select State"
                });
                $(".js-hide-search").select2(
                {
                    minimumResultsForSearch: 1 / 0
                });
                $(".js-max-length").select2(
                {
                    maximumSelectionLength: 2,
                    placeholder: "Select maximum 2 items"
                });
                $(".select2-placeholder").select2(
                {
                    placeholder: "Select a state",
                    allowClear: true
                });

                $(".js-select2-icons").select2(
                {
                    minimumResultsForSearch: 1 / 0,
                    templateResult: icon,
                    templateSelection: icon,
                    escapeMarkup: function(elm)
                    {
                        return elm
                    }
                });

                function icon(elm)
                {
                    elm.element;
                    return elm.id ? "<i class='" + $(elm.element).data("icon") + " mr-2'></i>" + elm.text : elm.text
                }


  $('#AccountDificit').select2({
    placeholder: "select...",
    ajax: {
        type: "GET",
        dataType: 'json',
        url: 'AllSubAccounts',
        processResults: function (data) {
          return {
            results: $.map(data, function(obj, index) {
              return { id: index, text: obj };
            })
          };

            	console.log(data);

        },
        data: function (params) {
          var query = {
            search: params.term
          };
          if (params.term == "*") query.items = [];
          return { json: JSON.stringify( query ) }
        }
    }
  });


$('#AccountDificit').on('select2:select', function (e) {
	console.log("select done", e.params.data);
});


  $('#AccountExcess').select2({
    placeholder: "select...",
    ajax: {
        type: "GET",
        dataType: 'json',
        url: 'AllSubAccounts',
        processResults: function (data) {
          return {
            results: $.map(data, function(obj, index) {
              return { id: index, text: obj };
            })
          };

            	console.log(data);

        },
        data: function (params) {
          var query = {
            search: params.term
          };
          if (params.term == "*") query.items = [];
          return { json: JSON.stringify( query ) }
        }
    }
  });


$('#AccountExcess').on('select2:select', function (e) {
	console.log("select done", e.params.data);
});



              $("#client").select2({
                placeholder: "select...",
                ajax: {
                    type: "GET",
                    dataType: "json",
                    url: "AllClientsFilter",
                    processResults: function (data) {
                        return {
                            results: $.map(data, function (obj, index) {

                                return { id: index, text: obj };
                            }),
                        };

                        console.log(data);
                    },
                  data: function (params) {


                   var query = {
                            search: params.term,
                        };


              $.ajax({
                              url: 'AllClientsFilterJS/'+params.term,
                              type:"GET",
                              dataType:"json",
                              beforeSend: function(){
                                  $('#loader').css("visibility", "visible");
                              },

                              success:function(data) {
                                          $('#client').empty();
                                  $.each(data, function(key, value){

                         $('#client').append('<option value="'+ key +'">' + value + '</option>');

                                  });
                              },
                              complete: function(){
                                  $('#loader').css("visibility", "hidden");
                              }
                          });



        }
                },
            });

            $("#client").on("select2:select", function (e) {
                console.log("select done", e.params.data);
            });



            });
        });
    </script>

<script>
    function BranchHH(){

        var BS=$('#BS').val();

        if(parseFloat(BS)  == 1){

            document.getElementById('BN').style.display='block';
        }else{
             document.getElementById('BN').style.display='none';

        }


    }

 function StoreSSSS(){

        var SS=$('#SS').val();

        if(parseFloat(SS)  == 1){

            document.getElementById('SN').style.display='block';
        }else{
             document.getElementById('SN').style.display='none';

        }


    }

     function UsersSS(){

        var US=$('#US').val();

        if(parseFloat(US)  == 1){

            document.getElementById('UN').style.display='block';
        }else{
             document.getElementById('UN').style.display='none';

        }


    }

        function Systems(){

        var US=$('#System').val();

        if(parseFloat(US)  == 1){

            document.getElementById('EXD').style.display='block';
            document.getElementById('TYPE').style.display='block';
            document.getElementById('PRI').style.display='block';
        }else{
             document.getElementById('EXD').style.display='none';
             document.getElementById('TYPE').style.display='none';
             document.getElementById('PRI').style.display='none';

        }


    }




   $(document).ready(function()
        {

             var BS=$('#BS').val();

        if(parseFloat(BS)  == 1){

            document.getElementById('BN').style.display='block';
        }else{
             document.getElementById('BN').style.display='none';

        }


              var SS=$('#SS').val();

        if(parseFloat(SS)  == 1){

            document.getElementById('SN').style.display='block';
        }else{
             document.getElementById('SN').style.display='none';

        }


          var US=$('#US').val();

        if(parseFloat(US)  == 1){

            document.getElementById('UN').style.display='block';
        }else{
             document.getElementById('UN').style.display='none';

        }



         var USS=$('#System').val();

        if(parseFloat(USS)  == 1){

            document.getElementById('EXD').style.display='block';
            document.getElementById('TYPE').style.display='block';
            document.getElementById('PRI').style.display='block';
        }else{
             document.getElementById('EXD').style.display='none';
             document.getElementById('TYPE').style.display='none';
             document.getElementById('PRI').style.display='none';

        }



   });

</script>


<script>
    function CheckAll() {
                             if($("#checkbox").prop("checked"))
                                {
                                    $(".name").prop("checked",true);


                                }else
                                if($("#checkbox").prop("checked",false))
                                {

                                    $(".name").prop("checked",false);


                                }
                                   }
</script>

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


<?php echo $__env->make('admin.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/limraerp/public_html/orient.limraerp.com/resources/views/admin/Settings/ModulesSettings.blade.php ENDPATH**/ ?>