@if(auth()->check())
    @include('backEnd.partials.header')

    @yield('mainContent')
    @yield('content')

    @include('backEnd.partials.footer')
@else
    <!doctype html>
    <html lang="{{ app()->getLocale() }}" data-theme="dark">
    <head>
        <meta charset="utf-8">
        <meta name="csrf-token" content="{{ csrf_token() }}">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>@yield('title', config('app.name', 'Student Portal'))</title>
        <link rel="stylesheet" href="{{ asset('public/backEnd/vendors/css/bootstrap.min.css') }}">
        <x-root-css/>
        <link rel="stylesheet" href="{{ asset('public/backEnd/assets/css/global-theme.css') }}">
    </head>
    <body class="admin login theme-dark" data-theme="dark">
        <main class="auth-layout-shell">
            @yield('content')
            @yield('mainContent')
        </main>
        <script src="{{ asset('public/backEnd/js/global-theme.js') }}"></script>
    </body>
    </html>
@endif
