canDo('snagging.schedule.approve')) { return true; } return false; } /** * Determine if the given user can approve the given schedule. * * @param Authenticatable $user * * @return bool */ public function submit(Authenticatable $user, Schedule $schedule) { if ($user->canDo('snagging.schedule.submit')) { return true; } return false; } /** * Determine if the given user can approve the given schedule. * * @param Authenticatable $user * * @return bool */ public function publish(Authenticatable $user, Schedule $schedule) { if ($user->canDo('snagging.schedule.publish')) { return true; } return false; } /** * Determine if the given user can approve the given schedule. * * @param Authenticatable $user * * @return bool */ public function unpublish(Authenticatable $user, Schedule $schedule) { if ($user->canDo('snagging.schedule.unpublish')) { return true; } return false; } /** * Determine if the given user can approve the given schedule. * * @param Authenticatable $user * * @return bool */ public function archive(Authenticatable $user, Schedule $schedule) { if ($user->canDo('snagging.schedule.archive')) { return true; } return false; } /** * Determine if the given user can approve the given schedule. * * @param Authenticatable $user * * @return bool */ public function unarchive(Authenticatable $user, Schedule $schedule) { if ($user->canDo('snagging.schedule.unarchive')) { return true; } return false; } /** * Determine if the given user can approve the given schedule. * * @param Authenticatable $user * * @return bool */ public function reject(Authenticatable $user, Schedule $schedule) { if ($user->canDo('snagging.schedule.reject')) { return true; } return false; } }