/** * get Index * * @param Business $business Business to get agenda * @return Response Rendered view of Business agenda */ public function getIndex(Business $business) { $this->log->info("BusinessAgendaController: getIndex: businessId:{$business->id}"); $appointments = $business->bookings()->with('contact')->with('business')->with('service')->unserved()->orderBy('start_at')->get(); return view('manager.businesses.appointments.' . $business->strategy . '.index', compact('business', 'appointments')); }