feat: make dashboard and sidebar dynamic
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
<li><a class="dropdown-item" href="register.html">ثبت نام</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3">
|
||||
<ul>
|
||||
<li><a class="dropdown-item" href="profile-notification.html">اطلاعیه</a></li>
|
||||
@@ -38,41 +37,32 @@
|
||||
<li><a class="dropdown-item" href="contact.html">با ما تماس بگیرید</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown"> پرواز ها</a>
|
||||
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown">پرواز ها</a>
|
||||
<ul class="dropdown-menu fade-down">
|
||||
<li><a class="dropdown-item" href="{{route('flight.index')}}">لیست پرواز</a>
|
||||
|
||||
<li><a class="dropdown-item" href="{{route('flight.index')}}">لیست پرواز</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown"> تور ها</a>
|
||||
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown">تور ها</a>
|
||||
<ul class="dropdown-menu fade-down">
|
||||
<li><a class="dropdown-item" href="{{route('tour.index')}}">لیست تور</a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="nav-item"><a class="nav-link" href="contact.html">تماس باما</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
<div class="header-nav-right">
|
||||
<div class="header-btn">
|
||||
@if(!auth()->check())
|
||||
<a href="{{route('auth.register.index')}}" class="theme-btn mt-2">ثبت نام | ورود</a>
|
||||
@if(auth('admin')->check())
|
||||
<a href="{{route('admin.dashboard')}}" class="theme-btn mt-2">پنل ادمین</a>
|
||||
@elseif(auth('web')->check())
|
||||
<a href="{{route('profile')}}" class="theme-btn mt-2">پروفایل</a>
|
||||
@else
|
||||
<a href="{{route('profile')}}" class="theme-btn mt-2">{{auth()->user()->first_name . ' ' . auth()->user()->last_name}}</a>
|
||||
<a href="{{route('auth.register.index')}}" class="theme-btn mt-2">ثبت نام | ورود</a>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user