From 89e526334ecb2794beb0e585db0717494edfaa41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 21 Mar 2024 17:40:40 +0100 Subject: [PATCH] Dashboard 2.0 --- .../ninja2020/dashboard/index.blade.php | 175 ++++++++---------- 1 file changed, 78 insertions(+), 97 deletions(-) diff --git a/resources/views/portal/ninja2020/dashboard/index.blade.php b/resources/views/portal/ninja2020/dashboard/index.blade.php index 86d689c18de5..452f4f93e285 100644 --- a/resources/views/portal/ninja2020/dashboard/index.blade.php +++ b/resources/views/portal/ninja2020/dashboard/index.blade.php @@ -1,113 +1,94 @@ @extends('portal.ninja2020.layout.app') @section('meta_title', ctrans('texts.dashboard')) -@section('header') - @if(!empty($client->getSetting('custom_message_dashboard'))) - @component('portal.ninja2020.components.message') - {!! CustomMessage::client($client) - ->company($client->company) - ->message($client->getSetting('custom_message_dashboard')) !!} - @endcomponent - @endif -@endsection - @section('body') -
-

- {{ ctrans('texts.hello') }}, {{ $contact->first_name }} -

+
+
+

{{ $contact->first_name }} {{ $contact->last_name }}

+

{{ $contact->phone }}

+

{{ $client->address1 }}

+

{{ $client->city }}, {{ $client->state }}

+

{{ $client->postal_code }}

+

{{ App\Models\Country::find($client->country_id)?->name }}

+
-
-
-
-
-
- {{ ctrans('texts.paid_to_date') }} -
-
- {{ App\Utils\Number::formatMoney($client->paid_to_date, $client) }} -
-
-
+
+
+ + + +
-
-
-
-
- {{ ctrans('texts.open_balance') }} -
-
- {{ App\Utils\Number::formatMoney($client->balance, $client) }} -
-
-
+
+

{{ ctrans('texts.total_invoices') }}

+

$0

+
+
+ +
+
+ + + + + + + +
+
+

{{ ctrans('texts.paid_to_date') }}

+

+ {{ App\Utils\Number::formatMoney($client->paid_to_date, $client) }} +

+
+
+ +
+
+ + + + + +
+
+

+ {{ ctrans('texts.open_balance') }} +

+

+ {{ App\Utils\Number::formatMoney($client->balance, $client) }} +

-
-
-
-
-
-

- {{ ctrans('texts.group_documents') }} -

- -
- @if($client->group_settings) - @forelse($client->group_settings->documents as $document) - - {{ Illuminate\Support\Str::limit($document->name, 40) }} - - - - - - - - @empty -

{{ ctrans('texts.no_records_found') }}.

- @endforelse - @endif -
-
+
+
+

{{ ctrans('texts.invoice_from') }}

+
+
+
+
+ company-logo +
+
+

+ {{ $client->company->settings->name }} +

-
-
-
-
-

- {{ ctrans('texts.default_documents') }} -

- -
- @forelse($client->company->documents as $document) - - {{ Illuminate\Support\Str::limit($document->name, 40) }} - - - - - - - - @empty -

{{ ctrans('texts.no_records_found') }}.

- @endforelse -
-
-
-
+
+

{{ $client->company->settings->address1 }}

+

{{ $client->company->settings->address2 }}

+

{{ $client->company->settings->postal_code }}

+

{{ App\Models\Country::find($client->company->settings->country_id)?->name }}

+
+
+

{{ $client->company->settings->email }}

+

{{ $client->company->settings->phone }}

+

{{ $client->company->settings->website }}

-@endsection +@stop