App.blade.php #
1.Style Updates
Just before </head> close tag add the following
<style>
.select2-results__option {
padding: 6px;
user-select: none;
-webkit-user-select: none;
color: #000;
}
.form-control.form-control-solid {
background-color: #ffffff;
color: var(–bs-gray-700);
}
.dropdown.show>.form-control.form-control-solid, .form-control.form-control-solid.active, .form-control.form-control-solid.focus, .form-control.form-control-solid:active, .form-control.form-control-solid:focus {
background-color: #ffffff;
color: var(–bs-gray-700);
}
</style>
2.Footer Copyright update
Please update your footer with the following
<!–begin::Footer–>
<div class=“footer py-4 d-flex flex-column flex-md-row flex-stack” id=“kt_footer”>
<!–begin::Copyright–>
<div class=“text-dark order-2 order-md-1”>
<span class=“text-dark fw-semibold me-1”>2024©</span>
<a class=“text-gray-800 text-hover-primary”>{{ config(‘app.name’) }}</a>
</div>
<!–end::Copyright–>
<!–begin::Menu–>
<ul class=“menu menu-dark menu-hover-primary fw-semibold order-1”>
<li class=“menu-item”>
<a href=“https://creationweb.uk/services/phpvms-website-design/phpvms-creation-crew-center/” target=“_blank” class=“menu-link px-2”> Framework by Creation Crew</a>
</li>
<li class=“menu-item”>
<a href=“http://www.phpvms.net/” target=“_blank” class=“menu-link px-2”> Powered by phpvms</a>
</li>
</ul>
<!–end::Menu–>
</div>
</div>
<!–end::Footer–>
Nav.blade.php #
User menu updates
There are new Menu updates for the user menu which is pretty straightforward to update compared to the main nav menu.
Please head to your theme located at /phpvms/public/assets/frontend/THEMENAME/
Open nav.blade.php locate the User menu, this can be done by pressing Ctrl+f and pasting in the following <!–begin::User menu–>
Once located you can update your menu with the following –
@if(Auth::check())
<!–begin::Menu item–>
<div class=”menu-item px-5″>
<a href=”{{ route(‘frontend.profile.index’) }}” class=”menu-link px-5″>My Profile</a>
</div>
<!–end::Menu item→
<!–begin::Menu separator→
<div class=”separator my-2″></div>
<!–end::Menu separator→
<div class=”menu-item px-5″>
<a href=”{{ route(‘frontend.flights.bids’) }}” class=”menu-link px-5″>My Bids</a>
</div>
<div class=”menu-item px-5″>
<a href=”{{ route(‘frontend.pireps.index’) }}” class=”menu-link px-5″>My Pireps</a>
</div>
<!–begin::Menu item–>
@ability(‘admin’, ‘admin-access’)
<div class=”menu-item px-5″>
<a href=”{{ url(‘/admin’) }}” class=”menu-link px-5″>Admin</a>
</div>
<!–end::Menu item–>
@endability
<!–begin::Menu item–>
<div class=”menu-item px-5″>
<a href=”{{ url(‘/logout’) }}” class=”menu-link px-5″>Sign Out</a>
</div>
<!–end::Menu item–>
@else
<div class=”menu-item px-5″>
<a href=”{{ url(‘/login’) }}” class=”menu-link px-5″>Login</a>
</div>
<div class=”menu-item px-5″>
<a href=”{{ url(‘/register’) }}” class=”menu-link px-5″>Register</a>
</div>
<!–end::Menu separator–>
@endif
You can also update the main menu call to include the pilots name with the following
<!–begin::Name→
<div class=”d-none d-md-flex flex-column align-items-end justify-content-center me-2 me-md-4″>
<span class=”text-white opacity-75 fs-8 fw-semibold lh-1 mb-1″>{{ optional(Auth::user())->name_private ?? ‘User Account’}}</span>
<span class=”text-white fs-8 fw-bold lh-1″>Control Panel</span>
</div>
<!–end::Name→
Nav.blade.php #
Adding in Multi Language Menu option
Add the code below after the FDM Reports call and before the Admin Option call.
<!–begin::Menu separator–>
<div class=“separator my-2”></div>
<!–end::Menu separator–>
<!–begin::Menu item–>
<div class=“menu-item px-5” data-kt-menu-trigger=“{default: ‘click’, lg: ‘hover’}” data-kt-menu-placement=“left-start” data-kt-menu-offset=“-15px, 0”>
<a href=“#” class=“menu-link px-5”>
<span class=“menu-title position-relative”>Language
<span class=“fs-8 rounded bg-light px-3 py-2 position-absolute translate-middle-y top-50 end-0”>
<span class=“flag-icon flag-icon-{{ $languages[$locale][‘flag-icon’] }}”></span> {{ $languages[$locale][‘display’] }}
</span>
</span>
</a>
<!–begin::Menu sub–>
<div class=“menu-sub menu-sub-dropdown w-175px py-4”>
<!– Dynamically generated menu items for languages –>
@foreach ($languages as $lang => $language)
<div class=“menu-item px-3”>
@if ($lang != $locale)
<a href=“{{ route(‘frontend.lang.switch’, $lang) }}” class=“menu-link d-flex px-5”>
<span class=“symbol symbol-20px me-4”>
<span class=“flag-icon flag-icon-{{ $language[‘flag-icon’] }}”></span>
</span>{{ $language[‘display’] }}
</a>
@endif
</div>
@endforeach
</div>
<!–end::Menu sub–>
</div>
<!–end::Menu item–>
<!–begin::Menu separator–>
<div class=“separator my-2”></div>
<!–end::Menu separator–>