<!doctype html>
<html lang="bn">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    
    <!-- Bootstrap & AdminLTE -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/admin-lte@3.2.0/dist/css/adminlte.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
    
    <!-- Fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Roboto" rel="stylesheet">
    <link href="https://cdn.rawgit.com/sh4hids/bangla-web-fonts/solaimanlipi/stylesheet.css" rel="stylesheet">
    
    <link rel="icon" href="<?php echo e(asset('images/school-logo.png')); ?>">
    <title><?php echo $__env->yieldContent('title', 'স্কুল ম্যানেজমেন্ট সিস্টেম'); ?></title>
    
    <style>
        body {
            font-family: 'SolaimanLipi', 'Roboto', sans-serif;
            background: #f4f6f9;
        }
        
        /* আধুনিক মেনু ডিজাইন */
        .main-header {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            border-bottom: none;
            padding: 0 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .main-header .navbar-nav .nav-link {
            color: white !important;
            font-weight: 500;
            padding: 15px 20px;
            transition: all 0.3s ease;
            border-radius: 5px;
            margin: 0 2px;
        }
        .main-header .navbar-nav .nav-link:hover {
            background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        .main-header .navbar-nav .nav-link i {
            margin-right: 8px;
            font-size: 16px;
        }
        
        /* ড্রপডাউন ডিজাইন */
        .main-header .dropdown-menu {
            background: white;
            border: none;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            padding: 15px 0;
            min-width: 250px;
            animation: slideDown 0.3s ease;
        }
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .main-header .dropdown-menu .dropdown-item {
            padding: 10px 25px;
            color: #333;
            font-size: 14px;
            transition: all 0.3s;
            position: relative;
        }
        .main-header .dropdown-menu .dropdown-item i {
            width: 25px;
            color: #2a5298;
            transition: all 0.3s;
        }
        .main-header .dropdown-menu .dropdown-item:hover {
            background: linear-gradient(135deg, #f5f7fa 0%, #e9edf5 100%);
            color: #1e3c72;
            padding-left: 35px;
        }
        .main-header .dropdown-menu .dropdown-item:hover i {
            color: #1e3c72;
            transform: scale(1.1);
        }
        .main-header .dropdown-menu .dropdown-divider {
            border-top: 1px solid #e0e0e0;
            margin: 8px 0;
        }
        
        /* হটলাইন */
        .hotline {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
            border-radius: 30px;
            padding: 8px 20px !important;
            margin-left: 10px;
        }
        .hotline i {
            animation: bell 1.5s infinite;
        }
        @keyframes bell {
            0%, 100% { transform: rotate(0); }
            10%, 30%, 50%, 70%, 90% { transform: rotate(10deg); }
            20%, 40%, 60%, 80% { transform: rotate(-10deg); }
        }
        
        /* ইউজার মেনু */
        .user-menu {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white !important;
            border-radius: 30px !important;
            padding: 8px 25px !important;
            margin-left: 15px;
        }
        .user-menu:hover {
            background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        }
        
        /* সাইডবার */
        .main-sidebar {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        }
        .brand-link {
            background: rgba(255,255,255,0.1);
            color: white !important;
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }
        .nav-sidebar .nav-link {
            color: rgba(255,255,255,0.9);
            transition: all 0.3s;
            margin: 2px 0;
        }
        .nav-sidebar .nav-link:hover {
            background: rgba(255,255,255,0.2);
            transform: translateX(5px);
        }
        .nav-sidebar .nav-link.active {
            background: rgba(255,255,255,0.3);
            border-left: 5px solid #f093fb;
        }
        
        /* কন্টেন্ট এরিয়া */
        .content-wrapper {
            min-height: calc(100vh - 150px);
            background: #f4f6f9;
        }
        
        /* ফুটার */
        .footer {
            background: white;
            border-top: 1px solid #e0e0e0;
            padding: 15px 0;
            color: #666;
        }
        
        .blink_me {
            animation: blinker 1.5s linear infinite;
        }
        @keyframes blinker {
            50% { opacity: 0.3; }
        }
    </style>
</head>
<body class="hold-transition sidebar-mini">
    <div class="wrapper">
        
        <!-- Main Header (Top Navbar) - আধুনিক ডিজাইন -->
        <nav class="main-header navbar navbar-expand navbar-dark navbar-no-expand">
            <ul class="navbar-nav">
                <li class="nav-item">
                    <a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
                </li>
            </ul>
            
            <!-- নেভবার মেনু - প্রথম ছবির অপশনগুলো দ্বিতীয় ছবির স্টাইলে -->
            <ul class="navbar-nav ml-auto">
                
                <!-- ১. ড্যাশবোর্ড -->
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo e(route('dashboard')); ?>">
                        <i class="fas fa-tachometer-alt"></i> ড্যাশবোর্ড
                    </a>
                </li>

                <!-- ২. ছাত্র/ছাত্রী ব্যবস্থাপনা -->
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown">
                        <i class="fas fa-user-graduate"></i> ছাত্র/ছাত্রী
                    </a>
                    <div class="dropdown-menu dropdown-menu-right">
                        <span class="dropdown-header"><i class="fas fa-cog"></i> ছাত্র/ছাত্রী ব্যবস্থাপনা</span>
                        <a class="dropdown-item" href="<?php echo e(route('students.index')); ?>">
                            <i class="fas fa-list"></i> সকল ছাত্র/ছাত্রী
                        </a>
                        <a class="dropdown-item" href="<?php echo e(route('students.create')); ?>">
                            <i class="fas fa-user-plus"></i> নতুন ভর্তি
                        </a>
                        <a class="dropdown-item" href="<?php echo e(route('students.class-list', 1)); ?>">
                            <i class="fas fa-layer-group"></i> শ্রেণি ভিত্তিক তালিকা
                        </a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="<?php echo e(route('students.id-card', 1)); ?>">
                            <i class="fas fa-id-card"></i> আইডি কার্ড ডাউনলোড
                        </a>
                    </div>
                </li>

                <!-- ৩. শিক্ষক ব্যবস্থাপনা -->
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown">
                        <i class="fas fa-chalkboard-teacher"></i> শিক্ষক
                    </a>
                    <div class="dropdown-menu dropdown-menu-right">
                        <span class="dropdown-header"><i class="fas fa-cog"></i> শিক্ষক ব্যবস্থাপনা</span>
                        <a class="dropdown-item" href="<?php echo e(route('teachers.index')); ?>">
                            <i class="fas fa-list"></i> সকল শিক্ষক
                        </a>
                        <a class="dropdown-item" href="<?php echo e(route('teachers.create')); ?>">
                            <i class="fas fa-user-plus"></i> নতুন শিক্ষক নিবন্ধন
                        </a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="<?php echo e(route('teachers.attendance')); ?>">
                            <i class="fas fa-check-circle"></i> শিক্ষক উপস্থিতি
                        </a>
                        <a class="dropdown-item" href="<?php echo e(route('teachers.salary')); ?>">
                            <i class="fas fa-money-bill"></i> শিক্ষক বেতন
                        </a>
                        <a class="dropdown-item" href="<?php echo e(route('teachers.leaves')); ?>">
                            <i class="fas fa-calendar-minus"></i> ছুটি ব্যবস্থাপনা
                        </a>
                    </div>
                </li>

                <!-- ৪. ফি/বিল ব্যবস্থাপনা -->
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown">
                        <i class="fas fa-money-bill-wave"></i> ফি/বিল
                    </a>
                    <div class="dropdown-menu dropdown-menu-right">
                        <span class="dropdown-header"><i class="fas fa-cog"></i> ফি/বিল ব্যবস্থাপনা</span>
                        <a class="dropdown-item" href="<?php echo e(route('fees.index')); ?>">
                            <i class="fas fa-search"></i> ফি দেখুন / অনুসন্ধান
                        </a>
                        <a class="dropdown-item" href="<?php echo e(route('fees.bulk-generate')); ?>">
                            <i class="fas fa-calendar-alt"></i> মাসিক ফি নির্ধারণ
                        </a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="<?php echo e(route('fees.collection-report')); ?>">
                            <i class="fas fa-file-invoice"></i> ফি সংগ্রহ রিপোর্ট
                        </a>
                        <a class="dropdown-item" href="<?php echo e(route('fees.due-report')); ?>">
                            <i class="fas fa-exclamation-circle"></i> বকেয়া রিপোর্ট
                        </a>
                    </div>
                </li>

                <!-- ৫. লাইব্রেরি ব্যবস্থাপনা -->
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown">
                        <i class="fas fa-book"></i> লাইব্রেরি
                    </a>
                    <div class="dropdown-menu dropdown-menu-right">
                        <span class="dropdown-header"><i class="fas fa-cog"></i> লাইব্রেরি ব্যবস্থাপনা</span>
                        <a class="dropdown-item" href="<?php echo e(route('library.books')); ?>">
                            <i class="fas fa-book-open"></i> সকল বই
                        </a>
                        <a class="dropdown-item" href="<?php echo e(route('library.issues')); ?>">
                            <i class="fas fa-hand-holding"></i> ইস্যুকৃত বই
                        </a>
                        <a class="dropdown-item" href="<?php echo e(route('library.categories')); ?>">
                            <i class="fas fa-tags"></i> বইয়ের ক্যাটাগরি
                        </a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="<?php echo e(route('library.settings')); ?>">
                            <i class="fas fa-cog"></i> লাইব্রেরি সেটিংস
                        </a>
                    </div>
                </li>

                <!-- ৬. হাজিরা ব্যবস্থাপনা -->
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown">
                        <i class="fas fa-calendar-check"></i> হাজিরা
                    </a>
                    <div class="dropdown-menu dropdown-menu-right">
                        <span class="dropdown-header"><i class="fas fa-cog"></i> হাজিরা ব্যবস্থাপনা</span>
                        <a class="dropdown-item" href="<?php echo e(route('attendance.index')); ?>">
                            <i class="fas fa-tachometer-alt"></i> হাজিরা ড্যাশবোর্ড
                        </a>
                        <a class="dropdown-item" href="<?php echo e(route('attendance.cards')); ?>">
                            <i class="fas fa-id-card"></i> স্মার্ট কার্ড
                        </a>
                        <a class="dropdown-item" href="<?php echo e(route('attendance.devices')); ?>">
                            <i class="fas fa-microchip"></i> হাজিরা ডিভাইস
                        </a>
                        <a class="dropdown-item" href="<?php echo e(route('attendance.manual')); ?>">
                            <i class="fas fa-pen"></i> ম্যানুয়াল হাজিরা
                        </a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="<?php echo e(route('attendance.report')); ?>">
                            <i class="fas fa-chart-line"></i> হাজিরা রিপোর্ট
                        </a>
                    </div>
                </li>

                <!-- ৭. ফলাফল ব্যবস্থাপনা -->
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown">
                        <i class="fas fa-chart-bar"></i> ফলাফল
                    </a>
                    <div class="dropdown-menu dropdown-menu-right">
                        <span class="dropdown-header"><i class="fas fa-cog"></i> ফলাফল ব্যবস্থাপনা</span>
                        <a class="dropdown-item" href="<?php echo e(route('results.index')); ?>">
                            <i class="fas fa-search"></i> ফলাফল দেখুন
                        </a>
                        <a class="dropdown-item" href="<?php echo e(route('results.class-entry-form')); ?>">
                            <i class="fas fa-pen"></i> নম্বর录入
                        </a>
                        <a class="dropdown-item" href="<?php echo e(route('results.download-marksheet', [1, 'final', 2026])); ?>">
                            <i class="fas fa-print"></i> মার্কশিট প্রিন্ট
                        </a>
                        <a class="dropdown-item" href="<?php echo e(route('results.tabulation-form')); ?>">
                            <i class="fas fa-table"></i> ট্যাবুলেশন শিট
                        </a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="<?php echo e(route('results.analytics-form')); ?>">
                            <i class="fas fa-chart-pie"></i> ফলাফল বিশ্লেষণ
                        </a>
                    </div>
                </li>

                <!-- ৮. রুটিন (ড্রপডাউন ছাড়া) -->
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo e(route('routines.index')); ?>">
                        <i class="fas fa-calendar-alt"></i> রুটিন
                    </a>
                </li>

                <!-- ৯. নোটিশ (ড্রপডাউন ছাড়া) -->
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo e(route('notices.index')); ?>">
                        <i class="fas fa-bullhorn"></i> নোটিশ
                    </a>
                </li>

                <!-- হটলাইন -->
                <li class="nav-item">
                    <a class="nav-link hotline" href="#">
                        <i class="fa fa-headphones"></i> হটলাইন ১৬৬০৩
                    </a>
                </li>

                <!-- ইউজার মেনু -->
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle user-menu" href="#" data-toggle="dropdown">
                        <i class="fas fa-user-circle"></i> <?php echo e(Auth::user()->name_bn ?? Auth::user()->name ?? 'ব্যবহারকারী'); ?>

                    </a>
                    <div class="dropdown-menu dropdown-menu-right">
                        <a href="#" class="dropdown-item"><i class="fas fa-user-circle"></i> প্রোফাইল</a>
                        <a href="#" class="dropdown-item"><i class="fas fa-cog"></i> সেটিংস</a>
                        <div class="dropdown-divider"></div>
                        <a href="<?php echo e(route('logout')); ?>" class="dropdown-item"
                           onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
                            <i class="fas fa-sign-out-alt"></i> লগআউট
                        </a>
                        <form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" style="display: none;">
                            <?php echo csrf_field(); ?>
                        </form>
                    </div>
                </li>
            </ul>
        </nav>
        
        <!-- Sidebar (Left Menu) - সরলীকৃত -->
        <aside class="main-sidebar sidebar-dark-primary elevation-4">
            <a href="<?php echo e(route('dashboard')); ?>" class="brand-link">
                <img src="<?php echo e(asset('images/school-logo.png')); ?>" alt="Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
                <span class="brand-text font-weight-light">স্কুল ম্যানেজমেন্ট</span>
            </a>

            <div class="sidebar">
                <nav class="mt-2">
                    <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu">
                        <li class="nav-item">
                            <a href="<?php echo e(route('dashboard')); ?>" class="nav-link <?php echo e(request()->routeIs('dashboard') ? 'active' : ''); ?>">
                                <i class="nav-icon fas fa-tachometer-alt"></i>
                                <p>ড্যাশবোর্ড</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?php echo e(route('students.index')); ?>" class="nav-link <?php echo e(request()->routeIs('students.*') ? 'active' : ''); ?>">
                                <i class="nav-icon fas fa-user-graduate"></i>
                                <p>ছাত্র/ছাত্রী</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?php echo e(route('teachers.index')); ?>" class="nav-link <?php echo e(request()->routeIs('teachers.*') ? 'active' : ''); ?>">
                                <i class="nav-icon fas fa-chalkboard-teacher"></i>
                                <p>শিক্ষক</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?php echo e(route('fees.index')); ?>" class="nav-link <?php echo e(request()->routeIs('fees.*') ? 'active' : ''); ?>">
                                <i class="nav-icon fas fa-money-bill-wave"></i>
                                <p>ফি/বিল</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?php echo e(route('library.index')); ?>" class="nav-link <?php echo e(request()->routeIs('library.*') ? 'active' : ''); ?>">
                                <i class="nav-icon fas fa-book"></i>
                                <p>লাইব্রেরি</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?php echo e(route('attendance.index')); ?>" class="nav-link <?php echo e(request()->routeIs('attendance.*') ? 'active' : ''); ?>">
                                <i class="nav-icon fas fa-calendar-check"></i>
                                <p>হাজিরা</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?php echo e(route('results.index')); ?>" class="nav-link <?php echo e(request()->routeIs('results.*') ? 'active' : ''); ?>">
                                <i class="nav-icon fas fa-chart-bar"></i>
                                <p>ফলাফল</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?php echo e(route('routines.index')); ?>" class="nav-link <?php echo e(request()->routeIs('routines.*') ? 'active' : ''); ?>">
                                <i class="nav-icon fas fa-calendar-alt"></i>
                                <p>রুটিন</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?php echo e(route('notices.index')); ?>" class="nav-link <?php echo e(request()->routeIs('notices.*') ? 'active' : ''); ?>">
                                <i class="nav-icon fas fa-bullhorn"></i>
                                <p>নোটিশ</p>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
        </aside>

        <!-- Content Wrapper -->
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <div class="container-fluid">
                    <div class="row mb-2">
                        <div class="col-sm-6">
                            <h1><?php echo $__env->yieldContent('page-title', 'ড্যাশবোর্ড'); ?></h1>
                        </div>
                        <div class="col-sm-6">
                            <ol class="breadcrumb float-sm-right">
                                <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>">হোম</a></li>
                                <li class="breadcrumb-item active"><?php echo $__env->yieldContent('page-title'); ?></li>
                            </ol>
                        </div>
                    </div>
                </div>
            </section>

            <!-- Main content -->
            <section class="content">
                <div class="container-fluid">
                    <?php if(session('success')): ?>
                        <div class="alert alert-success alert-dismissible fade show" role="alert">
                            <i class="fas fa-check-circle"></i> <?php echo e(session('success')); ?>

                            <button type="button" class="close" data-dismiss="alert">&times;</button>
                        </div>
                    <?php endif; ?>
                    
                    <?php if(session('error')): ?>
                        <div class="alert alert-danger alert-dismissible fade show" role="alert">
                            <i class="fas fa-exclamation-circle"></i> <?php echo e(session('error')); ?>

                            <button type="button" class="close" data-dismiss="alert">&times;</button>
                        </div>
                    <?php endif; ?>
                    
                    <?php if($errors->any()): ?>
                        <div class="alert alert-danger alert-dismissible fade show">
                            <ul class="mb-0">
                                <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <li><i class="fas fa-times-circle"></i> <?php echo e($error); ?></li>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </ul>
                            <button type="button" class="close" data-dismiss="alert">&times;</button>
                        </div>
                    <?php endif; ?>
                    
                    <?php echo $__env->yieldContent('content'); ?>
                </div>
            </section>
        </div>

        <!-- Footer -->
        <footer class="main-footer">
            <div class="float-right d-none d-sm-block">
                <b>Version</b> 1.0.0
            </div>
            <strong>Copyright &copy; <?php echo e(date('Y')); ?> <a href="#">আদর্শ উচ্চ বিদ্যালয়</a>.</strong> সর্বস্বত্ব সংরক্ষিত।
            <br><span class="blink_me"><i class="fa fa-headphones"></i> হটলাইন: ১৬৬০৩</span>
        </footer>
    </div>
    
    <!-- Scripts -->
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/admin-lte@3.2.0/dist/js/adminlte.min.js"></script>
    
    <?php echo $__env->yieldPushContent('scripts'); ?>
</body>
</html><?php /**PATH /home/naowarin/school.naowarinternational.my.id/resources/views/layouts/app.blade.php ENDPATH**/ ?>