@extends('site.layouts.app') @section('page_title', $vendor->name) @section('seo') @include('site.shop.seo') @endsection @section('content')
{{-- profile and top benner --}} @include('site.shop.top_banner') {{-- menu items and search --}} @include('site.shop.menu') {{-- third section --}}
{{ __('Vendor Image') }}
@if (in_array($shop->vendor_id, $topSellerIds)) {{ __('Top Seller') }} @endif

{{ $vendor->name }}

{{ __('Have any query') }}?

{{ __('Send us a message') }}

@if (isActive('Ticket') && preference('chat')) @endif

{{ $vendor->description }}

@if ($vendor->phone) {{ $vendor->phone }} @endif @if ($vendor->email) {{ $vendor->email }} @endif

{{ __('Positive Seller Ratings') }}

{{ round($positiveRating) }}%

{{ __('Shipment on Time') }}

{{ $vendor->onTimeShipment() }}%

{{ __('Seller’s Cancellation') }}

{{ $vendor->orderCancel() }}%

{{ __('Seller Reviews') }}

{{ $reviewCount }}

{{-- review section --}}

{{ round($avg) }}

{{ __('Seller Rating') }}

    @for ($star = 1; $star <= 5; $star++)
  • @endfor

    ( {{ $reviewCount }}{{ $reviewCount > 1 ? __('Reviews') : __('Rating') }} )

@for ($progressBar = 5; $progressBar >= 1; $progressBar--)
    @for ($colorBar = 1; $colorBar <= 5; $colorBar++)
  • @endfor
@php $percent = 0; if (in_array($progressBar, array_column($progessBarRating, 'rating'))) { $total_ratinges = array_column($progessBarRating, 'total_rating'); $percent = intval(($total_ratinges[array_search($progressBar, array_column($progessBarRating, 'rating'))] / $reviewCount) * 100); } @endphp
{{ $percent }}%
@endfor

{{ __('Product Reviews') }}

@include('site.shop.review')
@endsection @section('js') @endsection