<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>
<div class="dropdown_blocks_list">
	<? $c = 0;?>
	<? foreach($arResult['MATERIALS'] as $material): ?>
		<div class="dropdown_block <?= $c === 0 ? "open" : ""; ?>">
			<div class="block_header">
				<p><?= $material['NAME']; ?></p>
				<button class="block_toggle"></button>
			</div>
			<div class="block_body">
				<?= $material['DETAIL_TEXT']; ?>
			</div>
		</div>
		<? $c++; ?>
	<? endforeach; ?>
</div>