@php $sent_invoices = \App\Models\Invoice::where('status', '=', 'sent')->orderBy('created_at')->get(); @endphp @if($sent_invoices->count() === 0)