<form class="row g-3 auto-width" action="{{ route('product-features.update', $product_features->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('patch')
    {{-- module --}}
    <div class="col-md-6">
        <div>
            <label for="module_code" class="form-label">Module <span class="text-danger"><b>*</b></span></label>
        </div>
        <div class="input-group">
            <select class="single-select form-control" name="module_code">
                @foreach ($module_code as $list)
                    <option value="{{ $list->id }}" {{ $list->id == $product_features->module_code ? 'selected' : '' }}>
                        {{ $list->menu_name }}
                @endforeach
            </select>
        </div>
        <span class="text-danger error_module_code" style="display: none;">This field is required.</span>
    </div>
    {{-- Product Code --}}
    <div class="col-md-6">
        <div>
            <label for="product_code" class="form-label">Product Code <span class="text-danger"><b>*</b></span></label>
        </div>
        <div class="input-group">
            <select class="single-select form-control" name="product_code">
                @foreach ($product_code as $list)
                    <option value="{{ $list->id }}" {{ ($list->id == $product_features->product_code) ? 'selected' : '' }}>
                        {{ $list->shortcode }}
                    </option>
                @endforeach
            </select>
        </div>
        <span class="text-danger error_product_code" style="display: none;">This field is required.</span>
    </div>
    {{-- Details --}}
    <div class="col-md-12">
        <label for="details" class="form-label">Details</label>
        <input type="number" class="form-control" id="details" name="details" aria-describedby="inputGroupPrepend" required value="{{$product_features->details}}">
    </div>
</form>