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

<title> <?php echo e(trans('admin.ProductMoveDetails')); ?></title>
<main id="js-page-content" role="main" class="page-content no-print">
   <ol class="breadcrumb page-breadcrumb no-print">
      <li class="breadcrumb-item"><a href="javascript:void(0);"> <?php echo e(trans('admin.Reports')); ?></a></li>
      <li class="breadcrumb-item active">  <?php echo e(trans('admin.ProductMoveDetails')); ?> </li>
      <li class="position-absolute pos-top pos-right d-none d-sm-block"><span
         class="js-get-date"></span></li>
   </ol>
   <!-- Data -->
   <div class="row hide-table">
      <div class="col-xl-12">
         <div id="panel-1" class="panel second-color">
            <div class="panel-hdr">
               <h2>
                  <?php echo e(trans('admin.ProductMoveDetails')); ?>

               </h2>
               <div class="panel-toolbar">
                  <button class="btn btn-primary btn-sm" data-toggle="dropdown">Table
                  Style</button>

              <form action="<?php echo e(url('ProductMoveDetailsPrint')); ?>" method="get">
                 <?php echo view('honeypot::honeypotFormFields'); ?>
                  <div class="row" style="display: none">
                      <?php if(!empty($store)): ?>


                      <?php for($i=0 ; $i < count($store) ; $i++): ?>
               <input type="hidden" name="Store[]" value="<?php echo e($store[$i]); ?>">
                      <?php endfor; ?>

                  <?php else: ?>
                     <input type="hidden" name="Store" value="">
                  <?php endif; ?>

                                   <?php if(!empty($payment_method)): ?>


                      <?php for($i=0 ; $i < count($payment_method) ; $i++): ?>
               <input type="hidden" name="Payment_Method[]" value="<?php echo e($payment_method[$i]); ?>">
                      <?php endfor; ?>

                  <?php else: ?>
                     <input type="hidden" name="Payment_Method" value="">
                  <?php endif; ?>


                      <?php if(!empty($type)): ?>

                      <?php for($i=0 ; $i < count($type) ; $i++): ?>
                    <input type="hidden" name="Type[]" value="<?php echo e($type[$i]); ?>">
                      <?php endfor; ?>

                      <?php else: ?>
                     <input type="hidden" name="Type" value="">
                   <?php endif; ?>

                       <?php if(!empty($safe)): ?>

                      <?php for($i=0 ; $i < count($safe) ; $i++): ?>
                 <input type="hidden" name="Safe[]" value="<?php echo e($safe[$i]); ?>">
                      <?php endfor; ?>

                   <?php else: ?>
                     <input type="hidden" name="Safe" value="">
                <?php endif; ?>

                    <?php if(!empty($group)): ?>

                      <?php for($i=0 ; $i < count($group) ; $i++): ?>
                    <input type="hidden" name="Group[]" value="<?php echo e($group[$i]); ?>">
                      <?php endfor; ?>

                <?php else: ?>
                     <input type="hidden" name="Group" value="">
             <?php endif; ?>
                 <?php if(!empty($brand)): ?>

                      <?php for($i=0 ; $i < count($brand) ; $i++): ?>
                    <input type="hidden" name="Brand[]" value="<?php echo e($brand[$i]); ?>">
                      <?php endfor; ?>

             <?php else: ?>
                     <input type="hidden" name="Brand" value="">
          <?php endif; ?>

              <?php if(!empty($user)): ?>

                      <?php for($i=0 ; $i < count($user) ; $i++): ?>
                      <input type="hidden" name="User[]" value="<?php echo e($user[$i]); ?>">
                      <?php endfor; ?>

          <?php else: ?>
                     <input type="hidden" name="User" value="">
                <?php endif; ?>

                  <input type="hidden" name="Branch" value="<?php echo e($branch); ?>">
                  <input type="hidden" name="Product_Name" value="<?php echo e($product_Name); ?>">
                  <input type="hidden" name="Product_Code" value="<?php echo e($product_Code); ?>">
                  <input type="hidden" name="From" value="<?php echo e($from); ?>">
                  <input type="hidden" name="To" value="<?php echo e($to); ?>">


                  </div>

                     <button type="submit" class="btn btn-primary btn-sm" >
                                                    <i class="fal fa-print"><?php echo e(trans('admin.Print')); ?></i>
                                                    </button>
                </form>

                   <form action="<?php echo e(url('ExportProductMoveDetails')); ?>" method="get">
                 <?php echo view('honeypot::honeypotFormFields'); ?>
                  <div class="row" style="display: none">
                      <?php if(!empty($store)): ?>


                      <?php for($i=0 ; $i < count($store) ; $i++): ?>
               <input type="hidden" name="Store[]" value="<?php echo e($store[$i]); ?>">
                      <?php endfor; ?>

                  <?php else: ?>
                     <input type="hidden" name="Store" value="">
                  <?php endif; ?>

                      <?php if(!empty($type)): ?>

                      <?php for($i=0 ; $i < count($type) ; $i++): ?>
                    <input type="hidden" name="Type[]" value="<?php echo e($type[$i]); ?>">
                      <?php endfor; ?>

                      <?php else: ?>
                     <input type="hidden" name="Type" value="">
                   <?php endif; ?>

                        <?php if(!empty($payment_method)): ?>


                      <?php for($i=0 ; $i < count($payment_method) ; $i++): ?>
               <input type="hidden" name="Payment_Method[]" value="<?php echo e($payment_method[$i]); ?>">
                      <?php endfor; ?>

                  <?php else: ?>
                     <input type="hidden" name="Payment_Method" value="">
                  <?php endif; ?>

                       <?php if(!empty($safe)): ?>

                      <?php for($i=0 ; $i < count($safe) ; $i++): ?>
                 <input type="hidden" name="Safe[]" value="<?php echo e($safe[$i]); ?>">
                      <?php endfor; ?>

                   <?php else: ?>
                     <input type="hidden" name="Safe" value="">
                <?php endif; ?>

                    <?php if(!empty($group)): ?>

                      <?php for($i=0 ; $i < count($group) ; $i++): ?>
                    <input type="hidden" name="Group[]" value="<?php echo e($group[$i]); ?>">
                      <?php endfor; ?>

                <?php else: ?>
                     <input type="hidden" name="Group" value="">
             <?php endif; ?>
                 <?php if(!empty($brand)): ?>

                      <?php for($i=0 ; $i < count($brand) ; $i++): ?>
                    <input type="hidden" name="Brand[]" value="<?php echo e($brand[$i]); ?>">
                      <?php endfor; ?>

             <?php else: ?>
                     <input type="hidden" name="Brand" value="">
          <?php endif; ?>

              <?php if(!empty($user)): ?>

                      <?php for($i=0 ; $i < count($user) ; $i++): ?>
                      <input type="hidden" name="User[]" value="<?php echo e($user[$i]); ?>">
                      <?php endfor; ?>

          <?php else: ?>
                     <input type="hidden" name="User" value="">
                <?php endif; ?>

                  <input type="hidden" name="Branch" value="<?php echo e($branch); ?>">
                  <input type="hidden" name="Product_Name" value="<?php echo e($product_Name); ?>">
                  <input type="hidden" name="Product_Code" value="<?php echo e($product_Code); ?>">
                  <input type="hidden" name="From" value="<?php echo e($from); ?>">
                  <input type="hidden" name="To" value="<?php echo e($to); ?>">


                  </div>


           <button type="submit" class="btn btn-success btn-sm" >
                                                Export Excel All Data
                                                    </button>
                </form>

                <?php echo $__env->make('admin.layouts.toolbar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
               </div>
            </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">
                  <!-- datatable start -->
                     <div class="over-flow">
                                        <table
                                            class="table table-bordered table-hover w-100 table-striped table-responsive">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <?php if($colum->Product_Code == 1): ?>
                                                    <th rowspan="2"><?php echo e(trans('admin.Code')); ?> </th>
                                                    <?php endif; ?>
                                                     <?php if($colum->Product_Name == 1): ?>
                                                    <th rowspan="2"><?php echo e(trans('admin.Name')); ?> </th>
                                                    <?php endif; ?>
                                                     <?php if($colum->Unit == 1): ?>
                                                    <th rowspan="2"><?php echo e(trans('admin.Unit')); ?> </th>
                                                    <?php endif; ?>
                                                    <?php if($colum->Date == 1): ?>
                                                    <th rowspan="2"><?php echo e(trans('admin.Date')); ?> </th>
                                                    <?php endif; ?>
                                                       <?php if($colum->Type == 1): ?>
                                                    <th rowspan="2"><?php echo e(trans('admin.Type')); ?> </th>
                                                    <?php endif; ?>
                                                       <?php if($colum->Bill_Num == 1): ?>
                                                    <th rowspan="2"><?php echo e(trans('admin.Bill_Num')); ?> </th>
                                                    <?php endif; ?>
                                                                   <?php if($colum->Incom == 1): ?>
                                                    <th colspan="3"><?php echo e(trans('admin.Incom')); ?></th>
                                                                <?php endif; ?>
                                                                   <?php if($colum->Outcom == 1): ?>
                                                    <th colspan="3"><?php echo e(trans('admin.Outcom')); ?></th>
                                                                <?php endif; ?>
                                                                   <?php if($colum->Credit == 1): ?>
                                                    <th colspan="3"><?php echo e(trans('admin.Balance')); ?></th>
                                                                <?php endif; ?>
                                                       <?php if($colum->Group == 1): ?>
                                                    <th rowspan="2"><?php echo e(trans('admin.Group')); ?> </th>
                                                    <?php endif; ?>
                                                       <?php if($colum->Store == 1): ?>
                                                    <th rowspan="2"><?php echo e(trans('admin.Store')); ?> </th>
                                                      <?php endif; ?>
                                                       <?php if($colum->User == 1): ?>
                                                    <th  rowspan="2"><?php echo e(trans('admin.User')); ?> </th>
                                                      <?php endif; ?>
                                                       <?php if($colum->Brand == 1): ?>
                                                    <th  rowspan="2"><?php echo e(trans('admin.Brand')); ?> </th>
                                                      <?php endif; ?>
                                                       <?php if($colum->Safe == 1): ?>
                                                    <th  rowspan="2"><?php echo e(trans('admin.Safe')); ?> </th>
                                                      <?php endif; ?>
                                                       <?php if($colum->Branch == 1): ?>
                                                    <th  rowspan="2"><?php echo e(trans('admin.Branch')); ?> </th>
                                                      <?php endif; ?>

                                                    <th  rowspan="2"><?php echo e(trans('admin.Payment_Method')); ?> </th>

                                                        <th  rowspan="2"><?php echo e(trans('admin.Actions')); ?> </th>
                                                </tr>

                                            </thead>
                                            <tr>

                                                     <?php if($colum->Product_Code == 1): ?>
                                            <td></td>
                                                <?php endif; ?>
                                                      <?php if($colum->Product_Name == 1): ?>
                                            <td></td>
                                                <?php endif; ?>
                                                           <?php if($colum->Unit == 1): ?>
                                            <td></td>
                                                <?php endif; ?>
                                                              <?php if($colum->Date == 1): ?>
                                            <td></td>
                                                <?php endif; ?>
                                                         <?php if($colum->Type == 1): ?>
                                            <td></td>
                                                <?php endif; ?>
                                                   <?php if($colum->Bill_Num == 1): ?>
                                            <td></td>
                                                <?php endif; ?>


                                                   <?php if($colum->Incom == 1): ?>
                                            <td><?php echo e(trans('admin.Qty')); ?></td>
                                            <td><?php echo e(trans('admin.Goods_Cost')); ?></td>
                                            <td> <?php echo e(trans('admin.Cost_Per_One')); ?></td>
                                                <?php endif; ?>

                                                     <?php if($colum->Outcom == 1): ?>
                                            <td><?php echo e(trans('admin.Qty')); ?></td>
                                            <td><?php echo e(trans('admin.Goods_Cost')); ?></td>
                                            <td> <?php echo e(trans('admin.Cost_Per_One')); ?></td>
                                                <?php endif; ?>

                                                       <?php if($colum->Credit == 1): ?>
                                            <td><?php echo e(trans('admin.Qty')); ?></td>
                                            <td><?php echo e(trans('admin.Goods_Cost')); ?></td>
                                            <td> <?php echo e(trans('admin.Cost_Per_One')); ?></td>
                                                <?php endif; ?>
                                                    <?php if($colum->Group == 1): ?>
                                            <td></td>
                                                <?php endif; ?>
                                                         <?php if($colum->Store == 1): ?>
                                            <td></td>
                                                <?php endif; ?>
                                                     <?php if($colum->User == 1): ?>
                                            <td></td>
                                                <?php endif; ?>
                                                           <?php if($colum->Brand == 1): ?>
                                            <td></td>
                                                <?php endif; ?>
                                                       <?php if($colum->Safe == 1): ?>
                                            <td></td>
                                                <?php endif; ?>
                                                 <?php if($colum->Branch == 1): ?>
                                            <td></td>
                                                <?php endif; ?>
                                                    <td></td>
                                                         <td></td>
                                            </tr>
                                            <tbody>
                                                <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                             <tr  <?php if($item->Edit == 1): ?> class="edited" <?php elseif($item->Delete == 1): ?> class="deleted"  <?php endif; ?>>

                                                                                          <?php if($colum->Product_Code == 1): ?>
                                           <td>

                                         <?php echo e($item->P_Code); ?>

                                           </td>
                                                                                     <?php endif; ?>

                                                                                           <?php if($colum->Product_Name == 1): ?>
                                            <td>


                                         <?php echo e(app()->getLocale() == 'ar' ?$item->P_Ar_Name :$item->P_En_Name); ?>

                                            </td>
                                                                                     <?php endif; ?>

                                                                                                <?php if($colum->Unit == 1): ?>
                                            <td>
                                        <?php if(!empty($item->Unit)): ?>

                                                         <?php echo e(app()->getLocale() == 'ar' ?$item->Unit()->first()->Name :$item->Unit()->first()->NameEn); ?>

                                                (<?php echo e($item->QTY); ?>)  <?php endif; ?>
                                            </td>
                                                                                     <?php endif; ?>

                                                                                                   <?php if($colum->Date == 1): ?>
                                           <td>
                                            <?php echo e($item->Date); ?>

                                            </td>
                                                                                     <?php endif; ?>

                                                                                              <?php if($colum->Type == 1): ?>
                                            <td>
                                                <?php echo e(app()->getLocale() == 'ar' ?$item->Type :$item->TypeEn); ?>

                                            </td>
                                                                                     <?php endif; ?>

                                                                                        <?php if($colum->Bill_Num == 1): ?>
                                             <td>
                                              <?php echo e($item->Bill_Num); ?>

                                            </td>
                                                                                     <?php endif; ?>

                                                                                        <?php if($colum->Incom == 1): ?>
                                             <td>
                                              <?php echo e($item->Incom); ?>


                                            </td>

                                         <td>
                                              <?php echo e($item->CostIn); ?>

                                        </td>

                                               <td>
                                               <?php if($item->Incom != 0): ?>


                                             <?php echo e(number_format((float)$item->CostIn / $item->Incom, 2, '.', '')); ?>

                                               <?php else: ?>
                                                <?php echo e($item->CostIn / 1); ?>

                                               <?php endif; ?>
                                           </td>
                                                                                     <?php endif; ?>




                                                                                          <?php if($colum->Outcom == 1): ?>
                                                <td>
                                           <?php echo e($item->Outcom); ?>


                                            </td>

                                            <td>
                                          <?php echo e($item->CostOut); ?>

                                        </td>


                                            <td>

                                                         <?php if($item->Outcom != 0): ?>

                                                 <?php echo e(number_format((float)$item->CostOut / $item->Outcom, 2, '.', '')); ?>

                                               <?php else: ?>
                                                  <?php echo e($item->CostOut / 1); ?>

                                               <?php endif; ?>

                                           </td>
                                                                                     <?php endif; ?>

                                                                                            <?php if($colum->Credit == 1): ?>
                                                                       <td>
                                                                      <?php echo e($item->Current); ?>


                                                                        </td>

                                                                        <td>
                                                                           <?php echo e($item->CostCurrent); ?>

                                                                    </td>

                                                                        <td>


                                                                          <?php if($item->Current != 0): ?>


                                                    <?php echo e(number_format((float)$item->CostCurrent / $item->Current, 2, '.', '')); ?>

                                               <?php else: ?>
                                                            <?php echo e($item->CostCurrent / 1); ?>

                                               <?php endif; ?>
                                                                       </td>
                                                                                     <?php endif; ?>

                                                                                         <?php if($colum->Group == 1): ?>
                                            <td>
                                            <?php if(!empty($item->Group)): ?>

                                              <?php echo e(app()->getLocale() == 'ar' ?$item->Group()->first()->Name :$item->Group()->first()->NameEn); ?>


                                                <?php endif; ?>
                                            </td>
                                                                                     <?php endif; ?>

                                                                                              <?php if($colum->Store == 1): ?>
                                           <td>
                                           <?php if(!empty($item->Store)): ?>

                                                       <?php echo e(app()->getLocale() == 'ar' ?$item->Store()->first()->Name :$item->Store()->first()->NameEn); ?>


                                               <?php endif; ?>
                                            </td>
                                                                                     <?php endif; ?>

                                                                                          <?php if($colum->User == 1): ?>
                                                                   <td>


                                                <?php echo e(app()->getLocale() == 'ar' ?$item->User()->first()->name :$item->User()->first()->nameEn); ?>

                                                                </td>
                                                                                     <?php endif; ?>


                                                            <?php if($colum->Brand == 1): ?>
                                          <td>
                                          <?php if(!empty($item->Brand)): ?>

                                                    <?php echo e(app()->getLocale() == 'ar' ?$item->Brand()->first()->Name :$item->Brand()->first()->NameEn); ?>

                                              <?php endif; ?>
                                            </td>
                                                            <?php endif; ?>


                                              <?php if($colum->Safe == 1): ?>
                                          <td>
                                       <?php if(!empty($item->Safe)): ?>

                                                  <?php echo e(app()->getLocale() == 'ar' ?$item->Safe()->first()->Name :$item->Safe()->first()->NameEn); ?>


                                              <?php endif; ?>
                                            </td>
                                                  <?php endif; ?>

                                              <?php if($colum->Branch == 1): ?>
                                          <td>
                                      <?php if(!empty($item->Branch)): ?>

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


                                              <?php endif; ?>
                                            </td>
                                               <?php endif; ?>

     <td>



         <?php if($item->Payment_Method == 'Cash'): ?>
         <?php echo e(trans('admin.Cash')); ?>

         <?php elseif($item->Payment_Method == 'Later'): ?>
           <?php echo e(trans('admin.Later')); ?>

         <?php endif; ?>

     </td>

                                                 <td>
                                                     <?php if($item->Edit == 1): ?>
                                                         <span class="btn btn-warning"><?php echo e(trans('admin.Edited_to_New_One')); ?> (<?php echo e($item->Edit_New_Code); ?>)</span>
                                                     <?php elseif($item->Delete == 1): ?>

                                                         <span class="btn btn-danger"><?php echo e(trans('admin.Deleted')); ?></span>

                                                     <?php endif; ?>


                                                 </td>


        </tr>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </tbody>
                                        </table>
                                        </div>
                   <?php echo e($items->Links()); ?>

                  <!-- datatable end -->

                       <div style="overflow:auto;">
                     <table style="    background: linear-gradient(45deg, #1d1f83, #921b1bde);
color: white;" id="dt-basic-example" class="table table-bordered table-hover table-striped">
                         <tr>

                              <th><?php echo e(trans('admin.Bills_Nums')); ?></th>
                         <td><?php echo e($Bills_Nums); ?></td>

                         <th><?php echo e(trans('admin.Total_Incom')); ?></th>
                         <td><?php echo e($CostIn); ?></td>

                           <th><?php echo e(trans('admin.Total_Outcom')); ?></th>
                         <td><?php echo e($CostOut); ?></td>

                            <th><?php echo e(trans('admin.Balance')); ?></th>
                         <td><?php echo e($Credit); ?></td>


                        </tr>

                           </table>
                   </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.export.js')); ?>"></script>
    <script src="<?php echo e(asset('Admin/js/datagrid/datatables/datatables.bundle.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 ' + '" />');

                $('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',
                            exportOptions: {
                                format: {
                                    body: function ( inner, rowidx, colidx, node ) {
                                        if ($(node).children("select").length > 0) {
                                            // we are in a cell containing a "select" drop-down - so, get it:
                                            var selectNode = node.firstElementChild;
                                            var txt = selectNode.options[selectNode.selectedIndex].text;
                                            //var txt = selectNode.options[selectNode.selectedIndex].text;
                                            return txt;
                                        } else {

                                            if ($(node).children("input").length > 0) {
                                                return $(node).children("input").first().val();
                                            } else {
                                                return inner;
                                            }


                                        }
                                    }
                                }
                            },
                            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>

<script type="text/javascript">
   $(".show-table").click(function(){
       $(".hide-table").show();
   });

</script>
<style>
   @media  print {
   /*body * {*/
   /*	visibility: hidden;*/
   /*}*/
   .modal-content * {
   visibility: visible;
   overflow: visible;
   }
   .main-page  {
   display: none!important;
   }
   .modal {
   position: absolute;
   left: 0;
   top:-130px;
   right:0;
   margin: 0;
   padding: 0;
   /*min-height: 550px;*/
   /*visibility: visible;*/
   overflow: visible !important; /* Remove scrollbar for printing. */
   font-size:20px!important;
   }
   .modal-dialog {
   /*visibility: visible !important;*/
   overflow: visible !important; /* Remove scrollbar for printing. */
   }
   body{
   position:relative;
   }
   .no-print ,.page-content{
   display:none!important;
   }
   }
</style>
<!-- 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;
           }

           $("#Emp").select2({
               placeholder: "select...",
               ajax: {
                   type: "GET",
                   dataType: "json",
                   url: "AllEmps",
                   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) };
                   },
               },
           });

           $("#Emp").on("select2:select", function (e) {
               console.log("select done", e.params.data);
           });
       });
   });
</script>
<?php $__env->stopPush(); ?>

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