@if ($user->image!=null) profile @elseif($user->provider=='google') profile @else profile @endif

{{ html_decode($user->name) }}

{{__('user.Joined')}}: {{ Carbon\Carbon::parse($user->created_at)->format('F Y') }}

{{ html_decode($user->designation) }}

@php $review=App\Models\Review::where(['author_id' => $user->id, 'status' => 1])->get()->average('rating'); $votes=App\Models\Review::where(['author_id' => $user->id, 'status' => 1])->get()->count(); $total_product=App\Models\Product::with('category','author')->where(['author_id' => $user->id, 'status' => 1])->get()->count(); $total_sold=App\Models\OrderItem::with('product', 'variant', 'order')->where('author_id', $user->id)->get()->count(); @endphp
@for ($i = 1; $i <= 5; $i++) @if ($i <= $review) @else @endif @endfor

{{__('user.Average rating of')}} {{ $review==0?0:round($review, 1) }} {{__('user.based on')}} {{ $votes }} {{__('user.votes')}}

  • {{ $total_product }}

    {{__('user.Products')}}

  • {{ $total_sold }}

    {{__('user.Total sale')}}