[Superuser] Perbaikan Halaman Akses Superuser

This commit is contained in:
Ariyutta
2026-11-12 12:22:06 +07:00
parent 2b20537fdb
commit eaad95e8f2
45 changed files with 1062 additions and 110 deletions
@@ -13,7 +13,7 @@ trait ServesLegacyList
/** @return array<string, ?string> */
protected function crumbs(string $slug, array $page): array
{
return ['Beranda' => route('operator.dashboard')] + array_fill_keys(Catalog::trail($slug), null) + [$page['title'] => null];
return ['Beranda' => route(auth()->user()->role->dashboardRoute())] + array_fill_keys(Catalog::trail($slug), null) + [$page['title'] => null];
}
/** @return array{rows: list<array<string, mixed>>, page: int, last_page: int, total: int, per_page: int} */