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