@php $frontendSettings = $frontendSettings ?? []; $faviconPath = $frontendSettings['site_favicon_path'] ?? null; $faviconUrl = $faviconPath ? asset('storage/' . ltrim((string) $faviconPath, '/')) : asset('favicon.ico'); @endphp @php $manifestPath = public_path('build/manifest.json'); $hotPath = public_path('hot'); $useHot = false; if (file_exists($hotPath)) { $hotUrl = trim((string) @file_get_contents($hotPath)); if ($hotUrl !== '') { $parts = parse_url($hotUrl); $host = $parts['host'] ?? null; $port = $parts['port'] ?? (($parts['scheme'] ?? '') === 'https' ? 443 : 80); if ($host && $port) { $conn = @fsockopen($host, (int) $port, $errno, $errstr, 0.15); if (is_resource($conn)) { fclose($conn); $useHot = true; } } } } $manifest = null; if (! $useHot && file_exists($manifestPath)) { $manifest = json_decode((string) file_get_contents($manifestPath), true) ?: []; } @endphp @if ($useHot) @vite(['resources/css/app.css', 'resources/js/app.js']) @elseif (is_array($manifest)) @if (!empty($manifest['resources/css/app.css']['file'])) @endif @if (!empty($manifest['resources/js/app.js']['file'])) @endif @else @vite(['resources/css/app.css', 'resources/js/app.js']) @endif @if(Auth::check() && Auth::user()->hasRole('admin')) @if ($useHot) @vite(['resources/js/admin.js']) @elseif (is_array($manifest) && !empty($manifest['resources/js/admin.js']['file'])) @else @vite(['resources/js/admin.js']) @endif @endif @stack('styles') @php $panelLabel = 'Student Panel'; $panelTone = 'Learning Space'; $user = auth()->user(); if ($user && method_exists($user, 'hasRole')) { if ($user->hasRole('admin')) { $panelLabel = 'Admin Panel'; $panelTone = 'Operations Center'; } elseif ($user->hasRole('mentor')) { $panelLabel = 'Mentor Panel'; $panelTone = 'Teaching Hub'; } } $logoPath = $frontendSettings['site_logo_path'] ?? null; $logoUrl = $logoPath ? asset('storage/' . ltrim((string) $logoPath, '/')) : asset('brand/itechbd-logo.png'); $frontendHomeUrl = rtrim((string) config('app.frontend_url', 'http://localhost:3000'), '/') . '/auth/backend?locale=' . (app()->getLocale() === 'bn' ? 'bn' : 'en'); @endphp
@isset($header) {{ $header }} @else

{{ $panelLabel }}

{{ now()->format('l, d M Y') }}

@endisset
@isset($headerActions) {{ $headerActions }} @endisset
{{ __('Profile') }}Account settings
@csrf
@php $globalSuccess = session('success'); if (! $globalSuccess && session('status') === 'password-updated') { $globalSuccess = __('frontend.password_updated_success'); } @endphp @if ($globalSuccess)
{{ $globalSuccess }}
@endif @if ($errors->any())
Please check the form again.
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if (isset($slot)) {{ $slot }} @else @yield('content') @endif
@stack('scripts')