<?php
/** 
 * @package     VikRestaurants
 * @subpackage  core
 * @author      E4J s.r.l.
 * @copyright   Copyright (C) 2023 E4J s.r.l. All Rights Reserved.
 * @license     http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @link        https://vikwp.com
 */

// No direct access
defined('ABSPATH') or die('No script kiddies please!');

$specialday = $this->specialday;

$vik = VREApplication::getInstance();

?>

<div class="row-fluid">

	<!-- LEFT SIDE -->

	<div class="span6">

		<!-- BOOKING NOTES -->

		<div class="row-fluid">
			<div class="span12">
				<?php
				echo $vik->openFieldset(JText::translate('VRMENUTITLEHEADER3'));

				echo $this->formFactory->createField()
					->type('editor')
					->name('booknotes')
					->value($specialday->booknotes)
					->hiddenLabel(true);

				echo $this->formFactory->createField()
					->type('alert')
					->style('info')
					->text(JText::translate('VRE_SPECIALDAY_BOOKNOTES_DESC'))
					->hiddenLabel(true);

				?>

				<!-- Define role to detect the supported hook -->
				<!-- {"rule":"customizer","event":"onDisplayViewSpecialday","key":"booknotes","type":"field"} -->
				
				<?php
				/**
				 * Look for any additional fields to be pushed within
				 * the "Booking Notes" fieldset (right-side).
				 *
				 * NOTE: retrieved from "onDisplayViewSpecialday" hook.
				 *
				 * @since 1.11
				 */
				if (isset($this->forms['booknotes']))
				{
					echo $this->forms['booknotes'];

					// unset details form to avoid displaying it twice
					unset($this->forms['booknotes']);
				}

				echo $vik->closeFieldset();
				?>
			</div>
		</div>

	</div>

	<!-- RIGHT SIDE -->

	<div class="span6">

		<!-- CONFIRMATION NOTES -->

		<div class="row-fluid">
			<div class="span12">
				<?php
				echo $vik->openFieldset(JText::translate('VRE_CONFIRMATION_FIELDSET'));

				echo $this->formFactory->createField()
					->type('editor')
					->name('confnotes')
					->value($specialday->confnotes)
					->hiddenLabel(true);

				echo $this->formFactory->createField()
					->type('alert')
					->style('info')
					->text(JText::translate('VRE_SPECIALDAY_CONFNOTES_DESC'))
					->hiddenLabel(true);

				?>

				<!-- Define role to detect the supported hook -->
				<!-- {"rule":"customizer","event":"onDisplayViewSpecialday","key":"confnotes","type":"field"} -->
				
				<?php
				/**
				 * Look for any additional fields to be pushed within
				 * the "Confirmation Notes" fieldset (right-side).
				 *
				 * NOTE: retrieved from "onDisplayViewSpecialday" hook.
				 *
				 * @since 1.11
				 */
				if (isset($this->forms['confnotes']))
				{
					echo $this->forms['confnotes'];

					// unset details form to avoid displaying it twice
					unset($this->forms['confnotes']);
				}

				echo $vik->closeFieldset();
				?>
			</div>
		</div>

	</div>

</div>
