diff --git a/app/Http/ViewComposers/All.php b/app/Http/ViewComposers/All.php index afa649aba..4dcaabe7b 100644 --- a/app/Http/ViewComposers/All.php +++ b/app/Http/ViewComposers/All.php @@ -18,9 +18,16 @@ class All public function compose(View $view) { // Make sure it's installed - if (env('APP_INSTALLED')) { - // Share date format - $view->with(['date_format' => $this->getCompanyDateFormat()]); + if (!env('APP_INSTALLED')) { + return; } + + // Share user logged in + $auth_user = auth()->user(); + + // Share date format + $date_format = $this->getCompanyDateFormat(); + + $view->with(['auth_user' => $auth_user, 'date_format' => $date_format]); } } diff --git a/resources/views/banking/accounts/index.blade.php b/resources/views/banking/accounts/index.blade.php index ba3ae143a..0883ee374 100644 --- a/resources/views/banking/accounts/index.blade.php +++ b/resources/views/banking/accounts/index.blade.php @@ -41,7 +41,11 @@
@foreach($accounts as $item)