-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
menu.blade.php
120 lines (116 loc) · 7.67 KB
/
menu.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
@if (!core_menu_pd($key))
@if (core_Str_menu_url('/' . request()->path()) === $value['url'])
<li class="nav-item active">
@else
<li class="nav-item">
@endif
<a class="nav-link" id="home-menu-{{ $key }}" href="{{ $value['url'] }}">
<span class="nav-link-icon d-md-none d-lg-inline-block">
<!-- Download SVG icon from http://tabler-icons.io/i/package -->
@if ($value['icon'])
{!! $value['icon'] !!}
@else
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-circle" width="24"
height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<circle cx="12" cy="12" r="9"></circle>
</svg>
@endif
</span>
<span class="nav-link-title">
{{ __($value['name']) }}
</span>
</a>
</li>
@else
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#navbar-base" data-bs-toggle="dropdown" role="button"
aria-expanded="false">
<span class="nav-link-icon d-md-none d-lg-inline-block">
<!-- Download SVG icon from http://tabler-icons.io/i/package -->
@if ($value['icon'])
{!! $value['icon'] !!}
@else
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-circle" width="24"
height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<circle cx="12" cy="12" r="9"></circle>
</svg>
@endif
</span>
<span class="nav-link-title">
{{ __($value['name']) }}
</span>
</a>
<div class="dropdown-menu">
<div class="dropdown-menu-columns">
<div class="dropdown-menu-column">
@foreach (core_menu_pdArr($key) as $keys => $values)
@if(!$values['hidden'])
@if( arr_has($values,'quanxian') && $values['quanxian'] instanceof \Closure)
@if(call_user_func($values['quanxian'])===true)
@if (core_Str_menu_url('/' . request()->path()) === $values['url'])
<a class="dropdown-item active" menu="active" id="home-menu-{{ $keys }}"
href="{{ $values['url'] }}">
@else
<a class="dropdown-item" id="home-menu-{{ $keys }}"
href="{{ $values['url'] }}">
@endif
<span class="nav-link-icon d-md-none d-lg-inline-block">
<!-- Download SVG icon from http://tabler-icons.io/i/package -->
@if ($values['icon'])
{!! $values['icon'] !!}
@else
<svg xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-circle"
width="24" height="24" viewBox="0 0 24 24"
stroke-width="2" stroke="currentColor"
fill="none" stroke-linecap="round"
stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none">
</path>
<circle cx="12" cy="12" r="9"></circle>
</svg>
@endif
</span>{{ __($values['name']) }}
</a>
@endif
@else
@if (core_Str_menu_url('/' . request()->path()) === $values['url'])
<a class="dropdown-item active" menu="active"
id="home-menu-{{ $keys }}"
href="{{ $values['url'] }}">
@else
<a class="dropdown-item" id="home-menu-{{ $keys }}"
href="{{ $values['url'] }}">
@endif
<span class="nav-link-icon d-md-none d-lg-inline-block">
<!-- Download SVG icon from http://tabler-icons.io/i/package -->
@if ($values['icon'])
{!! $values['icon'] !!}
@else
<svg xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-circle"
width="24" height="24"
viewBox="0 0 24 24"
stroke-width="2"
stroke="currentColor"
fill="none" stroke-linecap="round"
stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none">
</path>
<circle cx="12" cy="12" r="9"></circle>
</svg>
@endif
</span>{{ __($values['name']) }}
</a>
@endif
@endif
@endforeach
</div>
</div>
</div>
</li>
@endif