diff --git a/lang/de/common.php b/lang/de/common.php index 30c550e..2c56e71 100644 --- a/lang/de/common.php +++ b/lang/de/common.php @@ -12,7 +12,6 @@ return [ | */ - 'Dashboard' => 'Dashboard', 'Is active' => 'Aktiv', 'Yes' => 'Ja', 'No' => 'Nein', diff --git a/lang/de/dashboard.php b/lang/de/dashboard.php new file mode 100644 index 0000000..c909d09 --- /dev/null +++ b/lang/de/dashboard.php @@ -0,0 +1,19 @@ + 'Dashboard', + 'Customers without address' => 'Kunden ohne Rechnungsadresse', + 'Invoices not sent' => 'Nicht versendete Rechnungen', + +]; diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index 4002e06..e0711c6 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -1,17 +1,47 @@ +@php + $customers = \App\Models\Customer::doesntHave('address')->get(); + $invoices = \App\Models\Invoice::where('status', '=', 'created')->orderBy('created_at')->get(); + +@endphp +

- {{ __('common.Dashboard') }} + {{ __('dashboard.Dashboard') }}

-
-
+
+ + +
- {{ __("common.You're logged in!") }} +

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

+ @foreach($customers as $customer) + +
{{ $customer->name }}
+
{{ $customer->email }}
+
+ @endforeach
+ + +
+
+

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

+ @foreach($invoices as $invoice) + +
{{ $invoice->number }}
+
{{ $invoice->address->name }}
+
+ @endforeach +
+
+
diff --git a/resources/views/layouts/navigation.blade.php b/resources/views/layouts/navigation.blade.php index a3a678c..caa4c41 100644 --- a/resources/views/layouts/navigation.blade.php +++ b/resources/views/layouts/navigation.blade.php @@ -13,7 +13,7 @@