@if (Auth::check()) @php $email = Auth::user()->email; $logoPath = match ($email) { 'it-ch@chcgroup.in' => 'image/Healthwatch_logo.png', 'ssuresh@chcgroup.in' => 'image/Healthwatch_logo.png', 'prasaths@chcgroup.in' => 'image/Healthwatch_logo.png', 'yamit@chcgroup.in' => 'image/Healthwatch_logo.png', default => 'image/Healthwatch_logo.png' }; @endphp Logo @endif
@if (Auth::check()) {{-- ✅ CASE 1: it-ch@chcgroup.in --}} @if ($email === 'it-ch@chcgroup.in') Home Assigned My Tickets My Tickets {{-- ✅ CASE 2: ssuresh@chcgroup.in --}} @elseif ($email === 'ssuresh@chcgroup.in') Home Home Create Users Create Users Tickets Create Tickets Reports Reports {{-- ✅ CASE 3: prasaths@chcgroup.in --}} @elseif ($email === 'prasaths@chcgroup.in') Assigned Assigned Tickets My Tickets My Tickets {{-- ✅ CASE 4: yamit@chcgroup.in --}} @elseif ($email === 'yamit@chcgroup.in') Assigned Tickets Assigned Tickets My Tickets My Tickets {{-- ✅ CASE 5: Default Sidebar (Normal Users) --}} @else Home Home Users Create Users Tickets Create Tickets Reports Reports @endif Logout Logout
@csrf
@endif