{extends 'template:BaseTemplate'} {block 'bread'}
{include 'breadcrumbs'}
{/block} {block 'content'} {* Отключаем беларусь, делаем редирект https://app.weeek.net/ws/54543/task/16249 *} {if $country_id == 7} {set $link = 'https://'~$.server['SERVER_NAME']~'/'~$city_alias} {$_modx->sendRedirect($link,['responseCode' => 'HTTP/1.1 301 Moved Permanently'])} {/if}

{$id | resource : 'pagetitle'}

{if ($id | resource : 'description')}
{'icon' | lexicon}
{'post' | lexicon}:
{$id | resource : 'description'}
{/if} {if ($id | resource : 'academic_degree')}
{'icon' | lexicon}
{'academic_degree' | lexicon}:
{$id | resource : 'academic_degree'}
{/if} {if ($id | resource : 'longtitle')}
{'icon' | lexicon}
{'experience' | lexicon}:
{$id | resource : 'longtitle'}
{/if}
{set $doc_prodoctorov = $id | resource : 'prodoctorov_rating'} {set $doc_napopravku = $id | resource : 'napopravku_rating'} {set $doc_sber = $id | resource : 'sber_rating'} {if $doc_prodoctorov || $doc_docdoc || $doc_sber}
{if $doc_prodoctorov}
{$doc_prodoctorov}
{/if} {if $doc_napopravku}
{$doc_napopravku}
{$id | resource : 'napopravku_rewies'} {($id | resource : 'napopravku_rewies') | declension : 'отзыв|отзыва|отзывов'}
{/if} {if $doc_sber}
{$doc_sber}
{$id | resource : 'sber_rewies'} {($id | resource : 'sber_rewies') | declension : 'отзыв|отзыва|отзывов'}
{/if}
{/if}
{if $id | resource : 'image'} {set $image = $_modx->runSnippet('phpthumbon', [ 'input' => '/assets/upload/'~($id | resource : "image"), 'options' => 'w=450&h=674&zc=C', ])}
{$id | resource :
{/if} {if ($id | resource : 'block_price_doc')} {set $prices = ($id | resource : 'block_price_doc') | fromJSON}
{foreach $prices as $item}
{$item.title}
{foreach $item.list | fromJSON as $i}
{$i.name}
от {$i.price | priceConvert}
{/foreach}
{/foreach}
{/if}
{'make_an_appointment' | lexicon}
{'call_doctor_2' | lexicon}
{$id | resource : 'content'} {set $shedule = $id | resource : 'shedule'} {if $shedule}

{'schedule' | lexicon}

{foreach $shedule | fromJSON as $i index=$index}
{$i.date | lexicon}
{$i.time}
{/foreach}
{/if} {$id | resource : 'specialization'} {set $services = $id | resource : 'services_doc'} {if $services}
{set $services = $services | split : ','}

{'services_doc' | lexicon}

{foreach $services as $i} {$i | resource : 'pagetitle'} {/foreach}
{/if} {set $education = $id | resource : 'education' | fromJSON} {if $education}

{'education' | lexicon}

{foreach $education as $i}
{$i.year}{$i.text}
{/foreach} {/if} {set $experience = $id | resource : 'experience' | fromJSON} {if $experience}

{'experience' | lexicon}

{foreach $experience as $i}
{$i.year}{$i.text}
{/foreach} {/if}
{*set $reviews = $id | resource : 'reviews'} {if $reviews}
Отзывы
Отзывы наших пациентов о медицинских услугах
{foreach $reviews | fromJSON as $i} {/foreach}
{/if*} {if $id | resource : 'images'}
{'licenses' | lexicon}
{'physician_licenses_and_certifications' | lexicon}
{foreach $id | resource : 'images' | fromJSON as $i} {set $image = $i.image} {set $image = $_modx->runSnippet('phpthumbon', [ 'input' => 'assets/upload/'~$image, 'options' => 'w=227&h=311&zc=C&f=webp', ])} {/foreach}
{/if} {/block}