<form class="g-3 row auto-width" action="{{route('book_formats.update',$bookformate->id)}}" method="POST" enctype='multipart/form-data'>
  <!-- For validation comment on -->
  @csrf
  @method('PUT')
  <div class="col-md-12">
    <label for="formate_name" class="form-label">Book Format Name <span class="text-danger"><b>*</b></span></label>
    <div class="input-group has-validation"> <span class="input-group-text" id="inputGroupPrepend"><i class="bi bi-book"></i></span>
      <input type="text" class="form-control" name="formate_name" id="formate_name" placeholder="Book Format Name" value="{{$bookformate->formate_name}}" required="">
      @if ($errors->has('formate_name'))
      <span class="text-danger">{{ $errors->first('formate_name') }}</span>
      @endif
    </div>
  </div>
  <div class="col-md-12">
    <label for="code" class="form-label">Code <span class="text-danger"><b>*</b></span></label>
    <div class="input-group has-validation"> <span class="input-group-text" id="inputGroupPrepend"><i class="bi bi-map"></i></span>
      <input type="text" class="form-control" disabled name="code" id="code" placeholder="Code" required="" value="{{$bookformate->code}}">
      @if ($errors->has('code'))
      <span class="text-danger">{{ $errors->first('code') }}</span>
      @endif
    </div>
  </div>
</form>
