updated Dashboard -> Filament_count

This commit is contained in:
2025-03-10 23:09:04 +01:00
parent be19ec16d3
commit 4619da3d1a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ class Dashboard extends Component
{
public function render()
{
$manufacturers = Manufacturer::all()->where('filament_count', '<', 0);
$manufacturers = Manufacturer::all()->sortBy('filament_count')->reverse();
return view('livewire.dashboard', compact('manufacturers'));
}
}
@@ -16,6 +16,7 @@
</h3>
@foreach ($manufacturers as $manufacturer)
{{ $manufacturer->name }}
{{ $manufacturer->filament_count }}
@endforeach
</x-card>
</div>