<!-- 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">
            @if(Auth::user()->hasAnyPermission(['All','View Booking Form']))
          <li class="list-group-item"><a target="_blank" id="booking_form" href="{{url('bookingform',['id' => Crypt::encrypt($document_booking->id)])}}">Booking Form</a></li>
          @endif

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