|
22 | 22 | </div>
|
23 | 23 | <div class="col-md-6">
|
24 | 24 | <div class="flex items-center gap-2 mt-3">
|
| 25 | + <input type="hidden" name="dist_only" value="1"> |
25 | 26 | <label for="branch-thana">District: </label>
|
26 |
| - <select class="grow hx-include" hx-include=".hx-include" |
27 |
| - hx-get="{{ route('office') }}" |
28 |
| - hx-vals="{'dist_only': 'true'}" |
29 |
| - hx-select="#hx-filter-target" |
| 27 | + <select class="grow hx-include" hx-include=".hx-include, [name='dist_only']" |
| 28 | + hx-get="{{ route('office') }}" hx-select="#hx-filter-target" |
30 | 29 | hx-target="#hx-filter-target" hx-swap="outerHTML" label="Select District"
|
31 | 30 | id="branch-district" name="district" placeholder="Select District...">
|
32 | 31 | <option selected disabled value="">Select a district</option>
|
|
40 | 39 | <div class="col-md-6">
|
41 | 40 | <div class="mb-2 flex items-center gap-2 mt-3" id="thanas" hx-swap-oob="true">
|
42 | 41 | <label for="branch-thana">Thana: </label>
|
43 |
| - <select class="grow hx-include" hx-include=".hx-include" |
44 |
| - hx-get={{ route('office') }} hx-select="#hx-filter-target" |
45 |
| - hx-target="#hx-filter-target" hx-swap="outerHTML" id="branch-thana" name="thana" |
46 |
| - placeholder="Select Thana..."> |
| 42 | + <select class="grow hx-include" hx-include=".hx-include" hx-get={{ route('office') }} |
| 43 | + hx-select="#hx-filter-target" hx-target="#hx-filter-target" hx-swap="outerHTML" |
| 44 | + id="branch-thana" name="thana" placeholder="Select Thana..."> |
47 | 45 | <option selected disabled value="">Select a thana</option>
|
48 | 46 | @foreach ($thanas as $thana)
|
49 | 47 | <option value="{{ trim($thana) }}" @selected(trim($thana) == request()->query('thana') || trim($thana) == 'Karnaphuli')>
|
@@ -87,7 +85,8 @@ class="text-dark fw-bold"
|
87 | 85 | </div>
|
88 | 86 | </div>
|
89 | 87 | @else
|
90 |
| - <div class="col-12 p-10 rounded bg-gray-200 text-center -ml-3">No branches found for selected location</div> |
| 88 | + <div class="col-12 p-10 rounded bg-gray-200 text-center -ml-3">No branches found for selected |
| 89 | + location</div> |
91 | 90 | @endif
|
92 | 91 | </div>
|
93 | 92 | </div>
|
|
0 commit comments