<?php
/* Smarty version 4.5.2, created on 2024-05-15 07:13:04
  from '/home/life/public_html/yzb.lifestyle.uz/themes/template-ru/section-tenders.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.2',
  'unifunc' => 'content_6644608096a9c2_09428648',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'cd265f43f375faad5ca5e380897c8a8ebe6ba940' => 
    array (
      0 => '/home/life/public_html/yzb.lifestyle.uz/themes/template-ru/section-tenders.tpl',
      1 => 1715664991,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:header.tpl' => 1,
    'file:modules/banner.tpl' => 1,
    'file:form/search-form.tpl' => 1,
    'file:modules/pagination.tpl' => 1,
    'file:icon/svg.tpl' => 1,
    'file:blocks/contacts.tpl' => 1,
    'file:form/tender-form.tpl' => 1,
    'file:footer.tpl' => 1,
  ),
),false)) {
function content_6644608096a9c2_09428648 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/home/life/public_html/yzb.lifestyle.uz/includes/smarty_plugins/function.fetch_articles.php','function'=>'smarty_function_fetch_articles',),));
$_smarty_tpl->_subTemplateRender("file:header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('title'=>$_smarty_tpl->tpl_vars['section']->value['name'],'keywords'=>$_smarty_tpl->tpl_vars['section']->value['keywords'],'description'=>$_smarty_tpl->tpl_vars['section']->value['description']), 0, false);
?>


<?php echo smarty_function_fetch_articles(array('perPage'=>5,'assign'=>'tenders','query'=>$_smarty_tpl->tpl_vars['query']->value,'assignPagination'=>'pagination','page'=>$_smarty_tpl->tpl_vars['page']->value,'section'=>$_smarty_tpl->tpl_vars['section']->value['sectionId'],'path'=>$_smarty_tpl->tpl_vars['section']->value['path'],'seFriendly'=>true,'typeContent'=>"tenders",'image'=>true,'imageType'=>"docs"),$_smarty_tpl);?>


<main class="main">

		<?php $_smarty_tpl->_subTemplateRender("file:modules/banner.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
	
	<section class="flex:col pad-tb-50">
		<div class="flex:col-max">
			<div class="grid:fr-1 g-gap-40">
				<div class="grid:fr-1 g-gap-40 max-w-1000 x-center">

										<?php $_smarty_tpl->_subTemplateRender("file:form/search-form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
					
					<div class="grid:fr-1 g-gap-20">

						<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['tenders']->value, 'tender');
$_smarty_tpl->tpl_vars['tender']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['tender']->value) {
$_smarty_tpl->tpl_vars['tender']->do_else = false;
?>
							<div class="tender-card" id="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['tender']->value['alias'], ENT_QUOTES, 'UTF-8', true);?>
">
								<div class="tender-card__head">
									<div class="text-tmp txt-accent-6 txt-14"><p>Тендер №<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['tender']->value['alias'], ENT_QUOTES, 'UTF-8', true);?>
</p></div>
								</div>

								<div class="tender-card__content">
									<div class="text-tmp title-20 title-tt-up title-accent"><h2><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['tender']->value['title'], ENT_QUOTES, 'UTF-8', true);?>
</h2></div>
									<div class="tender-card__content-lists"><?php echo $_smarty_tpl->tpl_vars['tender']->value['summary'];?>
</div>
								</div>

								<div class="tender-card__footer">
									<div class="tender-card__footer-btns">
										<?php if (!empty($_smarty_tpl->tpl_vars['tender']->value['tender_phone'])) {?>
											<a class="btn accent transparent" href="tel:<?php echo htmlspecialchars((string)call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'format_phone' ][ 0 ], array( $_smarty_tpl->tpl_vars['tender']->value['tender_phone'] )), ENT_QUOTES, 'UTF-8', true);?>
"><?php echo htmlspecialchars((string)call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'format_phone' ][ 0 ], array( $_smarty_tpl->tpl_vars['tender']->value['tender_phone'] )), ENT_QUOTES, 'UTF-8', true);?>
</a>
										<?php }?>
										<?php if (!empty($_smarty_tpl->tpl_vars['tender']->value['tender_email'])) {?>
											<a class="btn accent transparent" href="mailto:<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['tender']->value['tender_email'], ENT_QUOTES, 'UTF-8', true);?>
"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['tender']->value['tender_email'], ENT_QUOTES, 'UTF-8', true);?>
</a>
										<?php }?>
									</div>

									<div class="tender-card__footer-btns">
										<button class="btn accent transparent tender-btn_js" data-modal-id="applicationModal">Оставить заявку</button>
										<?php if (!empty($_smarty_tpl->tpl_vars['tender']->value['docs'])) {?>
											<?php $_smarty_tpl->_assignInScope('doc', call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'first' ][ 0 ], array( $_smarty_tpl->tpl_vars['tender']->value['docs'] )));?>
											<a class="btn accent-2" href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['doc']->value['original'], ENT_QUOTES, 'UTF-8', true);?>
">Скачать</a>
										<?php }?>
									</div>
								</div>
							</div>
						<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
					</div>

										<?php $_smarty_tpl->_subTemplateRender("file:modules/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('class'=>"pagination x-right"), 0, false);
?>
					
				</div>
			</div>

						<div class="decor-triangle">
				<?php $_smarty_tpl->_subTemplateRender("file:icon/svg.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('svgId'=>"decor_triangle",'fill'=>"none"), 0, false);
?>
			</div>
			
		</div>
	</section>

		<?php $_smarty_tpl->_subTemplateRender("file:blocks/contacts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
	
</main>

<div class="d-none">
	<div class="modal-tender" id="applicationModal">
		<div class="modal-tender__inner">
						<?php $_smarty_tpl->_subTemplateRender("file:form/tender-form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
					</div>
	</div>
</div>

<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
