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