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