* @author Graham Campbell */ class DashboardComposer { /** * Bind data to the view. * * @param \Illuminate\Contracts\View\View $view * * @return void */ public function compose(View $view) { $view->withComponentCount(Component::count()); $view->withIncidentCount(Incident::count()); $view->withIncidentTemplateCount(IncidentTemplate::count()); $view->withScheduleCount(Schedule::count()); $view->withSubscriberCount(Subscriber::isVerified()->count()); $view->withIsWriteable(is_writable(app()->bootstrapPath().'/cachet')); } }