<div class="row">

    <div class="col-sm-4">
      <label class="label-color"> Select Type: </label>

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

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

          <input type="hidden" name="generic_type[]" value="{{Crypt::encrypt($generic_type->id)}}">

          <input readonly="" class="form-control form-control-sm" type="text" name="" value="{{$generic_type->name}}">

      </div>
    </div>


    <div class="col-sm-4" @if(!isset($booking->id)) style="display:none;" @endif>
      <label class="label-color"> Booking: </label>

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

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

          <input type="hidden" name="booking[]" @if(isset($booking->id)) value="{{Crypt::encrypt($booking->id)}}" @else value="{{Crypt::encrypt(0)}}" @endif >

          <input readonly="" class="form-control form-control-sm" @isset($booking->id)  value="{{$booking->ms}} ({{EF::showPlotFormat($booking->plot)}})" @endisset>

      </div>
    </div>


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

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

            <input type="hidden" name="payment[]" value="{{Crypt::encrypt($payment->id)}}">
            <input type="text" readonly="" value="{{$payment->description}}" class="form-control form-control-sm">

          </div>
      </div>

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

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

            <input type="text" name="amount[]" readonly="" value="{{$payment->amount}}" class="form-control form-control-sm">

          </div>
      </div>



</div>

<div class="row">
<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">

<input type="text" readonly="" value="{{$payment->role->name}}" class="form-control form-control-sm">

  </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',":message") }}</small>

    <div class="input-group mb-3">
  <input type="hidden" name="user[]" value="{{Crypt::encrypt($payment->user->id)}}">
  <input type="text" readonly="" value="{{$payment->user->name}}" class="form-control form-control-sm">


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


