@extends('layouts/fullLayoutMaster') @section('title', $product->title.' | '.$market->name) @section('vendor-style') @endsection @section('page-style') @endsection @section('content')
Каталог @php $last = $breadCrumbs[count($breadCrumbs) - 1]; @endphp @foreach($breadCrumbs as $breadCrumb) {{ $breadCrumb->name }} @if($breadCrumb->id != $last->id) @endif @endforeach
@php $medias = json_decode($product->photos, true); if(!empty($thisColor->photos)){ $Colormedias = json_decode($thisColor->photos, true); }else{ $Colormedias = []; } @endphp
{{ $product->title }}
@php $pCountStars = Helper::starsCount($product->id); $istars = 5 - $pCountStars; @endphp @for ($i = 1; $i <= $pCountStars; $i++) @endfor @for ($i = 1; $i <= $istars; $i++) @endfor
@if(isset($productGroupInfo['title']))
{{ $productGroupInfo['title'] }}:
@endif @foreach($groupProducts as $pr)
@endforeach @if(isset($productGroupInfo['subtitle']))
{{ $productGroupInfo['subtitle'] }}: @isset($productGroupInfo['value']) {{ $productGroupInfo['value'] }} @endisset
@endif @isset($productGroupInfo['value']) @php $thisPrd = (isset($mainItem->id)) ? $mainItem : $product; @endphp
@endisset @foreach($subItems as $subpr)
@endforeach @foreach($product->colors as $color) @if($color)
@endif @endforeach
@foreach($sizes as $size)
{{ $size->get_size->name }}
@endforeach
Характеристики
Артикул
{{ $product->attr }}
@foreach($product->chars->take(5) as $char)
{{ $char->name ?? '' }}
{{ $char->value }}
@endforeach @isset($thisColor->get_color->name)
Цвет
{{ $thisColor->get_color->name }}
@endisset
{{ $thisColor->newprice ?? $thisColor->price }}
@if($thisColor->newprice != null)
{{ $thisColor->price }} ₽
@endif
@if($thisColor->pcount >= 10) В наличии @elseif($thisColor->pcount >= 10 && $thisColor->pcount >= 5) Осталось меньше 10 @elseif($thisColor->pcount <= 0) Нет в наличии @else Осталось: {{ $thisColor->pcount }} @endif
Добавить в корзину
Условия оплаты Условия доставки
{!! $product->tdesc !!}
@foreach($product->chars as $char)
{{ $char->name ?? '' }}
{{ $char->value }}
@endforeach
@include('includes/market/comments', ['revs' => $revs])

Рекомендуем также

@include('includes/market/products', ['products' => Helper::getProductRec($product->cat_id), 'recFixClass' => 'recFixClass'])
@endsection @section('vendor-script') @endsection @section('page-script') @endsection