/** * Bind data to the view. * * @param \Illuminate\Contracts\View\View $view * * @return void */ public function compose(View $view) { $view->withIncidentCount(Incident::notScheduled()->count()); $view->withIncidentTemplateCount(IncidentTemplate::count()); $view->withComponentCount(Component::all()->count()); $view->withSubscriberCount(Subscriber::isVerified()->count()); }
/** * Bind data to the view. * * @param \Illuminate\Contracts\View\View $view */ public function compose(View $view) { $view->withIncidentCount(Incident::notScheduled()->count()); $view->withComponentCount(Component::all()->count()); }