diff --git a/resources/views/layouts/master.blade.php b/resources/views/layouts/master.blade.php index eee63b4..6f782a6 100644 --- a/resources/views/layouts/master.blade.php +++ b/resources/views/layouts/master.blade.php @@ -11,23 +11,21 @@ Logout - + @foreach($widget_manager->getWidgetsForSection($view_manager->navSection()) as $widget) {{ $widget }} @endforeach - - + @yield($view_manager->mainSection()) - - + @endsection @push('styles') diff --git a/src/PersonalRecentVisitsWidget.php b/src/PersonalRecentVisitsWidget.php index 2724dca..37ea0a1 100644 --- a/src/PersonalRecentVisitsWidget.php +++ b/src/PersonalRecentVisitsWidget.php @@ -17,9 +17,9 @@ public function __construct(RecentVisitsRepository $repository) public function toHtml() { - return '' . $this->getVisits()->map(function ($visit) { + return ''; } public function isAuthorized(Authorizable $user = null): bool diff --git a/src/TeamRecentVisitsWidget.php b/src/TeamRecentVisitsWidget.php index 89258a4..da4f657 100644 --- a/src/TeamRecentVisitsWidget.php +++ b/src/TeamRecentVisitsWidget.php @@ -17,9 +17,9 @@ public function __construct(RecentVisitsRepository $repository) public function toHtml() { - return '' . $this->getVisits()->map(function ($visit) { + return ''; } public function isAuthorized(Authorizable $user = null): bool diff --git a/tests/Feature/UserlandControllerTest.php b/tests/Feature/UserlandControllerTest.php index 0ad4951..5b6d49b 100644 --- a/tests/Feature/UserlandControllerTest.php +++ b/tests/Feature/UserlandControllerTest.php @@ -63,6 +63,9 @@ public function test_recent_visits_widgets() $response->assertOk(); // Check personal links + $response->assertSee('