
<!-- Modal ADD CALL -->
<div class="modal fade" id="md_update_vendor" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  {{ Form::open(array('id' => 'form_update_vendor' ,'route' => 'vendorandpayment.update', '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">Update Vendor</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-6">
                    <label class="label-color"> Code: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first('name',":message") }}</small>

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

           <div class="col-sm-6">
                    <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'])}}
            </div>
          </div>

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

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


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


        
              {{Form::Text('cnic', '', ['class' => 'form-control form-control-sm cls_cnic','data-mask' => '00000-0000000-0', 'data-mask-clearifnotmatch' => 'true' ,'placeholder' => '00000-0000000-0'  , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])}}
             </div> 
          
          </div>

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

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

     

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

            <div class="input-group mb-3">
             
              {{Form::Text('contact', '', ['class' => 'form-control form-control-sm  cls_contact', 'placeholder' => 'Contact no' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default','data-mask' => '0000-0000000', 'data-mask-clearifnotmatch' => 'true' ,'placeholder' => '0000-0000000'])}} 

            </div>
          </div>

          

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

            <div class="input-group mb-3">
              <div class="input-group-prepend">
                <span class="input-group-text" id="inputGroup-sizing-default">
                  <i class="fa fa-camera "></i>
                </span>
              </div>
              <input type="file" name="photo" class="form-control form-control-sm btn-xsm">
             <div class="input-group-prepend">
                <span class="input-group-text" id="inputGroup-sizing-default">
                  <i class ="userimage" >PNG,JPG,JPEG</i>
                </span>
              </div>

            </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="update vendor">Update Vendor</button>
      </div>
    </div>
  </div>
  {{ Form::close() }}
</div>
<!-- END MODAL ADD CALL -->