<form class="row g-3 auto-width" method="post" action="{{ route('body-vitals.update', $data->id) }}">
    @csrf
    @method('put')
    <div class="col-md-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-md-6">
        <label for="min_value" class="form-label">Min Value</label>
        <input type="number" class="form-control" value="{{ $data->min_value }}" name="min_value" aria-describedby="inputGroupPrepend" placeholder="Min value">
        <span class="text-danger error_min_value" style="display:none;">Min value should be less than Max value.</span>
    </div>
    <div class="col-md-6">
        <label for="max_value" class="form-label">Max Value</label>
        <input type="text" class="form-control" value="{{ $data->max_value }}" name="max_value" aria-describedby="inputGroupPrepend" placeholder="Max value">
    </div>
    <div class="col-md-6">
        <label for="short_name" class="form-label">Short name</label>
        <input type="text" class="form-control" name="short_name" aria-describedby="inputGroupPrepend" placeholder="Short name">
    </div>
    <div class="col-md-6">
        <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-md-6">
        <label for="unit" class="form-label">Unit</label>
        <input type="text" class="form-control" name="unit" aria-describedby="inputGroupPrepend" placeholder="Unit">
    </div>
    <div class="col-md-6">
        <label for="priority" class="form-label">Priority<span class="text-danger"><b>*</b></span></label>
        <input type="number" value="{{ $data->priority }}" class="form-control" name="priority" aria-describedby="inputGroupPrepend">
        <span class="text-danger error_priority" style="display:none;">This field is required.</span>
    </div>
</form>