link to reports

This commit is contained in:
denisdulici
2018-11-28 13:02:18 +03:00
parent 291cf959ce
commit 1cf927a29b
6 changed files with 43 additions and 4 deletions

View File

@ -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]);
}
}