@php $customers = \App\Models\Customer::doesntHave('address')->get(); $created_invoices = \App\Models\Invoice::where('status', '=', 'created')->orderBy('created_at')->get(); $sent_invoices = \App\Models\Invoice::where('status', '=', 'sent')->orderBy('created_at')->get(); $unpaid_incoming = \App\Models\Incoming::where('pay_date', '=', null)->orderBy('due_date')->get(); @endphp

{{ __('dashboard.Dashboard') }}

@if($sent_invoices->count() != 0) @endif @if($created_invoices->count() != 0)

{{ __('dashboard.Invoices not sent') }}

@foreach($created_invoices as $invoice)
{{ $invoice->number }}
{{ $invoice->customer->name }}
@endforeach
@endif @if($customers->count() != 0)

{{ __('dashboard.Customers without address') }}

@foreach($customers as $customer)
{{ $customer->name }}
{{ $customer->email }}
@endforeach
@endif @if($unpaid_incoming->count() != 0) @endif