@extends('frontend.layouts.app') @section('meta_title'){{ $shop->meta_title }}@stop @section('meta_description'){{ $shop->meta_description }}@stop @section('meta') @endsection @section('content') @php $total = 0; $rating = 0; foreach ($shop->user->products as $key => $seller_product) { $total += $seller_product->reviews->count(); $rating += $seller_product->reviews->sum('rating'); } $featuredProduct = \App\Product::where('seller_id', $shop->user->id)->where('published', 1)->where('featured', 1)->orderByRaw('RAND()')->get(); @endphp
{{ $shop->name }}
@endsection