<?php include_once PUBLIC_PATH. '/files_to_include/header_content.php'; ?>
<div class="main-content-wrap sidenav-open d-flex flex-column">
            <!-- ============ Body content start ============= -->
            <div class="main-content">
                
               
                <div class="row">
                    <div class="col-md-11">
                       
                    </div>
                    <div class="col-md-1">
                        
                        <button id="print" class=" float i-File-Word " type="button">
                             
                    <span class="ul-btn__icon"></span>
                </button>
                    </div>
                </div>
                &nbsp;
                 
                <div class="table-responsive">
                                    <table class="display table table-striped table-bordered" id="hidden_column_table" style="width:100%">
                                        <thead>
                                            <tr>
                                           <th>ID</th>
                                           <th>CONSOMMABLE</th>
                                            <th>QUANTITE</th>
                                            <th>EMPLACEMENT</th>
                                           
                                            </tr>
                                        </thead>
                                        <tbody>
                               
                                        </tbody>
                                        <tfoot>
                                             <tr>
                                           <th>ID</th>
                                           <th>CONSOMMABLE</th>
                                            <th>QUANTITE</th>
                                            <th>EMPLACEMENT</th>
                                            </tr>
                                        </tfoot>
                                    </table>
                </div>
            </div><!-- Footer Start -->
            <div class="flex-grow-1"></div>
            <div class="app-footer">
                <div class="footer-bottom border-top pt-3 d-flex flex-column flex-sm-row align-items-center">
                    <span class="flex-grow-1"></span>
                    <div class="d-flex align-items-center">
                        <img class="logo" src="<?php echo $this->baseUrl('images/logo.png');?>" alt="">
                        <div>
                            <p class="m-0">&copy; 2021 ASLM</p>
                            <p class="m-0">All rights reserved</p>
                        </div>
                    </div>
                </div>
            </div>
            <!-- fotter end -->
        </div>
    </div><!-- ============ Search UI Start ============= -->
    
    <!-- ============ Search UI End ============= -->
    <script src="<?php echo $this->baseUrl('js/plugins/jquery-3.3.1.min.js');?>"></script>
     <script src="<?php echo $this->baseUrl('js/plugins/bootstrap.bundle.min.js');?>"></script>
    <script src="<?php echo $this->baseUrl('js/plugins/perfect-scrollbar.min.js');?>"></script>
    <script src="<?php echo $this->baseUrl('js/scripts/script.min.js');?>"></script>
    <script src="<?php echo $this->baseUrl('js/scripts/sidebar.large.script.min.js');?>"></script>
    <script src="<?php echo $this->baseUrl('js/plugins/datatables.min.js');?>"></script>
    <script src="<?php echo $this->baseUrl('js/plugins/loadingoverlay.min.js');?>"></script>
    <script src="<?php echo $this->baseUrl('js/plugins/sweetalert2.min.js');?>"></script>
    <script src="<?php echo $this->baseUrl('script/jquery.toast.min.js');?>"></script>
     <script  src="<?php echo $this->baseUrl('script/jquery.autocomplete.js'); ?>"></script>
     <script src="<?php echo $this->baseUrl("script/jquery-confirm.min.js"); ?>"></script>
    <script type="text/javascript">
          $(document).ajaxSend(function(event, jqxhr, settings){
            $.LoadingOverlay("show");
        });
        
        $(document).ajaxComplete(function(event, jqxhr, settings){
            $.LoadingOverlay("hide");
        });
        var contenuFourniture = {};
        contenuFourniture.total = 0;
        $('#edit').hide();
        actions = JSON.parse($('#listRole').val());
        console.log(actions)
        var valeur = false;
        actionUser = actions.filter((auth) => auth.controller === 'Sortie')
        $.each( actionUser, function( key, value ) {
            if(value.action.includes("add")){
                 valeur = value.action.includes("add");
                 return valeur
            }
            
        });
        if(valeur==false){
                $('#addSortie').remove();
         }
       
   var sujetEdition='';
       
       
        
     var myTable =    $('#hidden_column_table').DataTable({
                    responsive: true,
                     "language": {
                                    "zeroRecords": " aucune donnée disponible ",
                                    "infoEmpty": "Aucune donnée disponible",
                                    "search": "recherche",
                                    "infoFiltered": ""
                                },
                    "processing" : true,
                    "serverSide" : true,
                     "iDisplayLength" :100,
                    "ajax" : {
                                         url : "<?php echo $this->url(array('controller' => 'Stock', 'action' => 'datatable')); ?>",
                                         type : "POST"
                             },
                             columnDefs: [
        { targets: [1,2,3], visible: true},
        { targets: '_all', visible: false }
    ],
                   
                });
       
 

        
    </script>
</body>

</html>