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

    class DTBooking_Cs_Sc_PersonItem {

        function DTBooking_sc_PersonItem() {

			$plural_name = '';
			if( function_exists( 'dt_booking_cs_get_option' ) ) :
				$plural_name	=	dt_booking_cs_get_option( 'singular-person-text', esc_html__('Person', 'dt-reservation-plugin') );
			endif;

			$options = array(
			  'name'      => 'dt_sc_person_item',
			  'title'     => $plural_name,
			  'fields'    => array(

				array(
				  'id'    => 'person_id',
				  'type'  => 'text',
				  'title' => esc_html__( 'Enter Person ID', 'dt-reservation-plugin' ),
				  'after' => '<div class="cs-text-muted">'.esc_html__('Enter ID of person to display. More than one ids with comma(,) seperated.', 'dt-reservation-plugin').'</div>',
				),
				array(
				  'id'        => 'type',
				  'type'      => 'select',
				  'title'     => esc_html__('Type', 'dt-reservation-plugin'),
				  'options'   => array(
					'type1'    => esc_html__('Type - 1', 'dt-reservation-plugin'),
					'type2'    => esc_html__('Type - 2', 'dt-reservation-plugin')
				  ),
				  'class'     => 'chosen',
				  'default'   => 'desc',
				  'info'      => esc_html__('Choose type of persons to display.', 'dt-reservation-plugin')
				),
				array(
				  'id'        => 'show_button',
				  'type'      => 'select',
				  'title'     => esc_html__('Show button?', 'dt-reservation-plugin'),
				  'options'   => array(
					'yes'   => esc_html__('Yes', 'dt-reservation-plugin'),
					'no'    => esc_html__('No', 'dt-reservation-plugin')
				  ),
				  'class'     => 'chosen',
				  'default'   => 'no',
				  'info'      => esc_html__('Choose "Yes" to show button.', 'dt-reservation-plugin')
				),
				array(
				  'id'    => 'button_text',
				  'type'  => 'text',
				  'title' => esc_html__( 'Button Text', 'dt-reservation-plugin' ),
				  'default' => esc_html__('Book an appointment', 'dt-reservation-plugin'),
				  'info'  => esc_html__( 'Enter button text.', 'dt-reservation-plugin' )
				)
			  ),
			);

			return $options;
		}
	}				
}