Skip to content

Commit 0f1d7f4

Browse files
committed
fix: thana selected
1 parent 64854da commit 0f1d7f4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

resources/views/frontend/pages/appointment/makeAppointment.blade.php

+2
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ class="text-danger">*</span></label>
156156
label="Select District" id="branch-district"
157157
name="branch-district" required
158158
placeholder="Select District...">
159+
<option selected disabled>Select a district</option>
159160
@foreach ($branchDistricts as $district)
160161
<option value="{{ $district }}"
161162
@selected(trim($district) == 'Chattogram')>{{ trim($district) }}
@@ -174,6 +175,7 @@ class="text-danger">*</span></label>
174175
hx-target="#hx-filter-target" hx-swap="outerHTML"
175176
id="branch-thana" name="branch-thana" required
176177
placeholder="Select Thana...">
178+
<option selected disabled>Select a thana</option>
177179
@foreach ($branchThanas as $thana)
178180
<option value="{{ trim($thana) }}"
179181
@selected(trim($thana) == request()->query('branch-thana'))>{{ $thana }}

resources/views/frontend/pages/office.blade.php

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
hx-get="{{ route('office') }}" hx-select="#hx-filter-target"
2828
hx-target="#hx-filter-target" hx-swap="outerHTML" label="Select District"
2929
id="branch-district" name="district" placeholder="Select District...">
30+
<option selected disabled>Select a district</option>
3031
@foreach ($districts as $district)
3132
<option value="{{ $district }}" @selected(trim($district) == request()->query('district') || trim($district) == 'Chattogram')>
3233
{{ trim($district) }}</option>
@@ -41,6 +42,7 @@
4142
hx-get={{ route('office') }} hx-select="#hx-filter-target"
4243
hx-target="#hx-filter-target" hx-swap="outerHTML" id="branch-thana" name="thana"
4344
placeholder="Select Thana...">
45+
<option selected disabled>Select a thana</option>
4446
@foreach ($thanas as $thana)
4547
<option value="{{ trim($thana) }}" @selected(trim($thana) == request()->query('thana') || trim($thana) == 'Karnaphuli')>
4648
{{ $thana }}</option>

0 commit comments

Comments
 (0)