<?php
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true)
{
	die();
}

use \Bitrix\Main\Localization\Loc;

Loc::loadMessages(
	\Bitrix\Main\Application::getDocumentRoot() . '/bitrix/blocks/bitrix/store.salescenter.order.details/.description.php'
);
/**
 * @var StoreSalesCenterOrderDetails $classBlock
 */
?>
<section class="landing-block g-pt-10 g-pb-10">
	<div class="container g-font-size-13">
		<?
		if (\Bitrix\Landing\Landing::getEditMode())
		{
			echo '
			<div class="g-min-height-200 g-flex-centered">
				<div class="g-pa-10 g-brd-html-dashed g-bg-white-opacity-0_8">
					' . Loc::getMessage('LANDING_BLOCK_STORE_SALESCENTER_ORDER_DETAIL-ALERT') . '
				</div>
			</div>
			';
		}
		else
		{
			$APPLICATION->IncludeComponent(
				'bitrix:salescenter.order.details',
				'.default',
				[
					'ID' => $classBlock->get('ORDER_ID'),
					'TEMPLATE_MODE' => 'lightmode',
					'ACTIVE_DATE_FORMAT' => 'd F Y',
					'ALLOW_SELECT_PAYMENT_PAY_SYSTEM' => 'Y',
				],
				false
			);
		}
		?>
	</div>
</section>