<form class="row g-3 auto-width primary_unit" method="post" action="{{ route('test-item-options.update', $option->id) }}" id="primary_unit_form">
    @csrf
    @method('post')
    <div class="col-12">
        <label for="description" class="form-label">Option Name<span class="text-danger"><b>*</b></span></label>
        <input type="text" value="{{ $option->name }}" class="form-control name" id="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="description" class="form-label">Style<span class="text-danger"><b>*</b></span>
        </label>
        <select name="style_type_id" class="style_type form-control">
            @foreach($style_types as $style_type)
                <option {{ ($option->style_type_id == $style_type->id) ? 'selected' : '' }} value="{{ $style_type->id }}">{{ $style_type->name }}</option>
            @endforeach
        </select>
        <span class="text-danger error_type" style="display:none;">This field is required.</span>
    </div>
    <div class="col-12">
        <label for="note" class="form-label">Note
        </label>
        <textarea name="note" class="form-control">{{ $option->note }}</textarea>
        <span class="text-danger" style="display:none;">This field is required.</span>
    </div>
</form>