@php $agents = \App\Models\AgentRequest::query()->where('status' , 'requested') ->orderByDesc('created_at')->take(5)->get(); @endphp @if($agents->count() > 0)
agent request
@foreach($agents as $agent) @if(!$agent->player) @continue @endif

{{ $agent->player->full_name }} requested to be an agent

{{ $agent->created_at }}

@endforeach
@endif