@extends('templates.'.$template.'.layouts.default') @section('canonical') @endsection @section('content')
@include('templates.'.config('app.template').'.categories.common.filters')
@include('templates.'.config('app.template').'.categories.common.sorting') @include('templates.'.config('app.template').'.categories.common.selected-filters')
@if(count($products) > 0)
@foreach ($products as $product) @php $ratingsAvg = $product->calculateRating(); @endphp
{{ $product->language->title }}
{{ $product->language->title }}

{{ $product->brand }}

@for ($i=1; $i <= 5; $i++) @if ($i <= $ratingsAvg) @else @endif @endfor {{ $product->getRatingsCount() }} {{ trans('translations.votes') }}
{{ trans('translations.product-price') }}
{{ $product->type->language->title or ' ' }}
@endforeach
@else

{{ trans('translations.no-wines-found') }}

@endif
@endsection {{-- Page script --}} @section('script') @endsection