HEX
Server: LiteSpeed
System: Linux s3.sitechai.com 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64
User: workzeni (2217)
PHP: 8.1.32
Disabled: mail, show_source, system, shell_exec, passthru, exec, eval, shell
Upload Files
File: /home/workzeni/stream-flix.workzenix.com/resources/views/admin/index.blade.php
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@yield('title') - StreamFlix Admin</title>

    <!-- Fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">

    <!-- Font Awesome -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">

    <!-- Chart.js -->
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>

    <!-- Custom CSS -->
    <link href="{{ asset('admin/css/styles.css') }}" rel="stylesheet">
    @yield('style')

</head>

<body>
    <div class="admin-wrapper">
        <!-- Sidebar -->
        @include('admin.includes.left-sidebar')

        <!-- Main Content -->
        <main class="main-content">
            <!-- Header -->
            @include('admin.includes.header')

            <!-- Content Area -->
            @yield('content')
        </main>

    </div>

    <!-- Custom JavaScript -->
    <script src="{{ asset('admin/js/script.js') }}"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const currentPath = "{{ request()->path() }}"; // "dashboard"
            const sidebarLinks = document.querySelectorAll('.nav-link');

            sidebarLinks.forEach(link => {
                // Compare href path with currentPath
                const linkPath = link.getAttribute('href').replace('{{ url('/') }}/', '');
                if (linkPath === currentPath) {
                    link.classList.add('active');
                } else {
                    link.classList.remove('active');
                }
            });
        });
    </script>
   @yield('scripts')



</body>

</html>