@php $sent_invoices = \App\Models\Invoice::where('status', '=', 'sent')->orderBy('created_at')->get(); @endphp @if($sent_invoices->count() === 0)
{{ __('dashboard.No data') }}
@endif @foreach($sent_invoices as $invoice)
{{ $invoice->number }}
{{ $invoice->customer->name }}
{{ \Illuminate\Support\Number::currency($invoice->sum) }}
{{ $invoice->created }}
@endforeach