@php($branch_labels = EF::branchWhiteLabel())

 <div class="col-sm-12">

 </div>
 <div class="col-sm-12 col-md-4">
  <small class="form-errors pull-right req" value="">{{ $errors->first('type',":message") }}</small>


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

    <div class="input-group-prepend">
      <span class="input-group-text" id="inputGroup-sizing-default">
        {{ucwords(str_replace('_',' ',$branch_labels['module']))}}
      </span>
    </div>
     <input type="hidden" name="compound_type" value="General">
    <input type="text"  name="branch_name" value="{{$payment->branch->code}} {{$payment->branch->name}}" class="form-control form-control-sm cls_selection branch" value="" readonly="">

    <input class="branch_id" type="hidden" name="{{EF::branchWhiteLabel()['module']}}" value="{{Crypt::encrypt($payment->branch->id)}}">
    

  </div>
</div>

<div class="col-sm-12 col-md-4">

  <small class="form-errors pull-right " value="">{{ $errors->first('voucher',":message") }}</small>

  <div class="input-group mb-4">
    <div class="input-group-prepend">
      <span class="input-group-text" id="inputGroup-sizing-default">
        Voucher
      </span>
    </div>

    @if(isset($approve_transaction))
    <input type="hidden" name="approve_transaction" value="{{$approve_transaction}}">
    @endif
    <select onchange="showSubheads(event,this);" name="voucher_list" class="form-control form-control-sm cls_selection">
      @php($full_voucher = EF::getFullVoucherList())
   
      @php($generic_list = EF::getGenericTableIndex())
    
      
      @foreach(EF::getVoucherList() as $rows)

          <option @if($voucher_type == $rows)  selected @endif value="{{$rows}}">{{$full_voucher[$rows]}}</option>
     
      @endforeach
    </select>

  </div>
</div>

<div class="col-sm-12 col-md-4">
  <small class="form-errors pull-right req" value="*">{{ $errors->first('date',":message") }}</small>
  <div class="input-group mb-3">
    <div class="input-group-prepend">
      <span class="input-group-text" id="inputGroup-sizing-default">
        Date
      </span>
    </div>
    <input value="{{EF::dateHtml(date('Y-m-d'))}}" type="date" name="date" class="form-control form-control-sm cls_date date" >

  </div>
</div>




