From 4619da3d1afdb3a053f21e760985b948d938a76e Mon Sep 17 00:00:00 2001 From: iridium34 Date: Mon, 10 Mar 2025 23:09:04 +0100 Subject: [PATCH] updated Dashboard -> Filament_count --- app/Livewire/Dashboard.php | 2 +- resources/views/livewire/dashboard.blade.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Livewire/Dashboard.php b/app/Livewire/Dashboard.php index 9f2c429..72b15ab 100644 --- a/app/Livewire/Dashboard.php +++ b/app/Livewire/Dashboard.php @@ -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')); } } diff --git a/resources/views/livewire/dashboard.blade.php b/resources/views/livewire/dashboard.blade.php index 14791a4..2dce8f0 100644 --- a/resources/views/livewire/dashboard.blade.php +++ b/resources/views/livewire/dashboard.blade.php @@ -16,6 +16,7 @@ @foreach ($manufacturers as $manufacturer) {{ $manufacturer->name }} + {{ $manufacturer->filament_count }} @endforeach