@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'); } @endphp
{{ $shop->name }}

{{ $shop->name }} @if ($shop->verification_status == 1) @else @endif

@if ($total > 0) {{ renderStarRating($rating/$total) }} @else {{ renderStarRating(0) }} @endif
{{ $shop->address }}

{{$shop->user->name}} {{ translate('has not been verified yet.')}}

@endsection