@extends('site.layouts.master') @section('seoTags') @seoTags() @endsection @section('title') @lang('site.Premier_Agent') {{ app()->getLocale() == 'ar' ? ($agent?->username_ar ?? $agent?->username) : $agent?->username }} @endsection @php $seo = SEO\Models\Page::where('path', URL::current()) ->orWhere('path', url()->current()) ->orWhere('path', request()->path()) ->first(); @endphp @section('metatags') @if (!empty($seo)) @endif @endsection @php $firstname = explode(' ', trim($agent?->username ?? ''))[0] ?? ''; @endphp @section('content')

@lang('site.RE/MAX ALMOHAGER Partners')

{{ app()->getLocale() == 'ar' ? ($agent?->username_ar ?? $agent?->username) : $agent?->username }}


@lang('site.Mobile') # {{ $agent?->profile?->phone }}

@if(!empty($agent?->email))

@lang('site.Email') # {{ $agent?->email }}

@endif

@lang('site.Experience'): @if(!empty($agent?->profile?->experience_years)) {{ str_replace('Years','',$agent?->profile?->experience_years) }} @lang('site.Years')

@endif

{{ $count }} @lang('site.Properties Closed in'):

@foreach ($cities as $city) {{ $city->name }} @if ($loop->iteration != $loop->count) {{ '.' }} @endif @endforeach @if (count($cities) > 2) @lang('site.View More') @endif

@lang('site.Meet With') {{ $firstname }}

@lang('site.Get in touch')
{{ $agent?->username }}

{{ $agent?->profile?->total_deals }}

@lang('site.TOTAL DEALS')

£{{ $agent?->profile?->deals_volume }}M

@lang('site.DEAL VOLUME')

£{{ $agent?->profile?->hightest_deal }}M

@lang('site.HIGHEST DEAL PRICE')

@lang('site.About') {{ $firstname }}


@if (LaravelLocalization::getCurrentLocale() == 'ar') {{$agent?->profile?->brief_bio_ar}} @else {{$agent?->profile?->brief_bio}} @endif

@lang('site.By') {{ $agent?->username }} :

@include('site.template.agents-details-properties-card', ['properties' => $properties])
@include('site.template.similarRequest', ['requests' => $requests])
@include('site.template.agents-details-properties-card', ['properties' => $rented])
@include('site.template.agents-details-properties-card', ['properties' => $sold])
@if($agent?->id) @lang('site.add review') @endif

@lang('site.customer_feedback_index')

@if(!empty($reviews) && count($reviews) > 0) @php $reviewsArr = $reviews->toArray(); $ratings = array_map(function($review) { return $review['rate']; }, $reviewsArr); $ratingCounts = array_count_values($ratings); $sumCount = array_sum($ratingCounts); $maxCount = max($ratingCounts); $allRatings = range(5, 1, -1); @endphp
@lang('site.all_reviews') {{ $sumCount }}
@foreach($allRatings as $rating) @php $count = $ratingCounts[$rating] ?? 0; $percentage = $sumCount ? ($count / $sumCount) * 100 : 0; @endphp
{{ $rating }}
{{ $count }}
@endforeach @endif

@lang('site.reviews')

@if(!empty($reviews)) @foreach ($reviews as $key => $review)
image

@for ($i = 1; $i < 6; $i++) @endfor

{{--

{{ $review->content }}

--}}

{{ Str::limit($review->content, 250) }}

@if (strlen($review->content) > 250) @endif
@endforeach @if($reviews->count() > 5)
@endif @endif

@lang('site.certificates')

@if(!empty($certificates))
@foreach ($certificates ?? [] as $certificate)
image

{{ $certificate->title }}

@endforeach
@endif

@lang('site.awards')

@if(!empty($awards))
@foreach ($awards ?? [] as $award)
image

{{ $award->title }}

@endforeach
@endif

@lang('site.list home') {{ $agent?->username }} @lang('site.for rent on www.nileestate.com for free')

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if (session()->has('msg'))
  • {{ session()->get('msg') }}
@endif

@lang('site.The Pinnacle of Service: RE/MAX ALMOHAGER’s Premier Agents')

@lang('site.agentPhrase1')

@lang('site.agentPhrase2')

@lang('site.agentPhrase3')

{{ $agent?->username }}

@lang('site.RE/MAX ALMOHAGER Partners')

{{ app()->getLocale() == 'ar' ? ($agent?->username_ar ?? $agent?->username) : $agent?->username }}

@endsection @section('script') @endsection