| @@ -12,19 +12,23 @@ | ||
| 12 | 12 | if (!defined('FLUENT_BOOKING_PRO_DIR_FILE')) { |
| 13 | 13 | return new \WP_Error('pro_plugin_required', __('Pro plugin is required for this event.', 'fluent-booking')); |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | - if ($calendarEvent->isTeamEvent()) { | |
| 17 | - return new \FluentBookingPro\App\Services\TeamTimeSlotService($calendar, $calendarEvent); | |
| 16 | + if ($calendarEvent->isRoundRobin()) { | |
| 17 | + return new \FluentBookingPro\App\Services\RoundRobinTimeSlotService($calendar, $calendarEvent); | |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | + if ($calendarEvent->isCollective()) { | |
| 21 | + return new \FluentBookingPro\App\Services\CollectiveTimeSlotService($calendar, $calendarEvent); | |
| 22 | + } | |
| 23 | + | |
| 20 | 24 | if ($calendarEvent->isOneOffEvent()) { |
| 21 | 25 | return new \FluentBookingPro\App\Modules\SingleEvent\SingleTimeSlotService($calendar, $calendarEvent); |
| 22 | 26 | } |
| 23 | - } | |
| 24 | 27 | |
| 25 | - if ($calendarEvent->allowMultiBooking()) { | |
| 26 | - return new \FluentBookingPro\App\Services\MultiTimeSlotService($calendar, $calendarEvent); | |
| 28 | + if ($calendarEvent->allowMultiBooking()) { | |
| 29 | + return new \FluentBookingPro\App\Services\MultiTimeSlotService($calendar, $calendarEvent); | |
| 30 | + } | |
| 27 | 31 | } |
| 28 | 32 | |
| 29 | 33 | return new TimeSlotService($calendar, $calendarEvent); |
| 30 | 34 | } |