@foreach ($allagents as $agent) @php $agentSlug = trim(preg_replace('/[^a-z0-9]+/i', '-', strtolower($agent->username)), '-'); @endphp
{{ $agent->username }}

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

@php $title = $agent->profile->title ?? 'Property Consultant'; if(app()->getLocale() == 'ar') { $titles = [ 'Super Admin' => 'المدير العام', 'Senior Property Consultant' => 'مستشار عقاري أول', 'Broker Owner' => 'مالك ومدير الوساطة', 'Property Consultant' => 'مستشار عقاري', 'Luxury Expert' => 'خبير العقارات الفاخرة', 'Sales Manager' => 'مدير المبيعات', 'Team Leader' => 'قائد الفريق', 'Marketing Specialist' => 'أخصائي تسويق عقاري', ]; $title = $titles[$title] ?? $title; } @endphp {{ $title }} {{-- الأرقام من الداتابيز --}}
@if(!empty($agent->profile->total_deals))
{{ $agent->profile->total_deals }} @lang('site.deals')
@endif @if(!empty($agent->profile->deals_volume))
£{{ $agent->profile->deals_volume }}M @lang('site.salesvolume')
@endif @if(!empty($agent->profile->hightest_deal))
£{{ $agent->profile->hightest_deal }}M @lang('site.Avg-price')
@endif
@endforeach