@php
$recentApplications = \App\Models\Application::with(['user', 'advertisement'])
->latest()
->take(5)
->get();
@endphp
@if($recentApplications->count() > 0)
@foreach($recentApplications as $application)
{{ $application->created_at->format('M d, Y H:i') }}
{{ $application->user->name }}
{{ $application->advertisement->title ?? 'N/A' }}
{{ ucfirst($application->status) }}
@endforeach
@else
No recent applications found.
@endif