385 lines
20 KiB
Plaintext
385 lines
20 KiB
Plaintext
@using System.Security.Claims
|
|
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
|
@inject _0_Framework.Application.IAuthHelper AuthHelper;
|
|
|
|
@{
|
|
var currentAccount = AuthHelper.CurrentAccountInfo();
|
|
var redirectDashboard = "";
|
|
if (User.Identity is { IsAuthenticated: true })
|
|
{
|
|
if (User.FindFirstValue("IsCamera") == "true")
|
|
{
|
|
redirectDashboard = "/Camera";
|
|
}
|
|
else if ((User.FindFirstValue("ClientAriaPermission") == "true") && (User.FindFirstValue("AdminAreaPermission") == "false"))
|
|
{
|
|
redirectDashboard = "/Client";
|
|
}
|
|
else
|
|
{
|
|
redirectDashboard = "/Admin";
|
|
}
|
|
}
|
|
|
|
<style>
|
|
.liActive {
|
|
background-color: #F1F1F1;
|
|
width: 100%;
|
|
border-radius: 9px;
|
|
}
|
|
|
|
.dark\:liActive:is(.dark *) {
|
|
background-color: #212330;
|
|
width: 100%;
|
|
border-radius: 9px;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.liActive svg {
|
|
stroke: #575757;
|
|
}
|
|
|
|
.dark\:liActive:is(.dark *) svg {
|
|
stroke: #ffffff;
|
|
}
|
|
|
|
.authBg {
|
|
background-color: #F1F1F1;
|
|
width: 100%;
|
|
border-radius: 9px;
|
|
padding: 7px;
|
|
}
|
|
.dark\:authBg:is(.dark *) {
|
|
background-color: #212330;
|
|
width: 100%;
|
|
border-radius: 9px;
|
|
padding: 7px;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.mobileAuth:first-child {
|
|
color: #575757; font-size: 13px;
|
|
}
|
|
|
|
.mobileAuth:last-child {
|
|
color: #878787; font-size: 11px;
|
|
}
|
|
|
|
|
|
.dark\:mobileAuth:is(.dark *) {
|
|
color: #ffffff;
|
|
}
|
|
|
|
|
|
.dark\:authBg:is(.dark *) svg {
|
|
stroke: #ffffff;
|
|
}
|
|
|
|
.authBg .avatar{
|
|
background-color: #E8E8E8;
|
|
// width: 100%;
|
|
border-radius: 7px;
|
|
padding: 2px
|
|
}
|
|
|
|
.authBgLog {
|
|
background-color: #F1F1F1;
|
|
width: 100%;
|
|
border-radius: 9px;
|
|
padding: 7px 9px;
|
|
text-align: center;
|
|
}
|
|
|
|
.dark\:authBgLog:is(.dark *) {
|
|
background-color: #212330;
|
|
width: 100%;
|
|
border-radius: 9px;
|
|
padding: 7px 9px;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.lineAuthSeparate {
|
|
background: #ffffff; background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(171, 171, 171, 1) 50%, rgba(255, 255, 255, 1) 100%); width: 100%; height: 1px; margin: 31px auto;
|
|
}
|
|
|
|
.dark\:lineAuthSeparate:is(.dark *) {
|
|
background: #171923;
|
|
background: linear-gradient(90deg,rgba(23, 25, 35, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(23, 25, 35, 1) 100%);
|
|
width: 100%; height: 1px; margin: 31px auto;
|
|
}
|
|
|
|
</style>
|
|
}
|
|
|
|
<div class="bg-white py-3 px-1 border-b-2 border-b-gray-200 z-[100] sticky top-0 dark:bg-[#212330] dark:border-b-[#212330] md:px-3 lg:px-6">
|
|
<div class="flex items-center justify-between space-x-3">
|
|
<div class="hidden items-center gap-2 lg:flex">
|
|
<div class="text-[#138A8A] text-[0.75rem] font-[800] lg:text-[0.86rem]">گزارشگیر</div>
|
|
<div class="text-[#138A8A] text-[0.71rem] font-[700] lg:text-[0.82rem]">سامانه هوشمند مدیریت منابع انسانی</div>
|
|
</div>
|
|
<div class="flex items-center gap-3 lg:hidden">
|
|
|
|
<button onclick="toggleMenu()" class="text-[#33363F] dark:text-white" class="mx-1">
|
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M5 7H19" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
|
|
<path d="M5 12H19" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
|
|
<path d="M5 17H19" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
|
|
</svg>
|
|
</button>
|
|
|
|
<div class="flex items-center gap-3">
|
|
<img src="~/AssetsMain/images/logo.svg" class="w-9" alt="" srcset="">
|
|
<div class="text-[#178C8C]">
|
|
<div class="text-[0.9rem] font-[900]">گزارشگیر</div>
|
|
<div class="text-[0.8rem] font-[700]">سامانه هوشمند منابع انسانی</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="flex items-center gap-2 text-[#575757] dark:text-white lg:gap-5">
|
|
<div class="hidden gap-3 items-center lg:flex">
|
|
@* <div class="text-[0.75rem] font-[500] lg:text-[0.86rem]">پایگاه دانش</div> *@
|
|
<div class="text-[0.75rem] font-[500] lg:text-[0.86rem]"><a asp-page="/about-us/Index">درباره ما</a></div>
|
|
<div class="text-[0.75rem] font-[500] lg:text-[0.86rem]"><a asp-page="/contact-us/Index">تماس با ما</a></div>
|
|
<div class="text-[0.75rem] font-[500] lg:text-[0.86rem]"><a asp-page="/complaints/Index">ثبت شکایات</a></div>
|
|
<div class="h-7 w-1 border-e-2 border-[#575757]"></div>
|
|
</div>
|
|
|
|
@if (User.Identity.IsAuthenticated)
|
|
{
|
|
<div class="flex gap-1 lg:hidden">
|
|
<a href="@redirectDashboard">
|
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<g id="User_box_duotone">
|
|
<path id="Rectangle 1" d="M3 11C3 7.22876 3 5.34315 4.17157 4.17157C5.34315 3 7.22876 3 11 3H13C16.7712 3 18.6569 3 19.8284 4.17157C21 5.34315 21 7.22876 21 11V13C21 16.7712 21 18.6569 19.8284 19.8284C18.6569 21 16.7712 21 13 21H11C7.22876 21 5.34315 21 4.17157 19.8284C3 18.6569 3 16.7712 3 13V11Z" fill="#A9EEEE"/>
|
|
<circle id="Ellipse 46" cx="12" cy="10" r="4" fill="#138A8A"/>
|
|
<path id="Intersect" fill-rule="evenodd" clip-rule="evenodd" d="M18.9463 20.2532C18.9616 20.3587 18.9048 20.4613 18.8063 20.5021C17.6048 21 15.8353 21 13 21H11C8.16476 21 6.3953 21 5.19377 20.5022C5.0953 20.4614 5.03846 20.3587 5.05373 20.2532C5.48265 17.2919 8.42909 15 12 15C15.571 15 18.5174 17.2919 18.9463 20.2532Z" fill="#138A8A"/>
|
|
</g>
|
|
</svg>
|
|
</a>
|
|
|
|
@* <button>
|
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M10.3604 5.91585L17.6802 3.44543C18.3284 3.22665 19 3.70878 19 4.39292V19.6071C19 20.2912 18.3284 20.7733 17.6802 20.5546L10.3604 18.0841C9.54739 17.8097 9 17.0473 9 16.1892V7.81083C9 6.95273 9.5474 6.19025 10.3604 5.91585Z" fill="#A9EEEE" />
|
|
<path d="M5.75 9L3 12M3 12L5.75 15M3 12H11" stroke="#138A8A" stroke-linecap="round" />
|
|
</svg>
|
|
</button> *@
|
|
</div>
|
|
}
|
|
|
|
<button id="btn-darkmode" class="cursor-pointer text-[#585960] dark:text-[#D1D1D1]">
|
|
<svg class="inline dark:hidden" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M11.6247 5.00988C11.7489 5.00332 11.874 5 11.9998 5C15.8658 5 18.9998 8.13401 18.9998 12C18.9998 15.866 15.8658 19 11.9998 19C10.6729 19 9.43231 18.6308 8.375 17.9896C12.0666 17.7946 14.9998 14.7396 14.9998 10.9995C14.9998 8.46034 13.6479 6.23697 11.6247 5.00988Z" fill="currentColor" />
|
|
<path d="M5.4 10.2L5.4 10.2C5.50137 10.5041 5.55206 10.6562 5.60276 10.7225C5.80288 10.9843 6.19712 10.9843 6.39724 10.7225C6.44794 10.6562 6.49863 10.5041 6.6 10.2L6.6 10.2C6.68177 9.95468 6.72266 9.83201 6.77555 9.72099C6.97291 9.30672 7.30672 8.97291 7.72099 8.77555C7.83201 8.72266 7.95468 8.68177 8.2 8.6L8.2 8.6C8.50412 8.49863 8.65618 8.44794 8.7225 8.39724C8.98431 8.19712 8.98431 7.80288 8.7225 7.60276C8.65618 7.55206 8.50412 7.50137 8.2 7.4L8.2 7.4C7.95468 7.31822 7.83201 7.27734 7.72099 7.22445C7.30672 7.02709 6.97291 6.69329 6.77555 6.27901C6.72266 6.16799 6.68177 6.04532 6.6 5.8C6.49863 5.49588 6.44794 5.34382 6.39724 5.2775C6.19712 5.01569 5.80288 5.01569 5.60276 5.2775C5.55206 5.34382 5.50137 5.49588 5.4 5.8C5.31823 6.04532 5.27734 6.16799 5.22445 6.27901C5.02709 6.69329 4.69329 7.02709 4.27901 7.22445C4.16799 7.27734 4.04532 7.31823 3.8 7.4C3.49588 7.50137 3.34382 7.55206 3.2775 7.60276C3.01569 7.80288 3.01569 8.19712 3.2775 8.39724C3.34382 8.44794 3.49588 8.49863 3.8 8.6C4.04532 8.68177 4.16799 8.72266 4.27901 8.77555C4.69329 8.97291 5.02709 9.30672 5.22445 9.72099C5.27734 9.83201 5.31822 9.95468 5.4 10.2Z" fill="currentColor" />
|
|
</svg>
|
|
|
|
<svg class="hidden dark:inline" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<circle cx="12" cy="12" r="4" fill="white" />
|
|
<path d="M12 5V3" stroke="white" stroke-width="2" stroke-linecap="round" />
|
|
<path d="M12 21V19" stroke="white" stroke-width="2" stroke-linecap="round" />
|
|
<path d="M16.9498 7.05093L18.364 5.63672" stroke="white" stroke-width="2" stroke-linecap="round" />
|
|
<path d="M5.63608 18.3634L7.05029 16.9492" stroke="white" stroke-width="2" stroke-linecap="round" />
|
|
<path d="M19 12L21 12" stroke="white" stroke-width="2" stroke-linecap="round" />
|
|
<path d="M3 12L5 12" stroke="white" stroke-width="2" stroke-linecap="round" />
|
|
<path d="M16.9498 16.9491L18.364 18.3633" stroke="white" stroke-width="2" stroke-linecap="round" />
|
|
<path d="M5.63608 5.63657L7.05029 7.05078" stroke="white" stroke-width="2" stroke-linecap="round" />
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="hidden items-center justify-between space-x-3 px-3 lg:flex">
|
|
<div class="flex items-center gap-9">
|
|
<img src="~/AssetsMain/images/logo.svg" class="w-16" alt="" srcset="">
|
|
<ul id="main-menu" class="flex items-center gap-9 text-[#575757] dark:text-white">
|
|
<li class="text-[0.8rem] font-[600] cursor-pointer duration-300 ease-in-out hover:text-[#282828] lg:text-[0.9rem] dark:hover:text-[#c9c9c9]"><a asp-page="/Index">صفحه اصلی</a></li>
|
|
<li class="text-[0.8rem] font-[600] cursor-pointer duration-300 ease-in-out hover:text-[#282828] lg:text-[0.9rem] dark:hover:text-[#c9c9c9]"><a href="/" data-scroll-to="services">خدمات</a></li>
|
|
@*<li class="text-[0.8rem] font-[600] cursor-pointer duration-300 ease-in-out hover:text-[#282828] lg:text-[0.9rem] dark:hover:text-[#c9c9c9]">منابع دانش</li> *@
|
|
<li class="text-[0.8rem] font-[600] cursor-pointer duration-300 ease-in-out hover:text-[#282828] lg:text-[0.9rem] dark:hover:text-[#c9c9c9]"><a asp-page="/contact-us/Index">تماس با ما</a></li>
|
|
<li class="text-[0.8rem] font-[600] cursor-pointer duration-300 ease-in-out hover:text-[#282828] lg:text-[0.9rem] dark:hover:text-[#c9c9c9]"><a asp-page="/about-us/Index">درباره ما</a></li>
|
|
<li class="text-[0.8rem] font-[600] cursor-pointer duration-300 ease-in-out hover:text-[#282828] lg:text-[0.9rem] dark:hover:text-[#c9c9c9]"><a asp-page="/rule/Index">قوانین و مقررات</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="flex items-center gap-3">
|
|
@if (User.Identity.IsAuthenticated)
|
|
{
|
|
<a href="@redirectDashboard" class="py-[0.54rem] w-[5.1rem] px-1 text-[0.8rem] font-[500] text-center bg-white border-2 border-[#2DBCBC] text-[#138F8F] rounded-md duration-500 ease-in-out hover:bg-[#2DBCBC] hover:text-white">
|
|
@* <span>@currentAccount.Fullname</span> *@
|
|
<span>پیشخان</span>
|
|
</a>
|
|
<a asp-page="/Index" asp-page-handler="Logout" class="py-[0.54rem] w-[5.1rem] px-1 text-[0.8rem] font-[500] text-center bg-white border-2 border-[#2DBCBC] text-[#138F8F] rounded-md duration-500 ease-in-out hover:bg-[#2DBCBC] hover:text-white">
|
|
<span>خروج</span>
|
|
</a>
|
|
}
|
|
else
|
|
{
|
|
<a asp-page="/login/Index" class="py-[0.54rem] w-[5.1rem] px-1 text-[0.8rem] font-[500] text-center bg-white border-2 border-[#2DBCBC] text-[#138F8F] rounded-md duration-500 ease-in-out hover:bg-[#2DBCBC] hover:text-white">
|
|
<span>ورود</span>
|
|
</a>
|
|
<a asp-page="/register/Index" class="py-[0.54rem] w-[5.1rem] px-1 text-[0.8rem] font-[500] text-center bg-white border-2 border-[#2DBCBC] text-[#138F8F] rounded-md duration-500 ease-in-out hover:bg-[#2DBCBC] hover:text-white">
|
|
<span>ثبت نام</span>
|
|
</a>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="relative z-[504]">
|
|
<div id="menu-backdrop" class="fixed inset-0 bg-black/50 z-20 hidden transition-opacity duration-300" onclick="closeMenu()"></div>
|
|
<aside id="menu-sidebar"
|
|
class="fixed top-0 right-0 h-full w-[240px] bg-white transform translate-x-full transition-transform duration-300 z-30 dark:bg-[#171923]">
|
|
<div class="flex flex-col h-full justify-between" style="padding: 15px;">
|
|
<div class="flex flex-col h-full">
|
|
<div class="flex justify-between items-center mb-6">
|
|
<div class="flex items-center gap-3">
|
|
<img src="~/AssetsMain/images/logo.svg" class="w-9" alt="" srcset="">
|
|
<div class="text-[#178C8C]">
|
|
<div class="text-[0.9rem] font-[900]">گزارشگیر</div>
|
|
<div class="text-[0.8rem] font-[700]">سامانه هوشمند منابع انسانی</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<ul class="gap-4 text-sm font-medium text-[#575757] dark:text-white">
|
|
<li class="text-[0.8rem] font-[600] duration-300 ease-in-out my-1 hover:text-[#282828] lg:text-[0.9rem] dark:hover:text-[#c9c9c9]">
|
|
<a asp-page="/Index" class="flex items-center gap-2 nav-link" style="padding: 3px;">
|
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M5 12.7595C5 11.4018 5 10.7229 5.27446 10.1262C5.54892 9.52943 6.06437 9.08763 7.09525 8.20401L8.09525 7.34687C9.95857 5.74974 10.8902 4.95117 12 4.95117C13.1098 4.95117 14.0414 5.74974 15.9047 7.34687L16.9047 8.20401C17.9356 9.08763 18.4511 9.52943 18.7255 10.1262C19 10.7229 19 11.4018 19 12.7595V16.9999C19 18.8856 19 19.8284 18.4142 20.4142C17.8284 20.9999 16.8856 20.9999 15 20.9999H9C7.11438 20.9999 6.17157 20.9999 5.58579 20.4142C5 19.8284 5 18.8856 5 16.9999V12.7595Z" stroke="currentColor"/>
|
|
<path d="M14.5 21V16C14.5 15.4477 14.0523 15 13.5 15H10.5C9.94772 15 9.5 15.4477 9.5 16V21" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
|
</svg>
|
|
<span>صفحه اصلی</span>
|
|
</a>
|
|
</li>
|
|
<li class="text-[0.8rem] font-[600] duration-300 ease-in-out my-1 hover:text-[#282828] lg:text-[0.9rem] dark:hover:text-[#c9c9c9]">
|
|
<a href="#" class="flex items-center gap-2 nav-link" style="padding: 3px;">
|
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<rect x="3" y="3" width="7" height="7" rx="1" stroke="currentColor" stroke-linecap="round"/>
|
|
<rect x="3" y="14" width="7" height="7" rx="1" stroke="currentColor" stroke-linecap="round"/>
|
|
<rect x="14" y="3" width="7" height="7" rx="1" stroke="currentColor" stroke-linecap="round"/>
|
|
<path d="M17.5 14L17.5 21.0002" stroke="currentColor" stroke-linecap="round"/>
|
|
<path d="M21 17.5L13.9998 17.5" stroke="currentColor" stroke-linecap="round"/>
|
|
</svg>
|
|
<span>خدمات</span>
|
|
</a>
|
|
</li>
|
|
<li class="text-[0.8rem] font-[600] duration-300 ease-in-out my-1 hover:text-[#282828] lg:text-[0.9rem] dark:hover:text-[#c9c9c9]">
|
|
<a href="#" class="flex items-center gap-2 nav-link" style="padding: 3px;">
|
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M20 12V17C20 18.8856 20 19.8284 19.4142 20.4142C18.8284 21 17.8856 21 16 21H6.5C5.11929 21 4 19.8807 4 18.5V18.5C4 17.1193 5.11929 16 6.5 16H16C17.8856 16 18.8284 16 19.4142 15.4142C20 14.8284 20 13.8856 20 12V7C20 5.11438 20 4.17157 19.4142 3.58579C18.8284 3 17.8856 3 16 3H8C6.11438 3 5.17157 3 4.58579 3.58579C4 4.17157 4 5.11438 4 7V18.5" stroke="currentColor"/>
|
|
<path d="M9 8L15 8" stroke="currentColor" stroke-linecap="round"/>
|
|
</svg>
|
|
<span>منابع دانش</span>
|
|
</a>
|
|
</li>
|
|
<li class="text-[0.8rem] font-[600] duration-300 ease-in-out my-1 hover:text-[#282828] lg:text-[0.9rem] dark:hover:text-[#c9c9c9]">
|
|
<a asp-page="/contact-us/Index" class="flex items-center gap-2 nav-link" style="padding: 3px;">
|
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<circle cx="12" cy="12" r="7.5" stroke="currentColor"/>
|
|
<path d="M14.5 12C14.5 14.1651 14.1701 16.1029 13.6532 17.4813C13.394 18.1723 13.0975 18.6969 12.7936 19.0396C12.4892 19.383 12.2199 19.5 12 19.5C11.7801 19.5 11.5108 19.383 11.2064 19.0396C10.9025 18.6969 10.606 18.1723 10.3468 17.4813C9.82994 16.1029 9.5 14.1651 9.5 12C9.5 9.83494 9.82994 7.89713 10.3468 6.51871C10.606 5.82765 10.9025 5.30314 11.2064 4.96038C11.5108 4.61704 11.7801 4.5 12 4.5C12.2199 4.5 12.4892 4.61704 12.7936 4.96038C13.0975 5.30314 13.394 5.82765 13.6532 6.51871C14.1701 7.89713 14.5 9.83494 14.5 12Z" stroke="currentColor"/>
|
|
<path d="M4.5 12H19.5" stroke="currentColor" stroke-linecap="round"/>
|
|
</svg>
|
|
<span>تماس با ما</span>
|
|
</a>
|
|
</li>
|
|
<li class="text-[0.8rem] font-[600] duration-300 ease-in-out my-1 hover:text-[#282828] lg:text-[0.9rem] dark:hover:text-[#c9c9c9]">
|
|
<a asp-page="/about-us/Index" class="flex items-center gap-2 nav-link" style="padding: 3px;">
|
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M12 21V13M12 21L5.83752 16.5982C5.42695 16.305 5.22166 16.1583 5.11083 15.943C5 15.7276 5 15.4753 5 14.9708V8M12 21L18.1625 16.5982C18.573 16.305 18.7783 16.1583 18.8892 15.943C19 15.7276 19 15.4753 19 14.9708V8M12 13L5 8M12 13L19 8M5 8L10.8375 3.83034C11.3989 3.42938 11.6795 3.2289 12 3.2289C12.3205 3.2289 12.6011 3.42938 13.1625 3.83034L19 8" stroke="currentColor" stroke-linejoin="round"/>
|
|
</svg>
|
|
<span>درباره ما</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="lineAuthSeparate dark:lineAuthSeparate"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="flex items-center flex-col gap-2">
|
|
@if (User.Identity.IsAuthenticated)
|
|
{
|
|
<a href="@redirectDashboard" class="flex items-center justify-between gap-3 authBg dark:authBg">
|
|
<div class="flex items-center gap-3">
|
|
<svg class="avatar" width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<circle cx="21" cy="14" r="7" fill="#27B0B0"/>
|
|
<path d="M10.3497 26.9805C11.3367 24.2847 14.0217 22.75 16.8926 22.75H25.1074C27.9783 22.75 30.6633 24.2847 31.6503 26.9805C32.3775 28.9667 33.0698 31.4546 33.22 34.0005C33.2525 34.5518 32.8023 35 32.25 35H9.75C9.19771 35 8.74746 34.5518 8.78 34.0005C8.93024 31.4546 9.62253 28.9667 10.3497 26.9805Z" fill="#27B0B0"/>
|
|
</svg>
|
|
|
|
<div>
|
|
<div class="mobileAuth dark:mobileAuth">@currentAccount.Fullname</div>
|
|
<div class="mobileAuth dark:mobileAuth">@currentAccount.WorkshopName</div>
|
|
</div>
|
|
</div>
|
|
|
|
<svg width="12" height="20" viewBox="0 0 12 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M10.25 1.5L1.75 10L10.25 18.5" stroke="#757575" stroke-width="2" stroke-linecap="round"/>
|
|
</svg>
|
|
</a>
|
|
|
|
|
|
<a asp-page="/Index" asp-page-handler="Logout" class="flex items-center justify-center gap-3 authBg dark:authBg">
|
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M2 12L1.60957 11.6877L1.35969 12L1.60957 12.3123L2 12ZM11 12.5C11.2761 12.5 11.5 12.2761 11.5 12C11.5 11.7239 11.2761 11.5 11 11.5V12.5ZM5.60957 6.68765L1.60957 11.6877L2.39043 12.3123L6.39043 7.31235L5.60957 6.68765ZM1.60957 12.3123L5.60957 17.3123L6.39043 16.6877L2.39043 11.6877L1.60957 12.3123ZM2 12.5H11V11.5H2V12.5Z" fill="currentColor"/>
|
|
<path d="M10 8.13193V7.38851C10 5.77017 10 4.961 10.474 4.4015C10.9479 3.84201 11.7461 3.70899 13.3424 3.44293L15.0136 3.1644C18.2567 2.62388 19.8782 2.35363 20.9391 3.25232C22 4.15102 22 5.79493 22 9.08276V14.9172C22 18.2051 22 19.849 20.9391 20.7477C19.8782 21.6464 18.2567 21.3761 15.0136 20.8356L13.3424 20.5571C11.7461 20.291 10.9479 20.158 10.474 19.5985C10 19.039 10 18.2298 10 16.6115V16.066" stroke="currentColor"/>
|
|
</svg>
|
|
<span>خروج</span>
|
|
</a>
|
|
}
|
|
else
|
|
{
|
|
<div class="authBgLog mb-2 dark:authBgLog">
|
|
<a asp-page="/login/Index" class="px-1 text-[0.8rem] font-[500] text-center rounded-md duration-500 ease-in-out">
|
|
<span>ورود</span>
|
|
</a>
|
|
</div>
|
|
<div class="authBgLog dark:authBgLog">
|
|
<a asp-page="/register/Index" class="px-1 text-[0.8rem] font-[500] text-center rounded-md duration-500 ease-in-out">
|
|
<span>ثبت نام</span>
|
|
</a>
|
|
</div>
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</aside>
|
|
</div>
|
|
|
|
<script>
|
|
setActiveClassByRoute('.nav-link');
|
|
|
|
function toggleMenu() {
|
|
const sidebar = document.getElementById('menu-sidebar');
|
|
const backdrop = document.getElementById('menu-backdrop');
|
|
sidebar.classList.toggle('translate-x-full');
|
|
backdrop.classList.toggle('hidden');
|
|
}
|
|
|
|
function closeMenu() {
|
|
const sidebar = document.getElementById('menu-sidebar');
|
|
const backdrop = document.getElementById('menu-backdrop');
|
|
sidebar.classList.add('translate-x-full');
|
|
backdrop.classList.add('hidden');
|
|
}
|
|
|
|
function setActiveClassByRoute(selector) {
|
|
const currentPath = window.location.pathname;
|
|
|
|
document.querySelectorAll(selector).forEach(link => {
|
|
const linkPath = link.getAttribute('href');
|
|
|
|
if (linkPath === currentPath) {
|
|
link.classList.add('liActive');
|
|
link.classList.add('dark:liActive');
|
|
} else {
|
|
link.classList.remove('liActive');
|
|
link.classList.remove('dark:liActive');
|
|
}
|
|
});
|
|
}
|
|
</script> |