@csrf @php $currentModificationName = ''; @endphp @foreach($data as $modification)
@foreach($modification as $price) @if($currentModificationName !== $price->modification->name)

{{ $price->modification->name }}

@php $currentModificationName = $price->modification->name; @endphp @endif
{{ price_format($price->price) }} руб.
@php $minPrice = $price->price; $creditPerMount = floor(($minPrice - ($minPrice * 0.6))/36); @endphp
Купить в кредит
Trade-in
@php $currentParameterCategory = ''; @endphp @foreach($price->complectation->parameter as $parameter) @if( $currentParameterCategory !== $parameter->parameterCategory->name) @if($currentParameterCategory !== '')
@endif

{{ $parameter->parameterCategory->name }}

@php $currentParameterCategory = $parameter->parameterCategory->name; @endphp @endif

{{ $parameter->name }}

@endforeach
@php $finance = 0; $tradeIn = 0; $utilization = 0; $discount = $price->price_old - $price->price; $finance = $discount - 100000 - 50000; $tradeIn = 100000; $utilization = 50000; @endphp

Минимальная возможная стоимость: {{ price_format($price->price) }} руб. Данную стоимость можно достичь, воспользовавшись нашими услугами:

Услуга:
Скидка:
@php $hash = md5( uniqid() ); @endphp
-{{price_format($finance)}} руб.
@php $hash = md5( uniqid() ); @endphp
-{{price_format($tradeIn)}} руб.
@php $hash = md5( uniqid() ); @endphp
-{{price_format($utilization)}} руб.
@endforeach @endforeach