Skip to content

Commit ca0d2f8

Browse files
committed
fix:maps
1 parent 78c5653 commit ca0d2f8

File tree

1 file changed

+33
-18
lines changed

1 file changed

+33
-18
lines changed

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

+33-18
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,15 @@ class="border bg-light rounded p-3 appointment-type selected appointment">
132132
class="w-100 border shadow rounded mb-2" height="300"
133133
loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe> --}}
134134
<div class="border rounded p-3 map bg-light">
135-
<h5>{{ $maps[0]->location }}<span
136-
class="text-muted fs-6">(selected)</span></h5>
137-
<div id="address-body" class="text-muted mb-0">
138-
{{ $maps[0]->address }}
139-
</div>
135+
@if (count($maps))
136+
<h5>{{ $maps[0]->location }}<span
137+
class="text-muted fs-6">(selected)</span></h5>
138+
<div id="address-body" class="text-muted mb-0">
139+
{{ $maps[0]->address }}
140+
</div>
141+
@else
142+
No Branch Found
143+
@endif
140144
</div>
141145
</div>
142146
@endif
@@ -271,17 +275,25 @@ class="time-label rounded border p-2 {{ $key === 0 && $i === 1 ? 'selected' : 'b
271275
<div class="row">
272276
<div class="col-md-6 selected-location">
273277
<h4>Location</h4>
274-
<iframe src="{{ $maps[0]->src }}"
275-
class="w-100 border shadow rounded mb-2" height="300"
276-
loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
277-
<div class="border rounded p-3 map bg-light">
278-
<h5>{{ $maps[0]->location }}<span
279-
class="text-muted fs-6">(selected)</span></h5>
280-
<div id="address-body" class="text-muted mb-0">
281-
{{ $maps[0]->address }}
278+
@if (count($maps))
279+
<iframe rc="{{ $maps[0]->src }}"
280+
class="w-100 border shadow rounded mb-2" height="300"
281+
loading="lazy"
282+
referrerpolicy="no-referrer-when-downgrade"></iframe>
283+
<div class="border rounded p-3 map bg-light">
284+
<h5>{{ $maps[0]->location }}<span
285+
class="text-muted fs-6">(selected)</span></h5>
286+
<div id="address-body" class="text-muted mb-0">
287+
{{ $maps[0]->address }}
288+
</div>
282289
</div>
283-
</div>
290+
@else
291+
<div class="bg-slate-100 h-full flex items-center justify-center">
292+
No branches found for this expert.
293+
</div>
294+
@endif
284295
</div>
296+
285297
<div class="col-md-6 time-selector">
286298
<h4>What time works best for you?</h4>
287299
<div class="border rounded p-3" style="overflow-y: scroll; height:400px;">
@@ -382,10 +394,13 @@ class="fw-bold">Phone: </span><span
382394
<div class="card">
383395
<div class="card-header fs-5">Office</div>
384396
<div class="card-body">
385-
<p class='fw-bold mb-1' id="location">{{ $maps[0]->location }}
386-
</p>
387-
<div class="text-muted" id="address">{!! $maps[0]->address !!}
388-
</div>
397+
@if (count($maps))
398+
<p class='fw-bold mb-1' id="location">
399+
{{ $maps[0]->location }}
400+
</p>
401+
<div class="text-muted" id="address">{!! $maps[0]->address !!}
402+
</div>
403+
@endif
389404
</div>
390405
</div>
391406
</div>

0 commit comments

Comments
 (0)