<?php if(Auth::user()->hasAnyPermission(['All','View Booking Document'])): ?>
           <div class = "col-md-12 col-sm-12">
          <div class= "card card-collapsed">
                        <div class="card-status bg-green">
                      </div>
                               <div class="card-header">             
             <?php if(Auth::user()->hasAnyPermission(['All','Upload Booking Document'])): ?> 
               <button  class="float-right btn btn-sm btn-outline-primary" data-toggle="modal" data-target="#md_upload_booking_document"><i class="fa fa-upload"></i></button> &nbsp;&nbsp;
               <?php endif; ?>

               <h3 class="card-title">Manage Documents</h3>

               <div class="card-options">
               <a onclick="cardCollapseOnce(event,this);" href="#" class="card-options-collapse btn btn-sm btn-outline-primary" >View<i class="fe fe-chevron-up"></i></a>
                      
             </div>

               </div>
               <div class="alert alert-primary card-alert mb-0">
                Documents
               </div>

                      <div class="table-responsive booking-table-height">
                    <table class="table table-hover table-outline table-vcenter text-nowrap card-table">
                      <thead>
                        <tr>
                          
                          <th>Sr #</th>
                          <th>Title</th>
                          <th>Description</th>
                          <th>Document</th>
                          <th style="text-align: center;"><i class="dropdown-icon fa fa-cogs"></i></th>                          
                        </tr>
                      </thead>
                      <tbody>
                          <?php if(isset($document_list)): ?>
                        <?php $__currentLoopData = $document_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                        <tr>
                        <td><?php echo e($loop->iteration); ?></td>
                        <td><?php echo e($rows->title); ?></td>
                        <td><?php echo e($rows->description); ?></td>
                        <td><a href="<?php echo e(EF::getFile($rows->doc_file)); ?>" target="_blank">Click Here</a></td>
                       
                        <?php if(Auth::user()->hasAnyPermission(['All','Remove Booking Document'])): ?>    
                          <td class="text-center"> 
                            <div class="item-action dropdown">
                              <a href="javascript:void(0)" data-toggle="dropdown" class="icon"><i class="fa fa-list-ul"></i></a>
                                <div class="dropdown-menu dropdown-menu-right">
                                   <a href="<?php echo e(route('document.trash',['id' => Crypt::encrypt($rows->id)])); ?>" content ="remove document" class="dropdown-item  cls_delete"><i class="dropdown-icon  fa fa-trash"></i> Remove </a>
                                </div>
                            </div>       
                          </td>
                        <?php endif; ?>
                      </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                        </tbody>
                    </table>
                  </div>

                         </div>                        

                       
                    </div>
                    <?php endif; ?>
<?php /**PATH /var/www/skylite/resources/views/booking/manage_document.blade.php ENDPATH**/ ?>