feat: Implement VMware console access with a new API endpoint and UI, and update the admin header to display user details.

This commit is contained in:
pbao9
2026-02-14 15:36:25 +07:00
parent 78b87c10fe
commit 449502e290
7 changed files with 433 additions and 452 deletions
@@ -186,27 +186,31 @@
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="profileDropdown" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<img class="w-30px h-30px ms-1 rounded-circle" src="{{ url('https://placehold.co/30x30') }}" alt="profile">
<img class="w-30px h-30px ms-1 rounded-circle"
src="https://ui-avatars.com/api/?name={{ auth()->user()->lastname }}+{{ auth()->user()->firstname }}&background=random"
alt="profile">
</a>
<div class="dropdown-menu p-0" aria-labelledby="profileDropdown">
<div class="d-flex flex-column align-items-center border-bottom px-5 py-3">
<div class="mb-3">
<img class="w-80px h-80px rounded-circle" src="{{ url('https://placehold.co/80x80') }}" alt="">
<img class="w-80px h-80px rounded-circle"
src="https://ui-avatars.com/api/?name={{ auth()->user()->lastname }}+{{ auth()->user()->firstname }}&background=random"
alt="">
</div>
<div class="text-center">
<p class="fs-16px fw-bolder">Amiah Burton</p>
<p class="fs-12px text-secondary">amiahburton@gmail.com</p>
<p class="fs-16px fw-bolder">{{ auth()->user()->lastname }} {{ auth()->user()->firstname }}</p>
<p class="fs-12px text-secondary">{{ auth()->user()->email }}</p>
</div>
</div>
<ul class="list-unstyled p-1">
<li>
<a href="{{ url('/general/profile') }}" class="dropdown-item py-2 text-body ms-0">
<a href="{{ route('account') }}" class="dropdown-item py-2 text-body ms-0">
<i class="me-2 icon-md" data-lucide="user"></i>
<span>Profile</span>
</a>
</li>
<li>
<a href="javascript:;" class="dropdown-item py-2 text-body ms-0">
<a href="{{ route('account') }}" class="dropdown-item py-2 text-body ms-0">
<i class="me-2 icon-md" data-lucide="edit"></i>
<span>Edit Profile</span>
</a>
@@ -218,7 +222,7 @@
</a>
</li>
<li>
<a href="javascript:;" class="dropdown-item py-2 text-body ms-0">
<a href="{{ route('logout') }}" class="dropdown-item py-2 text-body ms-0">
<i class="me-2 icon-md" data-lucide="log-out"></i>
<span>Log Out</span>
</a>