@extends(get_view('template-main'), [ 'title' => 'Цены на '.$body->model->mark->name . ' ' . $body->model->name . ' ' . $body->name ]) @section('content')
{{ $body->model->mark->name }} {{ $body->model->name }} {{ $body->name }}
@if(isset($body->color[0])) @endif
Цвет: @php $className = 'selected'; @endphp @foreach($body->color as $color) @php $className = ''; @endphp @endforeach
@php $minPrice = $body->getMinPrice(); $percentRateMounth = floatval(\JustWeCMS\Modules\Param\Entities\Param::where('slug', 'percent_rate')->first()->value)/100/12; if($percentRateMounth == 0){ $creditPerMount = ($minPrice / 84) * floatval(\JustWeCMS\Modules\Param\Entities\Param::where('slug', 'koef_price')->first()->value); $creditPerMount2 = ($minPrice / 84) * floatval(\JustWeCMS\Modules\Param\Entities\Param::where('slug', 'koef_price')->first()->value); } else { $creditPerMount = ($minPrice * ($percentRateMounth + ($percentRateMounth/(pow(1+$percentRateMounth, 84) - 1)))) * floatval(\JustWeCMS\Modules\Param\Entities\Param::where('slug', 'koef_price')->first()->value); $creditPerMount2 = ($minPrice * ($percentRateMounth + ($percentRateMounth/(pow(1+$percentRateMounth, 84) - 1)))) * floatval(\JustWeCMS\Modules\Param\Entities\Param::where('slug', 'koef_price')->first()->value); } @endphp {{ price_format($body->getMinPrice('price_old')) }} руб.
{{ price_format($body->getMinPrice()) }} руб.
Ежемесячный платеж:
{{price_format($creditPerMount)}} pуб.
Ваша выгода при покупке в кредит {{ price_format($body->getMinPrice('price_old') - $body->getMinPrice()) }} руб.

Кредит от @widget('JustWeCMS\Modules\Param\Widgets\Param', ['key' => 'percent_rate'])%

@include(get_view('form-body-credit'))
@include(get_view('gifts-clickable'))
  • Комплектации и цены

  • Характеристики

  • Фотогалерея

@widget('JustWeCMS\Modules\Auto\Widgets\Price\NewPrice', [ 'body_id' => $body->id, 'tpl' => get_view('widget-price-tpl') ])
@include(get_view('catalog-modification-compare'), [ 'body' => $body, 'withoutPrice' => true ])
.. @endsection @section('scripts') @if( isset($body->color[0]) ) @php $priceField = $body->price->where('price', $body->getMinPrice())->first(); @endphp @endif @if(\JustWeCMS\Modules\Metrica\Entities\Metrica::where('site','target')->count() !== 0) @if($body->has_target_feed == 1) @endif @endif @foreach(\JustWeCMS\Modules\Metrica\Entities\Metrica::where('site','google_ads')->get() as $google) @if($body->has_google_feed == 1) @endif @endforeach @endsection