<?php

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

use SugarCalendarBookings\Appointments\Admin\AppointmentsListPage;
use SugarCalendarBookings\Services\Admin\ServicesListPage;

?>
<div class="sugar-calendar-bookings-education-notice-content">
	<div class="sugar-calendar-bookings-education-notice-content__text">
		<h4><?php esc_html_e( 'Get Started with Sugar Calendar Bookings!', 'sugar-calendar-bookings-scheduling-appointments-lite' ); ?> 🎉</h4>
		<dl>
			<dt><?php esc_html_e( 'Create a Service', 'sugar-calendar-bookings-scheduling-appointments-lite' ); ?></dt>
			<dd>
				<?php
				echo wp_kses(
					sprintf(
						'%1$s <a href="%2$s">%3$s</a> > <strong>%4$s</strong> %5$s.',
						__( 'Go to', 'sugar-calendar-bookings-scheduling-appointments-lite' ),
						ServicesListPage::get_url(),
						ServicesListPage::get_title(),
						__( 'Add New', 'sugar-calendar-bookings-scheduling-appointments-lite' ),
						__( 'to add your first bookable service', 'sugar-calendar-bookings-scheduling-appointments-lite' )
					),
					[
						'strong' => [],
						'a'      => [
							'href' => [],
						],
					]
				);
				?>
			</dd>
			<dt><?php esc_html_e( 'Add the Sugar Calendar Bookings Form Block to your site', 'sugar-calendar-bookings-scheduling-appointments-lite' ); ?></dt>
			<dd>
				<?php
				echo wp_kses(
					sprintf(
						'%1$s <strong>[sugar_calendar_bookings_form]</strong>.',
						__( 'Open the WordPress block editor, find the Booking Form Block, and add it to your page or use the shortcode', 'sugar-calendar-bookings-scheduling-appointments-lite' )
					),
					[
						'strong' => [],
					]
				);
				?>
			</dd>
			<dt><?php esc_html_e( 'Get Appointments!', 'sugar-calendar-bookings-scheduling-appointments-lite' ); ?></dt>
			<dd>
				<?php
				echo wp_kses(
					sprintf(
						'%1$s <a href="%2$s">%3$s</a> > <strong>%4$s</strong>.',
						__( 'You\'ll receive appointments after someone books through the booking form block or you can add them manually by', 'sugar-calendar-bookings-scheduling-appointments-lite' ),
						AppointmentsListPage::get_url(),
						AppointmentsListPage::get_title(),
						__( 'Add New', 'sugar-calendar-bookings-scheduling-appointments-lite' )
					),
					[
						'a' => [
							'href' => [],
						],
					]
				);
				?>
			</dd>
		</dl>
	</div>

	<div class="sugar-calendar-bookings-education-notice-content__image">
		<img src="<?php echo esc_url( SCBOOKINGS_PLUGIN_URL . 'assets/images/education/new-events.svg' ); ?>" alt="">
	</div>
</div>
