{assign var=colors value=array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j")}
{if !isset($slideUpdate)}<div class="p_slide slide_type_2_6" data-slide="{$_MODEL.board_id}">{/if}
	<div class="p_slide_box_t"></div>
	<div class="p_slide_box_m">
		<div class="p_slide_box_m_m_inner">
			<div class="slide_preview_inner_ct">
				<div class="slide_preview_inner_ct_c">
					<div class="slide_preview_title clear font_200">{$_MODEL.name}</div>
					{if !empty($_MODEL.config.description)}
						<div class="slide_preview_desc clear font_120">{$_MODEL.config.description|nl2br}</div>
					{/if}
					<div class="space space_40 clear"></div>
					<div class="chart_box_w">
						<div class="chart_box chart_type_6">
							<div class="chart_box_l">
								<div class="chart">
									<div class="chart_layers">
										<div class="chart_layer_label left"><div>{$_MODEL.config.y_name}</div></div>
										<div class="chart_layer_label bottom"><div>{$_MODEL.config.x_name}</div></div>
										<div class="chart_layer_values">
											{assign var="idx" value=0}
											{foreach from=$_MODEL.options item=option}
												{assign var=color value=$colors[$idx]}
												<div class="chart_value" style="left: {$option.result.x_percent}%; bottom: {$option.result.y_percent}%;">
													<div class="chart_value_ct color_{$color}"><div class="chart_value_ct_c">{$idx+1}</div></div>
												</div>
												{assign var="idx" value=$idx+1}
											{/foreach}
										</div>
										{assign var="backgroundClass" value=""}
										{assign var="backgroundStyle" value=""}
										{if $_MODEL.config.show_type == "1"}
											{assign var="backgroundClass" value="chart_type_6_bg_1"}
										{else if $_MODEL.config.show_type == "2"}
											{assign var="backgroundClass" value="chart_type_6_bg_2"}
										{else if $_MODEL.config.show_type == "3"}
											{assign var="backgroundClass" value="chart_type_6_bg_3"}
										{else if $_MODEL.config.show_type == "4"}
											{assign var="backgroundClass" value="chart_type_6_bg_4_deg_0"}
											{if $_MODEL.config.show_type_rotate == "90"}
												{assign var="backgroundClass" value="chart_type_6_bg_4_deg_90"}
											{else if $_MODEL.config.show_type_rotate == "180"}
												{assign var="backgroundClass" value="chart_type_6_bg_4_deg_180"}
											{else if $_MODEL.config.show_type_rotate == "270"}
												{assign var="backgroundClass" value="chart_type_6_bg_4_deg_270"}
											{/if}
										{/if}
										{if !empty($_MODEL.config.background)}
											{assign var="backgroundClass" value=""}
											{assign var="backgroundStyle" value="background: url('{url mode="root"}public/upload/slides/{$_MODEL.config.background}') center center no-repeat;"}
										{/if}
										<div class="chart_layer_bg {$backgroundClass}" style="{$backgroundStyle}"></div>
									</div>
								</div>
							</div>
							<div class="chart_box_s"></div>
							<div class="chart_box_r">
								<div class="chart_info">
									<ul>
										{assign var="idx" value=0}
										{foreach from=$_MODEL.options item=option}
											{assign var=color value=$colors[$idx]}
											<li>
												<div class="chart_info_color"><div class="color_{$color}"><div><div>{$idx+1}</div></div></div></div>
												<div class="chart_info_color_desc">{$option.text}</div>
											</li>
											{assign var="idx" value=$idx+1}
										{/foreach}
									</ul>
								</div>
							</div>
						</div>
					</div>
					{if !empty($_MODEL.config.image)}
						<div class="space space_20 clear"></div>
						<div class="hidden_image">
							<div class="hidden_image_ct">
								<div class="hidden_image_ct_c"><img src="{url mode="root"}public/upload/slides/{$_MODEL.config.image}" alt=""></div>
							</div>
						</div>
						<div class="hidden_image_button_w">
							<div class="hidden_image_button">
								<div class="image_show">Pokaż obrazek</div>
								<div class="image_hide">Ukryj obrazek</div>
							</div>
						</div>
					{/if}
				</div>
			</div>
		</div>
		<div class="p_slide_box_m_b">
			<div class="icons_w">
				<div class="icons_w_l"></div>
				<div class="icons_w_r">
					<div class="icons">
						<div class="icon">
							<div class="icon_img"><svg><use xlink:href="{url mode="root"}theme/dobry-start/images/icons/svg/sprite.svg#shape-user"></use></svg></div>
							<div class="icon_value">{$_MODEL.users}</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="p_slide_box_b"></div>
{if !isset($slideUpdate)}</div>{/if}