<form class="row g-3 auto-width employee-types" action="{{ route('employee-type.update', $data->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('PUT')
    <!--name -->
    <div class="col-md-12">
        <label class="form-label">Name <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="validationCustomTitle" name="name" aria-describedby="inputGroupPrepend" required  value="{!! $data->name !!}">
        @if ($errors->has('name'))
        <span class="text-danger">{{ $errors->first('name') }}</span>
        @endif
        <span class="text-danger error_name" style="display: none;">This field is required.</span>
    </div>
     <!--code -->
     <div class="col-md-12">
        <label class="form-label">Code <span class="text-danger"><b>*</b></span></label>
        <input readonly type="text" class="form-control" id="validationCustomTitle" name="code" aria-describedby="inputGroupPrepend" required  value="{!! $data->code !!}">
        @if ($errors->has('name'))
        <span class="text-danger">{{ $errors->first('code') }}</span>
        @endif
        <span class="text-danger error_code" style="display: none;">This field is required.</span>
    </div>
</form>
