@extends('layouts.frontend') @push('title', get_phrase('Agent Details')) @push('meta')@endpush @section('frontend_layout')

{{$users->name}}

{{$users->bio}}

    @php $Beauty = App\Models\BeautyListing::where('user_id', $users->id)->where('visibility', 'visible')->count(); $Hotel = App\Models\HotelListing::where('user_id', $users->id)->where('visibility', 'visible') ->count(); $Restaurant = App\Models\RestaurantListing::where('user_id', $users->id)->where('visibility', 'visible')->count(); $Realestate = App\Models\RealEstateListing::where('user_id', $users->id)->where('visibility', 'visible')->count(); $Car = App\Models\CarListing::where('user_id', $users->id)->count(); $dynamic = App\Models\CustomListings::where('user_id', $users->id)->where('visibility', 'visible')->count(); $totalListing = $Beauty + $Hotel + $Restaurant + $Realestate + $Car + $dynamic; @endphp
  • {{$totalListing}}

    {{get_phrase('Listings')}}

{{-- Agent Badges --}}

{{get_phrase('Agent Badges')}}

@forelse ($agentBadges as $field => $badges) @foreach ($badges as $badge)
{{ $badge->name }}
@endforeach @empty

No badge earned yet.

@endforelse
@endsection