Add Search on Selection

This commit is contained in:
Daeng Deni Mardaeni 2024-08-09 16:58:43 +07:00
parent 37e8cc43ca
commit d3e9339c9a

View File

@ -29,7 +29,7 @@
Province
</label>
<div class="flex flex-wrap items-baseline w-full">
<select name="province_code" class="select w-full @error('province_id') border-danger @enderror">
<select name="province_code" class="select tomselect w-full @error('province_id') border-danger @enderror">
@foreach($provinces as $province)
@if(isset($city))
<option value="{{ $province->code }}" {{ isset($city->province_code) && $city->province_code == $province->code?'selected' : '' }}>