{extends 'template:BaseTemplate'} {block 'bread'}
{include 'breadcrumbs'}
{/block} {block 'content'} {set $tabs = $id | resource : 'tabs' | fromJSON} {set $h1 = $id | resource : 'pagetitle'} {set $countryData = '!getCountryData' | snippet}

{$h1}

{foreach $tabs as $tab index=$index first=$first}

{$tab.title}

{/foreach}
{foreach $tabs as $tab index=$index first=$first}
{$tab.text}
{/foreach}
{set $doctor = $id | resource : 'doctor'} {if $doctor | resource} {set $image = '/assets/upload'~($doctor | resource : 'image')}
{$doctor | resource : 'pagetitle'}
{'verified_by_expert' | lexicon}
{$doctor | resource : 'pagetitle'}
{$doctor | resource : 'introtext'}
{/if}
{set $analiz = $id | resource : 'tests__list' | fromJSON} {if $analiz}
{*
Номенклатура МЗ РФ (Приказ №804н): A09.05.007
*}
{'address' | lexicon}
{'can_be_taken_at_home_or_in_the_office' | lexicon}
{'deadline' | lexicon}
{'urgent_execution_mode_is_available' | lexicon}
{foreach $analiz as $items} {foreach $items.list_item | fromJSON as $item}
{if $item.biomaterial}
{'biomaterial' | lexicon}: {$item.biomaterial}
{/if} {if $item.research__price}
{'cost_research' | lexicon}: {$item.research__price} {$countryData.symbol}
{/if} {if $item.bio__price}
{'cost_of_taking_biomaterials' | lexicon}: {$item.bio__price} {$countryData.symbol}
{'cost_of_taking_biomaterials_descr' | lexicon}
{/if} {if $item.deadline}
{'deadline' | lexicon}: {$item.deadline}
{'deadline_descr' | lexicon}
{/if}
{/foreach} {/foreach}
{if $id | resource : 'file'} {'sample_result' | lexicon} {/if}
{else}
{*
Номенклатура МЗ РФ (Приказ №804н): A09.05.007
*}
{'address' | lexicon}
{'can_be_taken_at_home_or_in_the_office' | lexicon}
{if ($id | resource : 'price_research') || ($id | resource : 'price_bio') || ($id | resource : 'biomaterial')}
{if $id | resource : 'price_research'}
{'cost_research' | lexicon}: {$id | resource : 'price_research'} {$countryData.symbol}
{/if} {if $id | resource : 'price_bio'}
{'cost_of_taking_biomaterials' | lexicon}: {$id | resource : 'price_bio'} {$countryData.symbol}
{'cost_of_taking_biomaterials_descr' | lexicon}
{/if} {if $id | resource : 'biomaterial'}
{'biomaterial' | lexicon}: {$id | resource : 'biomaterial'}
{/if}
{/if} {if $id | resource : 'due_date'}
{'deadline' | lexicon}: {$id | resource : 'due_date'}
{'deadline_descr' | lexicon}
{'deadline' | lexicon}
{'urgent_execution_mode_is_available' | lexicon}
{/if}
{if $id | resource : 'file'} {'sample_result' | lexicon} {/if}
{/if} {if $city_phone}
{'if_you_have_any_questions_about_analyses' | lexicon}
{$city_phone}
{/if}
{if $id | resource : 'pricelist_procedure'} {set $pricelist_procedure = $id | resource : 'pricelist_procedure' | fromJSON}
{'cheaper_as_part_of_a_complex' | lexicon}
{'service' | lexicon}
{'deadline' | lexicon}
{'price' | lexicon}
{foreach $pricelist_procedure as $i index=$index}
{$i.name}
{$i.date}
{$i.price}
{/foreach}
{if ($pricelist_procedure | count) > 5}
{'show_more' | lexicon}
{/if}
{'decor' | lexicon}
{/if} {if $id | resource : 'pricelist_more'} {set $pricelist_more = $id | resource : 'pricelist_more' | fromJSON}
{'this_analysis_is_ordered_with' | lexicon}
{'service' | lexicon}
{'deadline' | lexicon}
{'price' | lexicon}
{foreach $pricelist_more as $i index=$index}
{$i.name}
{$i.date}
{$i.price}
{/foreach}
{if ($pricelist_more | count) > 5}
{'show_more' | lexicon}
{/if}
{/if} {/block}