<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
use Bookly\Backend\Components\Controls\Buttons;

Buttons::render( 'bookly-schedule-back', 'btn-default', __( 'Back', 'bookly' ), array( 'ng-click' => 'form.screen = \'main\'', 'ng-show' => 'form.screen == \'schedule\'' ) );
Buttons::render( 'bookly-schedule', 'btn-success', __( 'Next', 'bookly' ),
    array(
        'ng-click'    => 'schSchedule($event)',
        'ng-show'     => '!form.skip_date && form.repeat.enabled && form.screen == \'main\'',
        'ng-disabled' => '!form.service || (!form.service.id && !form.custom_service_name) || form.customers.length == 0 || (!form.date && !form.skip_date)',
    ) );