Added locations and providers show on empty

Added locations and providers show on empty
This commit is contained in:
cp6 2022-03-03 00:03:42 +11:00
parent 1f33eebf3c
commit 9c240c5c52
2 changed files with 12 additions and 0 deletions

View File

@ -18,6 +18,7 @@
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-borderless text-nowrap"> <table class="table table-borderless text-nowrap">
<tbody> <tbody>
@if(!empty($data))
@foreach($data as $l) @foreach($data as $l)
<tr> <tr>
<td class="py-2 text-muted"> <td class="py-2 text-muted">
@ -40,6 +41,11 @@
</td> </td>
</tr> </tr>
@endforeach @endforeach
@else
<tr>
<td class="px-4 py-2 text-muted" colspan="3">No services found for {{ $location ->name }}</td>
</tr>
@endif
</tbody> </tbody>
</table> </table>
</div> </div>

View File

@ -18,6 +18,7 @@
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-borderless text-nowrap"> <table class="table table-borderless text-nowrap">
<tbody> <tbody>
@if(!empty($data))
@foreach($data as $l) @foreach($data as $l)
<tr> <tr>
<td class="py-2 text-muted"> <td class="py-2 text-muted">
@ -40,6 +41,11 @@
</td> </td>
</tr> </tr>
@endforeach @endforeach
@else
<tr>
<td class="px-4 py-2 text-muted" colspan="3">No services found for {{ $provider->name }}</td>
</tr>
@endif
</tbody> </tbody>
</table> </table>
</div> </div>