<?php
if (! class_exists ( 'DTBooking_Cs_Sc_ReservationForm' ) ) {

    class DTBooking_Cs_Sc_ReservationForm {

        function DTBooking_sc_ReservationForm() {

			$options = array(
			  'name'      => 'dt_sc_reservation_form',
			  'title'     => esc_html__('Reservaton Form', 'ultimate-booking-pro'),
			  'fields'    => array(

				array(
				  'id'    => 'title',
				  'type'  => 'text',
				  'title' => esc_html__( 'Title', 'ultimate-booking-pro' )
				),
				array(
				  'id'          => 'serviceids',
				  'type'        => 'select',
				  'title'       => esc_html__('Service IDs', 'ultimate-booking-pro'),
				  'options'     => 'posts',
				  'query_args'  => array(
					'post_type'	=> 'dt_service'
				  ),
				  'attributes' => array(
					'multiple' 		   => 'only-key',
					'data-placeholder' => esc_html__('Select Some Services', 'ultimate-booking-pro'),
					'style'            => 'width: 200px;'
				  ),
				  'class' 		=> 'chosen',
				  'desc'       => '<div class="cs-text-muted">'.esc_html__('Enter service name & pick.', 'ultimate-booking-pro').'</div>',
				),
				array(
				  'id'          => 'staffids',
				  'type'        => 'select',
				  'title'       => esc_html__('Staff IDs', 'ultimate-booking-pro'),
				  'options'     => 'posts',
				  'query_args'  => array(
					'post_type'	=> 'dt_staff'
				  ),
				  'attributes' => array(
					'multiple' 		   => 'only-key',
					'data-placeholder' => esc_html__('Select Some Staffs', 'ultimate-booking-pro'),
					'style'            => 'width: 200px;'
				  ),
				  'class' 		=> 'chosen',
				  'desc'       => '<div class="cs-text-muted">'.esc_html__('Enter staff name & pick.', 'ultimate-booking-pro').'</div>',
				),
			  ),
			);

			return $options;
		}
	}				
}