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
56b6d45d
Commit
56b6d45d
authored
Apr 07, 2026
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 3 files via Son of Anton
parent
c74a9e19
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
743 additions
and
365 deletions
+743
-365
App.php
app/Core/App.php
+214
-69
main.php
app/Shared/Layout/main.php
+70
-36
main.css
public/assets/css/main.css
+459
-260
No files found.
app/Core/App.php
View file @
56b6d45d
This diff is collapsed.
Click to expand it.
app/Shared/Layout/main.php
View file @
56b6d45d
<?php
/**
* Main application layout — RTL Arabic-first.
* All authenticated pages use this layout.
*/
use
App\Core\App
;
use
App\Core\CSRF
;
$app
=
App
::
getInstance
();
$employee
=
$app
->
currentEmployee
();
$employeeName
=
$employee
?
(
$employee
->
full_name_ar
??
'مستخدم'
)
:
'زائر'
;
$currentPath
=
parse_url
(
$_SERVER
[
'REQUEST_URI'
]
??
'/'
,
PHP_URL_PATH
);
?>
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"ar"
dir=
"rtl"
>
<html
lang=
"ar"
dir=
"rtl"
>
<head>
<head>
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"csrf-token"
content=
"
<?=
\App\Core\CSRF
::
token
(
)
?>
"
>
<meta
name=
"csrf-token"
content=
"
<?=
e
(
CSRF
::
token
()
)
?>
"
>
<title>
<?=
$__template
->
yield
(
'title'
,
'
نادي النادي شيراتون'
)
?>
</title>
<title>
<?=
$__template
->
yield
(
'title'
,
'
لوحة التحكم'
)
?>
— نادي النادي شيراتون
</title>
<link
rel=
"stylesheet"
href=
"
<?=
url
(
'assets/css/main.css'
)
?>
"
>
<link
rel=
"stylesheet"
href=
"
<?=
url
(
'assets/css/main.css'
)
?>
"
>
<?=
$__template
->
yield
(
'styles'
,
''
)
?>
<?=
$__template
->
yield
(
'styles'
,
''
)
?>
</head>
</head>
<body>
<body>
<aside
class=
"sidebar"
id=
"sidebar"
>
<?php
$__template
->
include
(
'Shared.Components.sidebar'
,
[
'app'
=>
$app
]);
?>
</aside>
<div
class=
"main-wrapper"
>
<header
class=
"topbar"
>
<?php
$__template
->
include
(
'Shared.Components.header'
,
[
'app'
=>
$app
]);
?>
</header>
<div
class=
"content-area"
>
<div
class=
"breadcrumb-area"
>
<?=
$__template
->
yield
(
'breadcrumbs'
,
''
)
?>
</div>
<div
class=
"page-header-row"
>
<!-- Sidebar -->
<h1
class=
"page-title"
>
<?=
$__template
->
yield
(
'title'
,
''
)
?>
</h1>
<aside
class=
"sidebar"
id=
"sidebar"
>
<div
class=
"page-actions"
>
<?php
$__template
->
include
(
'Shared.Components.sidebar'
);
?>
<?=
$__template
->
yield
(
'page_actions'
,
''
)
?>
</aside>
</div>
</div>
<?php
$__template
->
include
(
'Shared.Components.alerts'
,
[
'app'
=>
$app
]);
?>
<!-- Main Wrapper -->
<div
class=
"main-wrapper"
id=
"main-wrapper"
>
<main
class=
"main-content"
>
<!-- Top Header -->
<?=
$__template
->
yield
(
'content'
,
''
)
?>
<header
class=
"top-header"
>
</main>
<div
class=
"header-right"
>
<button
class=
"sidebar-toggle-btn"
onclick=
"toggleSidebar()"
>
☰
</button>
<div
class=
"header-title"
>
<h1>
<?=
$__template
->
yield
(
'title'
,
'لوحة التحكم'
)
?>
</h1>
</div>
</div>
<div
class=
"header-left"
>
<?=
$__template
->
yield
(
'page_actions'
,
''
)
?>
<div
class=
"header-user"
>
<span
class=
"header-user-name"
>
<?=
e
(
$employeeName
)
?>
</span>
<a
href=
"/logout"
class=
"header-logout"
title=
"تسجيل الخروج"
>
🚪
</a>
</div>
</div>
</div>
</header>
<!-- Alerts -->
<?php
$__template
->
include
(
'Shared.Components.alerts'
);
?>
<footer
class=
"footer"
>
<!-- Page Content -->
<span>
نادي النادي شيراتون
©
<?=
date
(
'Y'
)
?>
</span>
<main
class=
"page-content"
>
<span>
الإصدار
<?=
e
(
$app
->
config
(
'app.version'
,
'1.0.0'
))
?>
</span>
<?=
$__template
->
yield
(
'content'
,
''
)
?>
<span>
<?=
arabic_date
(
today
())
?>
</span>
</main>
</footer>
</div>
<div
id=
"modal-container"
></div>
<!-- Footer -->
<div
id=
"toast-container"
class=
"toast-container"
></div>
<footer
class=
"page-footer"
>
<span>
نادي النادي شيراتون
©
<?=
date
(
'Y'
)
?>
</span>
<span>
الإصدار 1.0.0
</span>
<span>
<?=
arabic_date
(
date
(
'Y-m-d'
))
?>
</span>
</footer>
</div>
<script
src=
"
<?=
url
(
'assets/js/app.js'
)
?>
"
></script>
<script
src=
"
<?=
url
(
'assets/js/app.js'
)
?>
"
></script>
<?=
$__template
->
yield
(
'scripts'
,
''
)
?>
<script>
<?=
$__template
->
stack
(
'scripts'
)
?>
function
toggleSidebar
()
{
var
sb
=
document
.
getElementById
(
'sidebar'
);
var
mw
=
document
.
getElementById
(
'main-wrapper'
);
sb
.
classList
.
toggle
(
'collapsed'
);
mw
.
classList
.
toggle
(
'sidebar-collapsed'
);
}
function
toggleSubmenu
(
el
)
{
var
parent
=
el
.
parentElement
;
var
submenu
=
parent
.
querySelector
(
'.sidebar-submenu'
);
if
(
submenu
)
{
var
isOpen
=
submenu
.
style
.
display
===
'block'
;
submenu
.
style
.
display
=
isOpen
?
'none'
:
'block'
;
parent
.
classList
.
toggle
(
'open'
,
!
isOpen
);
}
}
</script>
<?=
$__template
->
yield
(
'scripts'
,
''
)
?>
</body>
</body>
</html>
</html>
\ No newline at end of file
public/assets/css/main.css
View file @
56b6d45d
This diff is collapsed.
Click to expand it.
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