Skip to content

Commit

Permalink
fix(no_results): Add missing no results
Browse files Browse the repository at this point in the history
  • Loading branch information
herrtxbias committed Mar 15, 2021
1 parent a2d7640 commit d7f19e9
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</x-table.heading>
</x-slot>
<x-slot name="body">
@foreach($maintenances as $maintenance)
@forelse($maintenances as $maintenance)
<x-table.row wire:loading.class.delay="opacity-50">
<x-table.cell>{{ $maintenance->id }}</x-table.cell>
<x-table.cell>{{ $maintenance->title }}</x-table.cell>
Expand All @@ -48,7 +48,15 @@
@endcan
</x-table.cell>
</x-table.row>
@endforeach
@empty
<x-table.row>
<x-table.cell colspan="6">
<div class="flex justify-center items-center">
<span class="font-medium py-8 text-gray-400 text-xl">No results...</span>
</div>
</x-table.cell>
</x-table.row>
@endforelse
</x-slot>
</x-table>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<x-table.heading></x-table.heading>
</x-slot>
<x-slot name="body">
@foreach($old_maintenances as $incident)
@forelse($old_maintenances as $incident)
<x-table.row wire:loading.class.delay="opacity-50">
<x-table.cell>{{ $incident->id }}</x-table.cell>
<x-table.cell>{{ $incident->title }}</x-table.cell>
Expand All @@ -37,7 +37,15 @@
@endcan
</x-table.cell>
</x-table.row>
@endforeach
@empty
<x-table.row>
<x-table.cell colspan="6">
<div class="flex justify-center items-center">
<span class="font-medium py-8 text-gray-400 text-xl">No results...</span>
</div>
</x-table.cell>
</x-table.row>
@endforelse
</x-slot>
</x-table>

Expand Down
12 changes: 10 additions & 2 deletions resources/views/livewire/dashboard/metrics/metrics.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</x-table.heading>
</x-slot>
<x-slot name="body">
@foreach($metrics as $metric)
@forelse($metrics as $metric)
<x-table.row wire:loading.class.delay="opacity-50">
<x-table.cell>{{ $metric->id }}</x-table.cell>
<x-table.cell>{{ $metric->title }}</x-table.cell>
Expand All @@ -43,7 +43,15 @@
@endcan
</x-table.cell>
</x-table.row>
@endforeach
@empty
<x-table.row>
<x-table.cell colspan="6">
<div class="flex justify-center items-center">
<span class="font-medium py-8 text-gray-400 text-xl">No results...</span>
</div>
</x-table.cell>
</x-table.row>
@endforelse
</x-slot>
</x-table>

Expand Down

0 comments on commit d7f19e9

Please sign in to comment.