updated Dashboard -> Filament_count
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user