<form class="row g-3 auto-width" action="{{ route('relation-types.store')}}" method="post" enctype='multipart/form-data'>
    @csrf
    <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>
        @if ($errors->has('relation_name'))
        <span class="text-danger">{{ $errors->first('relation_name') }}</span>
        @endif
        <span class="text-danger relation_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 type="text" class="form-control" id="validationCustomTitle" name="code" aria-describedby="inputGroupPrepend" required>
        @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>
