<form class="g-3 row auto-width book_classes" action="{{route('book_classes.store')}}" method="POST" enctype='multipart/form-data'>
  <!-- For validation comment on -->
  @csrf
  <div class="col-md-12">
    <label for="class_name" class="form-label">Class 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="class_name" id="class_name" placeholder="Class Name" required="">
      @if ($errors->has('class_name'))
      <span class="text-danger">{{ $errors->first('class_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-book"></i></span>
      <input type="text" class="form-control" name="code" id="code" placeholder="Code" required="">
      @if ($errors->has('code'))
      <span class="text-danger">{{ $errors->first('code') }}</span>
      @endif
    </div>
  </div>

  <div class="col-md-12">
    <label for="class_no" class="form-label">Class No <span class="text-danger"><b>*</b></span></label>
    <div class="input-group has-validation"> <span class="input-group-text" id="inputGroupPrepend2"><i class="bi bi-book"></i></span>
      <input type="text" class="form-control" name="class_no" id="class_no" placeholder="Class No" required="">
      @if ($errors->has('class_no'))
      <span class="text-danger">{{ $errors->first('class_no') }}</span>
      @endif
    </div>
  </div>
</form>
