
<!-- Modal ADD CALL -->
<div class="modal fade" id="md_add_vendor_payment" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  {{ Form::open(array('id' => 'form_add_vendor_payment','route' => 'vendorpayment.store', 'class' => 'cls_form', 'enctype' => 'multipart/form-data')) }}
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Create Vendor Payment</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true"></span>
        </button>
      </div>
      <div class="modal-body ">
        <div class = "card">
          <div class ="card-body form-fieldset">
                               <div class="row">

             <div class="col-sm-12">
                    <label class="label-color"> Vendor Name: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first('vendor_name',":message") }}</small>

            <div class="input-group mb-3">
              {{Form::Text('vendor_name', '', ['class' => 'form-control form-control-sm cls_fullname', 'placeholder' => 'Vendor Name' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default', 'readonly' => true])}}
            </div>
          </div>

          <div class="col-sm-6">
                    <label class="label-color"> Invoice No <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first('invoice_no',":message") }}</small>

            <div class="input-group mb-3">
              {{Form::Text('invoice_no', '', ['class' => 'form-control form-control-sm cls_required', 'placeholder' => 'Invoice No' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])}}
            </div>
          </div>

          <div class="col-sm-6">
            <label class="label-color">Select Payment Option: <i style = "color:red;">*</i></label>
           <small class="form-errors pull-right req" value="*">{{ $errors->first('payment_option',":message") }}</small>
            <div class="input-group mb-3">
              
              @php($type_list = ['selected' =>'Select Payment Option'])

              @foreach(EF::getVendorPaymentType() as $rows)
                @php($type_list += [$rows => $rows])
              @endforeach

             {{Form::select('payment_option', $type_list, '' , array('class' => 'form-control form-control-sm cls_required cls_selection','onChange' => 'paymentOptionWiseSubheadList(event,this,"abc")'))}}
             
            </div>
          </div>

           <div class="col-sm-6">
                     <label class="label-color">Select Debit Account  <i style = "color:red;">*</i></label>
                        <small class="form-errors pull-right req" value="*">{{ $errors->first('debit_account',":message") }} </small>
                   <div class="input-group mb-3">

                    <select name="debit_account" class="form-control form-control-sm fstdropdown-select cls_selection debit_list_abc">
                      <option value="{{Crypt::encrypt(0)}}">Select Debit Account</option>
                     

                    </select>
             
              </div>
                </div>

                 <div class="col-sm-6">
                     <label class="label-color">Select Credit Account  <i style = "color:red;">*</i></label>
                        <small class="form-errors pull-right req" value="*">{{ $errors->first('credit_account',":message") }} </small>
                   <div class="input-group mb-3">

                    <select name="credit_account" class="credit_list_abc form-control form-control-sm fstdropdown-select cls_selection">
                      <option value="{{Crypt::encrypt(0)}}">Select Credit Account</option>
                    
                    </select>
             
              </div>
                </div>

          {{--
          <div class="col-sm-6">
            <label class="label-color">User Type: <i style = "color:red;">*</i></label>
           <small class="form-errors pull-right req" value="*">{{ $errors->first('user_type',":message") }}</small>
            <div class="input-group mb-3">
              
              @php($type_list = [Crypt::encrypt('Selected')=>'Select User Type '])

              @foreach(EF::getUserType() as $rows)
                @php($type_list += [Crypt::encrypt($rows)=> str_replace('Customer','Member',$rows)])
              @endforeach

             {{Form::select('user_type', $type_list, '' , array('class' => 'form-control form-control-sm cls_required cls_selection','onChange' => 'getUserList(event,this)'))}}
             
            </div>
          </div>

          <div class="col-sm-6">
            <label class="label-color">User: <i style = "color:red;">*</i></label>
              <small class="form-errors pull-right req" value="*">{{ $errors->first('user_id',":message") }}</small>

            <div class="input-group mb-3">
         
              @php($user_list = [Crypt::encrypt(0) => 'Select User'])

             

             {{Form::select('user_id', $user_list, '' , array('class' => 'form-control form-control-sm  cls_selection user_list'))}}
             <div id="view_add_button" class="input-group-prepend">  
              </div>
            </div>
          </div>
          --}}
          

          <div class="col-sm-6">
              <label class="label-color">Amount: <i style = "color:red;">*</i></label>

            <div class="input-group mb-3">
          
              <input placeholder="Amount" onkeyup="numberInWordsValue(this,'amount_into_words');" type="number" name="amount" class="form-control form-control-sm">
            </div>
          </div>
              <div class="col-sm-6">
                     <label class="label-color">Amount In Words  </label>
                  <small class="form-errors pull-right req" value="">{{ $errors->first('amount_in_words',":message") }}</small>
                   <div class="input-group mb-3">
             
              <input placeholder="Amount In  Words" type="text" name= "amount_in_words" readonly="" class="form-control-sm form-control amount_into_words" >
            </div>
                </div>

          <div class="col-sm-12">
                    <label class="label-color">Description: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first('description',":message") }}</small>

            <div class="input-group mb-3">
            
                 {{Form::textarea('description', '', ['class' => 'form-control form-control-sm  cls_required', 'placeholder' => 'Description' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default', 'rows' => '3'])}}
            </div>
          </div>

    
          

         

           

          


        </div>
          </div>
        </div>
       
   
         

      </div>
      <div class="modal-footer">
        <input type="hidden" name="vendor">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="submit" class="btn btn-primary cls_submit" content="create vendor payment">Create Vendor Payment</button>
      </div>
    </div>
  </div>
  {{ Form::close() }}
</div>
<!-- END MODAL ADD CALL -->