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

  <div class="col-sm-12 col-md-6">
         <label class="label-color"> {{ucwords(str_replace('_',' ',EF::branchWhiteLabel()['module']))}}:<i style = "color:red;">*</i></label>

        <small class="form-errors pull-right req" value="*">{{ $errors->first(EF::branchWhiteLabel()['module'],":message") }}</small>

        <div class="input-group mb-3">
        
          @if(isset($current_branch))
            <select readonly="true" id="branch_{{$unique_id}}" class="form-control form-control-sm cls_selection" name="{{EF::branchWhiteLabel()['module']}}">
              
                @foreach($branch as $rows)
                    @if($current_branch === $rows->id)
                      <option value="{{Crypt::encrypt($rows->id)}}">{{$rows->code}} {{$rows->name}}</option>
                    @endif
                @endforeach
            </select>
          @else
            <select id="branch_{{$unique_id}}" onchange="getBookingList(this,'{{$unique_id}}','{{Crypt::encrypt(0)}}')" class="form-control form-control-sm branch_curr cls_selection" name="{{EF::branchWhiteLabel()['module']}}">
              <option value="{{Crypt::encrypt(0)}}">Select {{ucwords(str_replace('_',' ',EF::branchWhiteLabel()['module']))}}</option>
                @foreach($branch as $rows)
                    <option value="{{Crypt::encrypt($rows->id)}}">{{$rows->code}} {{$rows->name}}</option>
                @endforeach
            </select>
          @endif  
          
  
        </div>
  </div>

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

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

      <select onchange="showSubheads(event,this);" name="voucher_list" class="form-control form-control-sm cls_selection voucher_list voucher_type_{{$unique_id}}" >
        {{-- <option value="0">Select</option> --}}
        @php($full_voucher = EF::getFullVoucherList())
        @foreach(EF::getVoucherList() as $rows)
          @if(isset($transaction->id) && $transaction->status == "Approve"))
            <option value="{{$rows}}" >{{$full_voucher[$rows]}}</option>
            @break
          @else
          @if(isset($type) && $type == $rows)
            <option value="{{$rows}}" selected>{{$full_voucher[$rows]}}</option>
            @else
            <option value="{{$rows}}" >{{$full_voucher[$rows]}}</option>
            @endif
          @endif
          

        @endforeach
      </select>

    </div>
  </div>

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

    <div class="input-group mb-3">
    
      <input type="date" name="date" class="form-control form-control-sm cls_date" @if(isset($date))  value="{{date('Y-m-d',strtotime($date))}}" @else value="{{EF::dateHtml(date('Y-m-d'))}}" @endif>

    </div>
  </div>

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

      <label class="label-color"> Type <i style = "color:red;">*</i></label>

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

      <select name="compound_type" class="form-control form-control-sm cls_selection" onchange="compoundType(event,this,'{{$unique_id}}')">
        

        @if(isset($compound))
          @foreach(EF::getVoucherType() as $rows)
            @if($compound == $rows)
            <option value="{{$rows}}" selected>{{$rows}}</option>
            @endif     
          @endforeach
        @else
          <option value="0">Select</option>
          
          @foreach(EF::getVoucherType() as $rows)
        
            <option value="{{$rows}}">{{$rows}}</option>

          @endforeach
        @endif

      </select>

    </div>
  </div>









