@@ -132,11 +132,15 @@ class="border bg-light rounded p-3 appointment-type selected appointment">
132
132
class="w-100 border shadow rounded mb-2" height="300"
133
133
loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe> --}}
134
134
<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
140
144
</div >
141
145
</div >
142
146
@endif
@@ -271,17 +275,25 @@ class="time-label rounded border p-2 {{ $key === 0 && $i === 1 ? 'selected' : 'b
271
275
<div class =" row" >
272
276
<div class =" col-md-6 selected-location" >
273
277
<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 >
282
289
</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
284
295
</div >
296
+
285
297
<div class =" col-md-6 time-selector" >
286
298
<h4 >What time works best for you?</h4 >
287
299
<div class =" border rounded p-3" style =" overflow-y : scroll ; height :400px ;" >
@@ -382,10 +394,13 @@ class="fw-bold">Phone: </span><span
382
394
<div class =" card" >
383
395
<div class =" card-header fs-5" >Office</div >
384
396
<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
389
404
</div >
390
405
</div >
391
406
</div >
0 commit comments