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