diff --git a/app/Http/ViewComposers/PortalComposer.php b/app/Http/ViewComposers/PortalComposer.php index 3ab97958eb4b..5f1a172ef57b 100644 --- a/app/Http/ViewComposers/PortalComposer.php +++ b/app/Http/ViewComposers/PortalComposer.php @@ -72,6 +72,12 @@ class PortalComposer $data[] = ['title' => ctrans('texts.payment_methods'), 'url' => 'client.payment_methods.index', 'icon' => 'shield']; $data[] = ['title' => ctrans('texts.documents'), 'url' => 'client.documents.index', 'icon' => 'download']; + if (auth()->user('contact')->client->getSetting('enable_client_portal_tasks')) { + $data[] = ['title' => ctrans('texts.tasks'), 'url' => 'client.dashboard', 'icon' => 'clock']; + + // TODO: Update when 'tasks' module is available in client portal. + } + return $data; } } diff --git a/public/images/svg/clock.svg b/public/images/svg/clock.svg new file mode 100644 index 000000000000..1fd1773be4a3 --- /dev/null +++ b/public/images/svg/clock.svg @@ -0,0 +1 @@ + \ No newline at end of file