@php $nav_menu = Cache::rememberForever('nav_menu', function () { return menuGetBySlug('nav-menu'); }); $categories = \Modules\Course\app\Models\CourseCategory::with('translation') ->where('status', 1) ->whereNull('parent_id') ->get(); @endphp {{ Cache::get('setting')->site_address }} {{ Cache::get('setting')->site_email }} {{ __('Follow Us On') }} : @foreach (getSocialLinks() as $socialLink) @endforeach @if (count(allLanguages()?->where('status', 1)) > 1) @forelse (allLanguages()?->where('status', 1) as $language) code ? 'selected' : '' }}> {{ $language->name }} @empty {{ __('English') }} @endforelse @endif @if (count(allCurrencies()?->where('status', 'active')) > 1) @forelse (allCurrencies()?->where('status', 'active') as $currency) currency_code ? 'selected' : '' }}> {{ $currency->currency_name }} @empty {{ __('USD') }} @endforelse @endif @if ($nav_menu) @foreach ($nav_menu as $menu) @if ($menu['link'] == '/' && Cache::get('setting')->show_all_homepage == 1) {{ __('Home') }} {{ __('Home One') }} {{ __('Home Two') }} @else {{ $menu['label'] }} @if ($menu['child']) @foreach ($menu['child'] as $child) {{ $child['label'] }} @endforeach @endif @endif @endforeach @guest {{ __('Sign Up') }} {{ __('Sign in') }} @endguest @endif @guest {{ __('Sign in') }} {{ __('Sign Up') }} @else @if (Auth::guard('web')->user()) @if(Auth::guard('web')->user()->role == 'instructor') {{ __('Instructor Dashboard') }} {{ __('Profile') }} @elseif(Auth::guard('web')->user()->role == 'student') {{ __('Student Dashboard') }} {{ __('Profile') }} @elseif(Auth::guard('web')->user()->role == 'counselor') {{ __('Counselor Dashboard') }} {{ __('Profile') }} @elseif(Auth::guard('web')->user()->role == 'company') {{ __('Company Dashboard') }} {{ __('Profile') }} @endif {{ __('Logout') }} @endif @endguest @if (count(allLanguages()?->where('status', 1)) > 1) @forelse (allLanguages()?->where('status', 1) as $language) code ? 'selected' : '' }}> {{ $language->name }} @empty {{ __('English') }} @endforelse @endif @if (count(allCurrencies()?->where('status', 'active')) > 1) @forelse (allCurrencies()?->where('status', 'active') as $currency) currency_code ? 'selected' : '' }}> {{ $currency->currency_name }} @empty {{ __('USD') }} @endforelse @endif @guest {{ __('login') }} {{ __('register') }} @endguest @auth @if (Auth::guard('web')->user()->role == 'instructor') {{ __('Dashboard') }} {{ __('Courses') }} @else {{ __('Dashboard') }} {{ __('Courses') }} @endif @endauth {{ __('Categories') }} @foreach ($categories as $category) slug) value="{{ $category->slug }}"> {{ $category->translation->name }} @endforeach @if (count(getSocialLinks()) > 0) @foreach (getSocialLinks() as $socialLink) @endforeach @endif {{-- start admin logout form --}} @csrf {{-- end admin logout form --}}