
<div class="modal fade" id="md_add_branch" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  {{ Form::open(array('route' => 'branch.store', 'class' => 'cls_form', 'id' => 'form_add_branch')) }}
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Add {{ucwords(str_replace('_',' ',$branch_labels['module']))}}</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"> {{ucwords(str_replace('_',' ',$branch_labels['start_date']))}}: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first($branch_labels['start_date'],":message") }}</small>
            <div class="input-group mb-3">
             
              {{Form::date($branch_labels['start_date'], '', ['class' => 'form-control form-control-sm  cls_date', 'placeholder' => ucwords(str_replace('_',' ',$branch_labels['start_date'])) , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default','id' => 'form_add_branch'])}}
            </div>
          </div>

          <div class="col-sm-6">
               <label class="label-color"> {{ucwords(str_replace('_',' ',$branch_labels['end_date']))}}: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first($branch_labels['end_date'],":message") }}</small>
            <div class="input-group mb-3">
             
              {{Form::date($branch_labels['end_date'], '', ['class' => 'form-control form-control-sm  cls_date', 'placeholder' => ucwords(str_replace('_',' ',$branch_labels['end_date'])) , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default','id' => 'form_add_branch'])}}
            </div>
          </div>

          <div class="col-sm-12">
               <label class="label-color"> {{ucwords(str_replace('_',' ',$branch_labels['code']))}}: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first($branch_labels['code'],":message") }}</small>
            <div class="input-group mb-3">
             
              {{Form::Text($branch_labels['code'], '', ['class' => 'form-control form-control-sm  cls_required', 'placeholder' => ucwords(str_replace('_',' ',$branch_labels['code'])) , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default','id' => 'form_add_branch'])}}
            </div>
          </div>

          <div class="col-sm-12">
               <label class="label-color"> {{ucwords(str_replace('_',' ',$branch_labels['name']))}}: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first($branch_labels['name'],":message") }}</small>

            <div class="input-group mb-3">
            
              {{Form::Text($branch_labels['name'], '', ['class' => 'form-control form-control-sm  cls_alpha_numeric', 'placeholder' => ucwords(str_replace('_',' ',$branch_labels['name'])) , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])}}
            </div>
          </div>

          <div class="col-sm-12">
               <label class="label-color"> {{ucwords(str_replace('_',' ',$branch_labels['city']))}}: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first($branch_labels['city'],":message") }}</small>

            <div class="input-group mb-3">
            

            @php($city_list = [])

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

              {{Form::select($branch_labels['city'],$city_list,'Islamabad', ['class' => 'form-control form-control-sm  cls_required', 'placeholder' => ucwords(str_replace('_',' ',$branch_labels['city'])) , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default', 'rows' => '4'])}}
            </div>
          </div>

          <div class="col-sm-12">
               <label class="label-color"> {{ucwords(str_replace('_',' ',$branch_labels['location']))}}: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first($branch_labels['location'],":message") }}</small>

            <div class="input-group mb-3">
            
              {{Form::Textarea($branch_labels['location'], '', ['class' => 'form-control form-control-sm  cls_required', 'placeholder' => ucwords(str_replace('_',' ',$branch_labels['location'])) , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default', 'rows' => '4'])}}
            </div>
          </div>

          
{{--
          <div class="col-sm-6">
               <label class="label-color"> {{ucwords(str_replace('_',' ',$branch_labels['email']))}}: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first($branch_labels['email'],":message") }}</small>

            <div class="input-group mb-3">
            
              {{Form::Email($branch_labels['email'], '', ['class' => 'form-control form-control-sm  cls_email', 'placeholder' => ucwords(str_replace('_',' ',$branch_labels['email'])) , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])}}
            </div>
          </div>

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

            <div class="input-group mb-3">
             
              {{Form::Text($branch_labels['contact'], '', ['class' => 'form-control form-control-sm  cls_contact', 'placeholder' => ucwords(str_replace('_',' ',$branch_labels['contact'])) , '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"> {{ucwords(str_replace('_',' ',$branch_labels['commission']))}}: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first($branch_labels['commission'],":message") }}</small>

            <div class="input-group mb-3">
             
              {{Form::Number($branch_labels['commission'], '', ['class' => 'form-control form-control-sm  cls_branch_commission', 'placeholder' => ucwords(str_replace('_',' ',$branch_labels['module'])).' Commission [1 - 100]', 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])}}
            </div>
          </div>
--}}
        </div>
          </div>
        </div> 
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="submit" class="btn btn-primary cls_submit" content=" add {{$branch_labels['module']}} ">Add {{ucwords(str_replace('_',' ',$branch_labels['module']))}}</button>
      </div>
    </div>
  </div>
  {{ Form::close() }}
</div>