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

{if $customfields}
<div class="TM-card">
	<div class="row">
	{foreach $customfields as $customfield}
		<div class="col-lg-6">
			<div class="form-group">
				{if $customfield.type eq 'tickbox'}
					<label class=checkbox-inline" for="customfield{$customfield.id}">
						{$customfield.input} {$customfield.name}
					</lable>
					{if $customfield.description}<span class="help-block d-block">{$customfield.description}</span>{/if}
				{else}
					<label for="customfield{$customfield.id}">{if $customfield.type eq "link"}<i class="fas fa-link"></i> {/if}{$customfield.name} {$customfield.required}</label>
					{$customfield.input}
					{if $customfield.description}<span class="help-block">{$customfield.description}</span>{/if}
				{/if}
			</div>
		</div>
	{/foreach}
	</div>
</div>
{/if}
