@extends('Client.layouts.layout') @section('title', $Product->title() ) @if($Product?->desc()) @section('desc', strip_tags($Product?->desc()) ) @endif @section('content') @php($Category = $Product->Categories()->first())
@if ($Product->Images->count())
@foreach ($Product->Images->sortBy('arrangement') as $ImageItem)
first) class="active" aria-current="true" @endif aria-label="Image {{ $loop->iteration }}"> Image
@endforeach
@else Image @endif

{{ $Product->title() }}

{{ $Product->kCal ? $Product->kCal . ' ' . __('trans.kCal') : '' }}
{!! $Product->desc() !!}
@php($rate = $Product->Rates->Avg('rate'))
@lang('trans.Reviews')

({{ number_format($rate, 1, ',', ' ') }})

@lang('trans.Add Review')
@foreach ($Product->Rates as $Rate)
{{ $Rate->created_at }}
{{ $Rate->Client ? $Rate->Client->name : '' }}
{{ $Rate->comment }}
@endforeach
@if ($RelatedProducts->Count())

@lang('trans.relatedProducts')

@foreach ($RelatedProducts as $RelatedProduct)
@include('Client.layouts.product',['Product'=>$RelatedProduct])
@endforeach
@endif @endsection @push('css') @endpush @push('js') @endpush @push('css') @endpush @push('css') @endpush @push('js') @endpush @push('js') @endpush @if(Payments()->where('status',1)->where('id',6)->count()) @push('js') @endpush @endif