<form class="row g-3 auto-width" method="post" action="{{ route('special-cases.update', $data->id) }}">
    @csrf
    @method('put')
    <div class="col-md-12">
        <label for="name" class="form-label">Special Case Name<span class="text-danger"><b>*</b></span></label>
        <input type="text" value="{{ $data->name }}" class="form-control 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-md-6">
        <label for="name" class="form-label">Code</label>
        <input readonly type="text" value="{{ $data->code }}" class="form-control code" name="code" aria-describedby="inputGroupPrepend" placeholder="code">
    </div>
    <div class="col-md-6">
        <label for="name" class="form-label">Priority</label><span class="text-danger"><b>*</b></span>
        <input type="number" value="{{ $data->priority }}" class="form-control priority" name="priority" aria-describedby="inputGroupPrepend" placeholder="priority" readonly>
        <span class="text-danger error_priority" style="display:none;">This field is required.</span>
    </div>
</form>
