{*
 **********************************************************
 * Developed by: Team Theme Metro
 * Website: http://www.thememetro.com
 **********************************************************
*}

<h4>{lang key="createNewSupportRequest"}</h4>
<p class="desc text-muted">{$LANG.supportticketsheader}</p>

{if $departments}
{if $themesettings.clientarea.sdstyle eq "1"}
	<div class="ticket-departments">
		<div class="row row-eq-height">
		{foreach $departments as $num => $department}
			<div class="col-md-{if count($departments) < "3"}6{else}4{/if}">
				<a href="{$smarty.server.PHP_SELF}?step=2&amp;deptid={$department.id}">
					<h5 class="name text-base"><i class="fas fa-envelope fa-fw text-primary mr-1"></i>{$department.name}</h5>
					{if $department.description}
						<span class="desc">{$department.description}</span>
					{/if}
				</a>
			</div>	
		{/foreach}   
		</div>
	</div>
	{else}
	<div class="ticket-departments list">
	{foreach $departments as $num => $department}
		<a href="{$smarty.server.PHP_SELF}?step=2&amp;deptid={$department.id}">
			<h5 class="name text-base"><i class="fas fa-envelope fa-fw text-primary mr-1"></i>{$department.name}</h5>
			{if $department.description}
				<span class="desc">{$department.description}</span>
			{/if}
		</a>			 
	{/foreach}   
	</div>
{/if}

{else}

	{include file="$template/includes/alert.tpl" type="info" msg=$LANG.nosupportdepartments textcenter=true}
{/if}
           


