<!-- Modal ADD Branch -->
<div class="modal fade" id="document_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">

  <div class="modal-dialog modal-sm" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Booking Documents</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true"></span>
        </button>
      </div>
      <div class="modal-body ">

        <ul class="list-group list-group-flush">
            <?php if(Auth::user()->hasAnyPermission(['All','View Booking Form'])): ?>
          <li class="list-group-item"><a target="_blank" id="booking_form" href="<?php echo e(url('bookingform',['id' => Crypt::encrypt($document_booking->id)])); ?>">Booking Form</a></li>
          <?php endif; ?>

          <?php if(Auth::user()->hasAnyPermission(['All','View Collection Report'])): ?>
             <li class="list-group-item"><a  target="_blank" id="all_receipt" href="<?php echo e(url('allreceipt',['id' => Crypt::encrypt($document_booking->id)])); ?>">Collection Report</a></li>
             <?php endif; ?>
            <?php if(Auth::user()->hasAnyPermission(['All','View Allotment Form']) ): ?>
          <li class="list-group-item"><a target="_blank" id="allotment_form" href="<?php echo e(url('allotmentform',['id' => Crypt::encrypt($document_booking->id)])); ?>">Allotment Form</a></li>
          <?php endif; ?>
            <?php if(Auth::user()->hasAnyPermission(['All','View Payment Plan'])): ?>
          <li class="list-group-item"><a target="_blank"  id="payment_form" href="<?php echo e(url('paymentform',['id' => Crypt::encrypt($document_booking->id)])); ?>">Payment Plan</a></li>
          <?php endif; ?>
            <?php if(Auth::user()->hasAnyPermission(['All','View Customer Summary'])): ?>
          <li class="list-group-item"><a target="_blank"  id="customer_summary" href="<?php echo e(url('customersummary',['id' => Crypt::encrypt($document_booking->id)])); ?>">Customer Summary</a></li>
          <?php endif; ?>
            <?php if(Auth::user()->hasAnyPermission(['All','View Transfer History'])): ?>
          <li class="list-group-item"><a  target="_blank" id="transfer_history" href="<?php echo e(url('transferhistory',['id' => Crypt::encrypt($document_booking->id)])); ?>">Transfer History</a></li>
          <?php endif; ?>
            <?php if(Auth::user()->hasAnyPermission(['All','View Nok Detail'])): ?>
           <li class="list-group-item"><a target="_blank"  id="nok_detail" href="<?php echo e(url('nokdetail',['id' => Crypt::encrypt($document_booking->id)])); ?>">Co-Owner Detail</a></li>
           <?php endif; ?>
             <?php if(Auth::user()->hasAnyPermission(['All','View Nominee Detail'])): ?>
             <li class="list-group-item"><a  target="_blank" id="nominee_detail" href="<?php echo e(url('nomineedetail',['id' => Crypt::encrypt($document_booking->id)])); ?>">Nominee Detail</a></li>
             <?php endif; ?>


        </ul>



      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
      </div>
    </div>
  </div>
</div>
<!-- END MODAL ADD BRANCH -->
<?php /**PATH /var/www/skylite/resources/views/booking/modals/documentmodal.blade.php ENDPATH**/ ?>