Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Clubphp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Clubphp
Commits
f7d90c56
Commit
f7d90c56
authored
Apr 07, 2026
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 1 files via Son of Anton
parent
2e052b1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
270 deletions
+59
-270
sidebar.php
app/Shared/Components/sidebar.php
+59
-270
No files found.
app/Shared/Components/sidebar.php
View file @
f7d90c56
...
@@ -9,12 +9,54 @@ use App\Core\Registries\MenuRegistry;
...
@@ -9,12 +9,54 @@ use App\Core\Registries\MenuRegistry;
$currentPath
=
parse_url
(
$_SERVER
[
'REQUEST_URI'
]
??
'/'
,
PHP_URL_PATH
);
$currentPath
=
parse_url
(
$_SERVER
[
'REQUEST_URI'
]
??
'/'
,
PHP_URL_PATH
);
$employee
=
App
::
getInstance
()
->
currentEmployee
();
$employee
=
App
::
getInstance
()
->
currentEmployee
();
// Icon name → emoji mapping
$iconMap
=
[
'dashboard'
=>
'📊'
,
'tachometer-alt'
=>
'📊'
,
'home'
=>
'🏠'
,
'users'
=>
'👥'
,
'user'
=>
'👤'
,
'user-plus'
=>
'👤'
,
'user-clock'
=>
'⏰'
,
'user-tie'
=>
'👔'
,
'user-shield'
=>
'🛡️'
,
'user-friends'
=>
'👥'
,
'clipboard'
=>
'📋'
,
'clipboard-list'
=>
'📋'
,
'file-alt'
=>
'📄'
,
'calendar'
=>
'📅'
,
'calendar-alt'
=>
'📅'
,
'calendar-check'
=>
'✅'
,
'money-bill'
=>
'💰'
,
'wallet'
=>
'💳'
,
'cash-register'
=>
'💰'
,
'credit-card'
=>
'💳'
,
'receipt'
=>
'🧾'
,
'coins'
=>
'🪙'
,
'file-invoice-dollar'
=>
'💲'
,
'hand-holding-usd'
=>
'💰'
,
'exchange-alt'
=>
'🔀'
,
'random'
=>
'🔀'
,
'transfer'
=>
'🔀'
,
'gavel'
=>
'⚖️'
,
'balance-scale'
=>
'⚖️'
,
'exclamation-triangle'
=>
'⚠️'
,
'alert'
=>
'⚠️'
,
'warning'
=>
'⚠️'
,
'ban'
=>
'🚫'
,
'trophy'
=>
'🏆'
,
'medal'
=>
'🏅'
,
'award'
=>
'🎖️'
,
'star'
=>
'⭐'
,
'globe'
=>
'🌍'
,
'globe-americas'
=>
'🌎'
,
'flag'
=>
'🏳️'
,
'id-card'
=>
'🪪'
,
'address-card'
=>
'🪪'
,
'qrcode'
=>
'📱'
,
'file'
=>
'📁'
,
'folder'
=>
'📁'
,
'folder-open'
=>
'📂'
,
'sms'
=>
'📱'
,
'envelope'
=>
'✉️'
,
'bell'
=>
'🔔'
,
'comment'
=>
'💬'
,
'chart-bar'
=>
'📈'
,
'chart-line'
=>
'📈'
,
'chart-pie'
=>
'📊'
,
'cog'
=>
'⚙️'
,
'cogs'
=>
'⚙️'
,
'wrench'
=>
'🔧'
,
'tools'
=>
'🛠️'
,
'sliders-h'
=>
'⚙️'
,
'settings'
=>
'⚙️'
,
'shield-alt'
=>
'🔐'
,
'lock'
=>
'🔒'
,
'key'
=>
'🔑'
,
'building'
=>
'🏢'
,
'city'
=>
'🏙️'
,
'store'
=>
'🏪'
,
'book'
=>
'📖'
,
'history'
=>
'📜'
,
'archive'
=>
'🗄️'
,
'sitemap'
=>
'🔄'
,
'project-diagram'
=>
'🔄'
,
'workflow'
=>
'🔄'
,
'heart'
=>
'❤️'
,
'heartbeat'
=>
'💓'
,
'cross'
=>
'✝️'
,
'ring'
=>
'💍'
,
'baby'
=>
'👶'
,
'child'
=>
'👦'
,
'children'
=>
'👨👩👧👦'
,
'repeat'
=>
'🔄'
,
'sync'
=>
'🔄'
,
'redo'
=>
'🔄'
,
'print'
=>
'🖨️'
,
'search'
=>
'🔍'
,
'plus'
=>
'➕'
,
'edit'
=>
'✏️'
,
'trash'
=>
'🗑️'
,
'times'
=>
'❌'
,
'check'
=>
'✅'
,
'dollar-sign'
=>
'💲'
,
'percentage'
=>
'💹'
,
'swimming-pool'
=>
'🏊'
,
'running'
=>
'🏃'
,
'futbol'
=>
'⚽'
,
'sun'
=>
'☀️'
,
'umbrella-beach'
=>
'🏖️'
,
];
$getIcon
=
function
(
?
string
$icon
)
use
(
$iconMap
)
:
string
{
if
(
$icon
===
null
||
$icon
===
''
)
return
'📌'
;
// Already an emoji
if
(
mb_strlen
(
$icon
)
<=
2
&&
!
ctype_alpha
(
$icon
))
return
$icon
;
// Check map
return
$iconMap
[
$icon
]
??
$iconMap
[
strtolower
(
$icon
)]
??
'📌'
;
};
// Get all permissions for current employee
// Get all permissions for current employee
$employeePermissions
=
[];
$employeePermissions
=
[];
if
(
$employee
&&
method_exists
(
$employee
,
'getAllPermissions'
))
{
if
(
$employee
&&
method_exists
(
$employee
,
'getAllPermissions'
))
{
$employeePermissions
=
$employee
->
getAllPermissions
();
$employeePermissions
=
$employee
->
getAllPermissions
();
}
elseif
(
$employee
)
{
}
elseif
(
$employee
)
{
// Fallback: load permissions directly
try
{
try
{
$db
=
App
::
getInstance
()
->
db
();
$db
=
App
::
getInstance
()
->
db
();
$empId
=
$employee
->
id
??
0
;
$empId
=
$employee
->
id
??
0
;
...
@@ -27,7 +69,6 @@ if ($employee && method_exists($employee, 'getAllPermissions')) {
...
@@ -27,7 +69,6 @@ if ($employee && method_exists($employee, 'getAllPermissions')) {
);
);
$employeePermissions
=
array_column
(
$perms
,
'permission_key'
);
$employeePermissions
=
array_column
(
$perms
,
'permission_key'
);
// Check if super_admin — gets all permissions
$isSuperAdmin
=
$db
->
selectOne
(
$isSuperAdmin
=
$db
->
selectOne
(
"SELECT 1 FROM employee_roles er
"SELECT 1 FROM employee_roles er
JOIN roles r ON r.id = er.role_id
JOIN roles r ON r.id = er.role_id
...
@@ -36,7 +77,7 @@ if ($employee && method_exists($employee, 'getAllPermissions')) {
...
@@ -36,7 +77,7 @@ if ($employee && method_exists($employee, 'getAllPermissions')) {
[(
int
)
$empId
]
[(
int
)
$empId
]
);
);
if
(
$isSuperAdmin
)
{
if
(
$isSuperAdmin
)
{
$employeePermissions
=
[
'*'
];
// Wildcard — has all permissions
$employeePermissions
=
[
'*'
];
}
}
}
catch
(
\Throwable
$e
)
{
}
catch
(
\Throwable
$e
)
{
$employeePermissions
=
[];
$employeePermissions
=
[];
...
@@ -56,264 +97,20 @@ $isActive = function(string $route) use ($currentPath): bool {
...
@@ -56,264 +97,20 @@ $isActive = function(string $route) use ($currentPath): bool {
// Get menu items from registry
// Get menu items from registry
$menuItems
=
MenuRegistry
::
getAll
();
$menuItems
=
MenuRegistry
::
getAll
();
// Sort by order
usort
(
$menuItems
,
fn
(
$a
,
$b
)
=>
(
$a
[
'order'
]
??
999
)
<=>
(
$b
[
'order'
]
??
999
));
usort
(
$menuItems
,
fn
(
$a
,
$b
)
=>
(
$a
[
'order'
]
??
999
)
<=>
(
$b
[
'order'
]
??
999
));
//
If MenuRegistry is empty, build default menu from known modules
//
Fallback if registry empty
if
(
empty
(
$menuItems
))
{
if
(
empty
(
$menuItems
))
{
$menuItems
=
[
$menuItems
=
[
[
[
'key'
=>
'dashboard'
,
'label_ar'
=>
'لوحة التحكم'
,
'icon'
=>
'📊'
,
'route'
=>
'/dashboard'
,
'permission'
=>
''
,
'order'
=>
10
,
'children'
=>
[]],
'key'
=>
'dashboard'
,
[
'key'
=>
'members'
,
'label_ar'
=>
'إدارة الأعضاء'
,
'icon'
=>
'👥'
,
'route'
=>
'/members'
,
'permission'
=>
'member.view'
,
'order'
=>
100
,
'children'
=>
[
'label_ar'
=>
'لوحة التحكم'
,
[
'label_ar'
=>
'كل الأعضاء'
,
'route'
=>
'/members'
,
'permission'
=>
'member.view'
],
'icon'
=>
'📊'
,
[
'label_ar'
=>
'عضو جديد'
,
'route'
=>
'/members/create'
,
'permission'
=>
'member.create'
],
'route'
=>
'/dashboard'
,
]],
'permission'
=>
''
,
[
'key'
=>
'users'
,
'label_ar'
=>
'الموظفون'
,
'icon'
=>
'👤'
,
'route'
=>
'/users'
,
'permission'
=>
'user.view'
,
'order'
=>
910
,
'children'
=>
[]],
'order'
=>
10
,
[
'key'
=>
'roles'
,
'label_ar'
=>
'الأدوار'
,
'icon'
=>
'🔐'
,
'route'
=>
'/roles'
,
'permission'
=>
'role.view'
,
'order'
=>
920
,
'children'
=>
[]],
'children'
=>
[],
[
'key'
=>
'branches'
,
'label_ar'
=>
'الفروع'
,
'icon'
=>
'🏢'
,
'route'
=>
'/branches'
,
'permission'
=>
'branch.view'
,
'order'
=>
930
,
'children'
=>
[]],
],
[
'key'
=>
'settings'
,
'label_ar'
=>
'الإعدادات'
,
'icon'
=>
'⚙️'
,
'route'
=>
'/settings'
,
'permission'
=>
'settings.view'
,
'order'
=>
960
,
'children'
=>
[]],
[
'key'
=>
'members'
,
'label_ar'
=>
'إدارة الأعضاء'
,
'icon'
=>
'👥'
,
'route'
=>
'/members'
,
'permission'
=>
'member.view'
,
'order'
=>
100
,
'children'
=>
[
[
'label_ar'
=>
'كل الأعضاء'
,
'route'
=>
'/members'
,
'permission'
=>
'member.view'
,
'order'
=>
1
],
[
'label_ar'
=>
'عضو جديد'
,
'route'
=>
'/members/create'
,
'permission'
=>
'member.create'
,
'order'
=>
2
],
[
'label_ar'
=>
'بحث'
,
'route'
=>
'/members/search'
,
'permission'
=>
'member.view'
,
'order'
=>
3
],
],
],
[
'key'
=>
'forms'
,
'label_ar'
=>
'النماذج'
,
'icon'
=>
'📋'
,
'route'
=>
'/forms'
,
'permission'
=>
'form.view'
,
'order'
=>
150
,
'children'
=>
[
[
'label_ar'
=>
'النماذج المقدمة'
,
'route'
=>
'/forms/submissions'
,
'permission'
=>
'form.view'
,
'order'
=>
1
],
[
'label_ar'
=>
'منشئ النماذج'
,
'route'
=>
'/forms/builder'
,
'permission'
=>
'form.manage'
,
'order'
=>
2
],
],
],
[
'key'
=>
'interviews'
,
'label_ar'
=>
'المقابلات'
,
'icon'
=>
'🗓️'
,
'route'
=>
'/interviews'
,
'permission'
=>
'interview.view'
,
'order'
=>
200
,
'children'
=>
[],
],
[
'key'
=>
'payments'
,
'label_ar'
=>
'المدفوعات'
,
'icon'
=>
'💰'
,
'route'
=>
'/payments'
,
'permission'
=>
'payment.view'
,
'order'
=>
300
,
'children'
=>
[
[
'label_ar'
=>
'كل المدفوعات'
,
'route'
=>
'/payments'
,
'permission'
=>
'payment.view'
,
'order'
=>
1
],
[
'label_ar'
=>
'الإيصالات'
,
'route'
=>
'/receipts'
,
'permission'
=>
'receipt.view'
,
'order'
=>
2
],
[
'label_ar'
=>
'التقرير اليومي'
,
'route'
=>
'/payments/daily-report'
,
'permission'
=>
'payment.view'
,
'order'
=>
3
],
],
],
[
'key'
=>
'installments'
,
'label_ar'
=>
'الأقساط'
,
'icon'
=>
'📅'
,
'route'
=>
'/installments'
,
'permission'
=>
'installment.view'
,
'order'
=>
350
,
'children'
=>
[],
],
[
'key'
=>
'subscriptions'
,
'label_ar'
=>
'الاشتراكات'
,
'icon'
=>
'🔄'
,
'route'
=>
'/subscriptions'
,
'permission'
=>
'subscription.view'
,
'order'
=>
400
,
'children'
=>
[],
],
[
'key'
=>
'violations'
,
'label_ar'
=>
'المخالفات والغرامات'
,
'icon'
=>
'⚠️'
,
'route'
=>
'/violations'
,
'permission'
=>
'violation.view'
,
'order'
=>
450
,
'children'
=>
[
[
'label_ar'
=>
'المخالفات'
,
'route'
=>
'/violations'
,
'permission'
=>
'violation.view'
,
'order'
=>
1
],
[
'label_ar'
=>
'الغرامات'
,
'route'
=>
'/fines'
,
'permission'
=>
'fine.view'
,
'order'
=>
2
],
],
],
[
'key'
=>
'transfers'
,
'label_ar'
=>
'التحويلات'
,
'icon'
=>
'🔀'
,
'route'
=>
'/transfers'
,
'permission'
=>
'transfer.view'
,
'order'
=>
500
,
'children'
=>
[
[
'label_ar'
=>
'طلبات التحويل'
,
'route'
=>
'/transfers'
,
'permission'
=>
'transfer.view'
,
'order'
=>
1
],
[
'label_ar'
=>
'حالات الطلاق'
,
'route'
=>
'/divorce'
,
'permission'
=>
'divorce.view'
,
'order'
=>
2
],
[
'label_ar'
=>
'حالات الوفاة'
,
'route'
=>
'/death'
,
'permission'
=>
'death.view'
,
'order'
=>
3
],
[
'label_ar'
=>
'التنازلات'
,
'route'
=>
'/waiver'
,
'permission'
=>
'waiver.view'
,
'order'
=>
4
],
],
],
[
'key'
=>
'memberships'
,
'label_ar'
=>
'أنواع العضوية'
,
'icon'
=>
'🏅'
,
'route'
=>
'#'
,
'permission'
=>
''
,
'order'
=>
550
,
'children'
=>
[
[
'label_ar'
=>
'الموسمية'
,
'route'
=>
'/seasonal'
,
'permission'
=>
'seasonal.view'
,
'order'
=>
1
],
[
'label_ar'
=>
'الرياضية'
,
'route'
=>
'/sports'
,
'permission'
=>
'sports.view'
,
'order'
=>
2
],
[
'label_ar'
=>
'الشرفية'
,
'route'
=>
'/honorary'
,
'permission'
=>
'honorary.view'
,
'order'
=>
3
],
[
'label_ar'
=>
'الأجنبية'
,
'route'
=>
'/foreign'
,
'permission'
=>
'foreign.view'
,
'order'
=>
4
],
],
],
[
'key'
=>
'carnets'
,
'label_ar'
=>
'الكارنيهات'
,
'icon'
=>
'🪪'
,
'route'
=>
'/carnets'
,
'permission'
=>
'carnet.view'
,
'order'
=>
600
,
'children'
=>
[],
],
[
'key'
=>
'documents'
,
'label_ar'
=>
'المستندات'
,
'icon'
=>
'📁'
,
'route'
=>
'/documents'
,
'permission'
=>
'document.view'
,
'order'
=>
650
,
'children'
=>
[],
],
[
'key'
=>
'notifications'
,
'label_ar'
=>
'الرسائل النصية'
,
'icon'
=>
'📱'
,
'route'
=>
'/notifications'
,
'permission'
=>
'notification.view'
,
'order'
=>
700
,
'children'
=>
[
[
'label_ar'
=>
'إرسال رسالة'
,
'route'
=>
'/notifications/send'
,
'permission'
=>
'notification.send'
,
'order'
=>
1
],
[
'label_ar'
=>
'سجل الرسائل'
,
'route'
=>
'/notifications/log'
,
'permission'
=>
'notification.view'
,
'order'
=>
2
],
[
'label_ar'
=>
'القوالب'
,
'route'
=>
'/notifications/templates'
,
'permission'
=>
'notification.manage'
,
'order'
=>
3
],
],
],
[
'key'
=>
'reports'
,
'label_ar'
=>
'التقارير'
,
'icon'
=>
'📈'
,
'route'
=>
'/reports'
,
'permission'
=>
'report.view'
,
'order'
=>
800
,
'children'
=>
[],
],
[
'key'
=>
'separator_admin'
,
'label_ar'
=>
'── الإدارة ──'
,
'icon'
=>
''
,
'route'
=>
''
,
'permission'
=>
''
,
'order'
=>
900
,
'children'
=>
[],
'is_separator'
=>
true
,
],
[
'key'
=>
'users'
,
'label_ar'
=>
'الموظفون'
,
'icon'
=>
'👤'
,
'route'
=>
'/users'
,
'permission'
=>
'user.view'
,
'order'
=>
910
,
'children'
=>
[
[
'label_ar'
=>
'كل الموظفين'
,
'route'
=>
'/users'
,
'permission'
=>
'user.view'
,
'order'
=>
1
],
[
'label_ar'
=>
'موظف جديد'
,
'route'
=>
'/users/create'
,
'permission'
=>
'user.create'
,
'order'
=>
2
],
],
],
[
'key'
=>
'roles'
,
'label_ar'
=>
'الأدوار والصلاحيات'
,
'icon'
=>
'🔐'
,
'route'
=>
'/roles'
,
'permission'
=>
'role.view'
,
'order'
=>
920
,
'children'
=>
[],
],
[
'key'
=>
'branches'
,
'label_ar'
=>
'الفروع'
,
'icon'
=>
'🏢'
,
'route'
=>
'/branches'
,
'permission'
=>
'branch.view'
,
'order'
=>
930
,
'children'
=>
[],
],
[
'key'
=>
'rules'
,
'label_ar'
=>
'محرك القواعد'
,
'icon'
=>
'⚙️'
,
'route'
=>
'/rules'
,
'permission'
=>
'rule.view'
,
'order'
=>
940
,
'children'
=>
[],
],
[
'key'
=>
'pricing'
,
'label_ar'
=>
'التسعير'
,
'icon'
=>
'💲'
,
'route'
=>
'/pricing'
,
'permission'
=>
'pricing.view'
,
'order'
=>
950
,
'children'
=>
[
[
'label_ar'
=>
'أسعار العضوية'
,
'route'
=>
'/pricing'
,
'permission'
=>
'pricing.view'
,
'order'
=>
1
],
[
'label_ar'
=>
'كتالوج الخدمات'
,
'route'
=>
'/catalog'
,
'permission'
=>
'catalog.view'
,
'order'
=>
2
],
],
],
[
'key'
=>
'settings'
,
'label_ar'
=>
'الإعدادات'
,
'icon'
=>
'🔧'
,
'route'
=>
'/settings'
,
'permission'
=>
'settings.view'
,
'order'
=>
960
,
'children'
=>
[],
],
[
'key'
=>
'audit'
,
'label_ar'
=>
'سجل المراجعة'
,
'icon'
=>
'📜'
,
'route'
=>
'/audit'
,
'permission'
=>
'audit.view'
,
'order'
=>
970
,
'children'
=>
[],
],
[
'key'
=>
'archive'
,
'label_ar'
=>
'الأرشيف'
,
'icon'
=>
'🗄️'
,
'route'
=>
'/archive'
,
'permission'
=>
'archive.view'
,
'order'
=>
980
,
'children'
=>
[],
],
[
'key'
=>
'workflow'
,
'label_ar'
=>
'سير العمل'
,
'icon'
=>
'🔄'
,
'route'
=>
'/workflow'
,
'permission'
=>
'workflow.view'
,
'order'
=>
990
,
'children'
=>
[],
],
];
];
}
}
?>
?>
...
@@ -326,19 +123,14 @@ if (empty($menuItems)) {
...
@@ -326,19 +123,14 @@ if (empty($menuItems)) {
<ul
class=
"sidebar-menu"
>
<ul
class=
"sidebar-menu"
>
<?php
foreach
(
$menuItems
as
$item
)
:
?>
<?php
foreach
(
$menuItems
as
$item
)
:
?>
<?php
<?php
// Check permission
if
(
!
empty
(
$item
[
'permission'
])
&&
!
$hasPerm
(
$item
[
'permission'
]))
continue
;
if
(
!
empty
(
$item
[
'permission'
])
&&
!
$hasPerm
(
$item
[
'permission'
]))
{
continue
;
}
// Separator
if
(
!
empty
(
$item
[
'is_separator'
]))
{
if
(
!
empty
(
$item
[
'is_separator'
]))
{
echo
'<li style="padding:15px 20px 5px;font-size:11px;color:#6B7280;text-transform:uppercase;letter-spacing:1px;">'
.
e
(
$item
[
'label_ar'
])
.
'</li>'
;
echo
'<li style="padding:15px 20px 5px;font-size:11px;color:#6B7280;text-transform:uppercase;letter-spacing:1px;">'
.
e
(
$item
[
'label_ar'
])
.
'</li>'
;
continue
;
continue
;
}
}
$children
=
$item
[
'children'
]
??
[];
$children
=
$item
[
'children'
]
??
[];
// Filter children by permission
$visibleChildren
=
[];
$visibleChildren
=
[];
foreach
(
$children
as
$child
)
{
foreach
(
$children
as
$child
)
{
if
(
empty
(
$child
[
'permission'
])
||
$hasPerm
(
$child
[
'permission'
]))
{
if
(
empty
(
$child
[
'permission'
])
||
$hasPerm
(
$child
[
'permission'
]))
{
...
@@ -350,21 +142,18 @@ if (empty($menuItems)) {
...
@@ -350,21 +142,18 @@ if (empty($menuItems)) {
$itemRoute
=
$item
[
'route'
]
??
'#'
;
$itemRoute
=
$item
[
'route'
]
??
'#'
;
$itemActive
=
$isActive
(
$itemRoute
);
$itemActive
=
$isActive
(
$itemRoute
);
// Check if any child is active
$childActive
=
false
;
$childActive
=
false
;
foreach
(
$visibleChildren
as
$child
)
{
foreach
(
$visibleChildren
as
$child
)
{
if
(
$isActive
(
$child
[
'route'
]
??
''
))
{
if
(
$isActive
(
$child
[
'route'
]
??
''
))
{
$childActive
=
true
;
break
;
}
$childActive
=
true
;
break
;
}
}
}
$isOpen
=
$itemActive
||
$childActive
;
$isOpen
=
$itemActive
||
$childActive
;
$icon
=
$getIcon
(
$item
[
'icon'
]
??
''
);
?>
?>
<li
class=
"sidebar-item
<?=
$isOpen
&&
$hasChildren
?
' open'
:
''
?>
"
>
<li
class=
"sidebar-item
<?=
$isOpen
&&
$hasChildren
?
' open'
:
''
?>
"
>
<?php
if
(
$hasChildren
)
:
?>
<?php
if
(
$hasChildren
)
:
?>
<a
href=
"javascript:void(0)"
class=
"sidebar-link
<?=
$itemActive
?
' active'
:
''
?>
"
onclick=
"toggleSubmenu(this)"
>
<a
href=
"javascript:void(0)"
class=
"sidebar-link
<?=
$itemActive
?
' active'
:
''
?>
"
onclick=
"toggleSubmenu(this)"
>
<span
class=
"sidebar-icon"
>
<?=
$i
tem
[
'icon'
]
??
''
?>
</span>
<span
class=
"sidebar-icon"
>
<?=
$i
con
?>
</span>
<span
class=
"sidebar-text"
>
<?=
e
(
$item
[
'label_ar'
])
?>
</span>
<span
class=
"sidebar-text"
>
<?=
e
(
$item
[
'label_ar'
])
?>
</span>
<span
class=
"sidebar-arrow"
>
◀
</span>
<span
class=
"sidebar-arrow"
>
◀
</span>
</a>
</a>
...
@@ -380,7 +169,7 @@ if (empty($menuItems)) {
...
@@ -380,7 +169,7 @@ if (empty($menuItems)) {
</ul>
</ul>
<?php
else
:
?>
<?php
else
:
?>
<a
href=
"
<?=
e
(
$itemRoute
)
?>
"
class=
"sidebar-link
<?=
$itemActive
?
' active'
:
''
?>
"
>
<a
href=
"
<?=
e
(
$itemRoute
)
?>
"
class=
"sidebar-link
<?=
$itemActive
?
' active'
:
''
?>
"
>
<span
class=
"sidebar-icon"
>
<?=
$i
tem
[
'icon'
]
??
''
?>
</span>
<span
class=
"sidebar-icon"
>
<?=
$i
con
?>
</span>
<span
class=
"sidebar-text"
>
<?=
e
(
$item
[
'label_ar'
])
?>
</span>
<span
class=
"sidebar-text"
>
<?=
e
(
$item
[
'label_ar'
])
?>
</span>
</a>
</a>
<?php
endif
;
?>
<?php
endif
;
?>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment