@if ($agents->count() > 0)
@foreach ($agents as $agent)
@php
$isOrder=$orders->where('user_id',$agent->id)->count();
@endphp
@if ($isOrder >0)
{{ $agent->translated_name }}
{{ $agent->translated_address }}
@if ($agent->icon_one && $agent->link_one)
@endif
@if ($agent->icon_two && $agent->link_two)
@endif
@if ($agent->icon_three && $agent->link_three)
@endif
@if ($agent->icon_four && $agent->link_four)
@endif
@endif
@endforeach
{{ $agents->links('custom_paginator') }}
@else
{{__('user.Agent Not Found!')}}
@endif