{'!pdoResources'|snippet:[
'parents' => '5',
'depth' => '0',
'includeTVs' => 'avto_slide,char_avto',
'tvPrefix' => '',
'tpl' => 'avto-tpl'
]}
<div class="section-5_content-wrap">
<div class="section-5_content flex">
{if $_modx->resource.avto_slide}
<div class="section-5_slider-wrap">
<div id="section-5_slider" class="owl-carousel">
{set $rows = json_decode($_modx->resource.avto_slide, true)}
{foreach $rows as $row}
<picture class="section-5_img">
<img src="{$row.avto_img}" alt="{$row.avto_title}">
</picture>
{/foreach}
</div>
<div class="section-5_slider_dots flex"></div>
</div>
{/if}
<div class="section-5_text">
<p class="section-5_text-title">Характеристика<br>
авто</p>
{resource:'char_avto'}
</div>
</div>
<div class="section-btn">
<button class="btn-order" onclick="location.href='[[~16]]'">Забронировать авто</button>
</div>
</div>
<div class="section-5_content-wrap">
<div class="section-5_content flex">
{if $avto_slide}
<div class="section-5_slider-wrap">
<div id="section-5_slider" class="owl-carousel">
{set $rows = $avto_slide | json_decode}
{foreach $rows as $row}
<picture class="section-5_img">
<img src="{$row.avto_img}" alt="{$row.avto_title}">
</picture>
{/foreach}
</div>
<div class="section-5_slider_dots flex"></div>
</div>
{/if}
<div class="section-5_text">
<p class="section-5_text-title">Характеристика<br>
авто</p>
{$char_avto}
</div>
</div>
<div class="section-btn">
<button class="btn-order" onclick="location.href='{16 | url}'">Забронировать авто</button>
</div>
</div>