Refactor validator stuff and fix variable names in views
This commit is contained in:
@@ -24,7 +24,7 @@ class DashboardComposer
|
||||
*/
|
||||
public function compose(View $view)
|
||||
{
|
||||
$view->with('incidentCount', Incident::notScheduled()->count());
|
||||
$view->with('componentCount', Component::all()->count());
|
||||
$view->withIncidentCount(Incident::notScheduled()->count());
|
||||
$view->withComponentCount(Component::all()->count());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user