|
@@ -50,10 +50,11 @@ |
|
|
block discarded – undo |
|
50
|
50
|
$paths = request()->segments(); |
|
51
|
51
|
if (count($paths) > 1) { |
|
52
|
52
|
foreach ($paths as $key => $pah) { |
|
53
|
|
- if ($key == 1) |
|
54
|
|
- $breadcumb[] = ["name" => ucfirst($pah), "url" => request()->getBaseUrl() . "/" . $paths[0] . "/" . $paths[$key], 'icon' => config("module.admin." . $pah . ".icon")]; |
|
55
|
|
- elseif ($key == 2) |
|
56
|
|
- $breadcumb[] = ["name" => ucfirst($pah), "url" => request()->getBaseUrl() . "/" . $paths[0] . "/" . $paths[1] . "/" . $paths[$key], 'icon' => config("module.admin." . $pah . ".icon")]; |
|
|
53
|
+ if ($key == 1) { |
|
|
54
|
+ $breadcumb[] = ["name" => ucfirst($pah), "url" => request()->getBaseUrl() . "/" . $paths[0] . "/" . $paths[$key], 'icon' => config("module.admin." . $pah . ".icon")]; |
|
|
55
|
+ } elseif ($key == 2) { |
|
|
56
|
+ $breadcumb[] = ["name" => ucfirst($pah), "url" => request()->getBaseUrl() . "/" . $paths[0] . "/" . $paths[1] . "/" . $paths[$key], 'icon' => config("module.admin." . $pah . ".icon")]; |
|
|
57
|
+ } |
|
57
|
58
|
} |
|
58
|
59
|
} |
|
59
|
60
|
$view->with( |
Please login to merge, or discard this patch.