@extends('frontend.layout') @section('pageHeading') @if (!empty($pageHeading)) {{ $pageHeading->shop_page_title ?? __('Shop') }} @else {{ __('Shop') }} @endif @endsection @php $metaKeywords = !empty($seo->meta_keyword_shop) ? $seo->meta_keyword_shop : ''; $metaDescription = !empty($seo->meta_description_shop) ? $seo->meta_description_shop : ''; @endphp @section('meta-keywords', "{{ $metaKeywords }}") @section('meta-description', "$metaDescription") @section('hero-section')
@endsection @section('content')
@if (!empty(request()->input('category'))) @endif @if (!empty(request()->input('min'))) @endif @if (!empty(request()->input('max'))) @endif @if (!empty(request()->input('search'))) @endif
@if (count($products) > 0) @foreach ($products as $item)
Product
@php $reviews = App\Models\ShopManagement\ProductReview::where('product_id', $item->id)->get(); $avarage_rating = App\Models\ShopManagement\ProductReview::where('product_id', $item->id)->avg('review'); $avarage_rating = round($avarage_rating, 2); @endphp
@if ($basicInfo->is_shop_rating == 1)
@endif
{{ $item->title }}
{{ $basicInfo->base_currency_symbol_position == 'left' ? $basicInfo->base_currency_symbol : '' }} {{ $item->current_price }} {{ $basicInfo->base_currency_symbol_position == 'right' ? $basicInfo->base_currency_symbol : '' }} {{ $basicInfo->base_currency_symbol_position == 'left' ? $basicInfo->base_currency_symbol : '' }} {{ $item->previous_price }} {{ $basicInfo->base_currency_symbol_position == 'right' ? $basicInfo->base_currency_symbol : '' }}
@endforeach @else

{{ __('No Product Found') }}

@endif
{{ $products->links() }} @if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif
@endsection @section('custom-script') @endsection