<form class="row g-3 auto-width" method="post" action="{{ route('discharge-types.update', $data->id )}}" enctype="multipart/form-data">
    @csrf
    @method('put')
    <div class="col-12">
        <label for="name" class="form-label">Name
            <span class="text-danger"><b>*</b></span>
        </label>
        <input type="text" class="form-control" value="{{ $data->name }}" name="name" aria-describedby="inputGroupPrepend" placeholder="Name">
        <span class="text-danger error_name" style="display:none;">This field is required.</span>
    </div>
    <div class="col-12">
        <label for="code" class="form-label">Code</label>
        <input type="text" class="form-control" value="{{ $data->code }}" name="code" aria-describedby="inputGroupPrepend" placeholder="Code">
    </div>
    <div class="col-12">
        <label for="priority" class="form-label">Priority
            <span class="text-danger"><b>*</b></span>
        </label>
        <input type="text" class="form-control" name="priority" value="{{ $data->priority }}" aria-describedby="inputGroupPrepend" placeholder="Priority">
        <span class="text-danger error_priority" style="display:none;">This field is required.</span>
    </div>
</form>