<!DOCTYPE html>
<html lang="bn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <title><?php echo $__env->yieldContent('title', config('app.name', 'ওয়েব্রিজ সিস্টেম')); ?></title>
    
    <!-- ফন্ট ও ফন্ট-অসাম -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
    
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    
    <!-- AdminLTE CSS (CDN) -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/admin-lte@3.2/dist/css/adminlte.min.css">
    
    <!-- কাস্টম CSS -->
    <?php echo $__env->yieldPushContent('css'); ?>
    
    <style>
        /* কাস্টম স্টাইল */
        .main-sidebar {
            background: linear-gradient(180deg, #1a2980 0%, #2a5298 100%);
        }
        .brand-link {
            background: rgba(0,0,0,0.2) !important;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .brand-text {
            font-weight: 600;
            font-size: 1.2rem;
        }
        .nav-sidebar .nav-link.active {
            background: rgba(255,255,255,0.2);
            border-radius: 8px;
        }
        .nav-sidebar .nav-link:hover {
            background: rgba(255,255,255,0.1);
            border-radius: 8px;
        }
        .content-wrapper {
            background: #f0f2f5;
        }
        .main-header {
            background: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        .navbar-nav .nav-link {
            color: #2d3748 !important;
        }
        .footer {
            background: white;
            border-top: 1px solid #e2e8f0;
        }
        @media (max-width: 768px) {
            .main-sidebar {
                transform: translateX(-250px);
            }
            .main-sidebar.sidebar-open {
                transform: translateX(0);
            }
        }
    </style>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">

    <!-- Navbar (হেডার) -->
    <nav class="main-header navbar navbar-expand navbar-white navbar-light">
        <ul class="navbar-nav">
            <li class="nav-item">
                <a class="nav-link" data-widget="pushmenu" href="#" role="button">
                    <i class="fas fa-bars"></i>
                </a>
            </li>
            <li class="nav-item d-none d-sm-inline-block">
                <a href="<?php echo e(route('dashboard')); ?>" class="nav-link">
                    <i class="fas fa-home"></i> হোম
                </a>
            </li>
        </ul>

        <ul class="navbar-nav ml-auto">
            <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-bs-toggle="dropdown">
                    <i class="fas fa-user-circle"></i> 
                    <?php echo e(Auth::user()->name ?? 'অপারেটর'); ?>

                </a>
                <div class="dropdown-menu dropdown-menu-end" aria-labelledby="userDropdown">
                    <!-- প্রোফাইল লিংক কমেন্ট করে দেওয়া হয়েছে (error এড়ানোর জন্য) -->
                    
                    <a class="dropdown-item" href="#" 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" class="d-none">
                        <?php echo csrf_field(); ?>
                    </form>
                </div>
            </li>
        </ul>
    </nav>

    <!-- Main Sidebar Container -->
    <aside class="main-sidebar sidebar-dark-primary elevation-4">
        <!-- Brand Logo -->
        <a href="<?php echo e(route('dashboard')); ?>" class="brand-link">
            <img src="<?php echo e(asset('vendor/adminlte/dist/img/AdminLTELogo.png')); ?>" alt="Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
            <span class="brand-text font-weight-light"><?php echo e(config('app.name', 'ওয়েব্রিজ')); ?></span>
        </a>

        <!-- Sidebar -->
        <div class="sidebar">
            <div class="user-panel mt-3 pb-3 mb-3 d-flex">
                <div class="image">
                    <img src="<?php echo e(asset('vendor/adminlte/dist/img/user2-160x160.jpg')); ?>" class="img-circle elevation-2" alt="User Image">
                </div>
                <div class="info">
                    <a href="#" class="d-block"><?php echo e(Auth::user()->name ?? 'অপারেটর'); ?></a>
                </div>
            </div>

            <!-- Sidebar Menu -->
            <nav class="mt-2">
                <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
                    <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('weighments.index')); ?>" class="nav-link <?php echo e(request()->routeIs('weighments.index') ? 'active' : ''); ?>">
                            <i class="nav-icon fas fa-list"></i>
                            <p>সকল রেকর্ড</p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="<?php echo e(route('report.daily')); ?>" class="nav-link">
                            <i class="nav-icon fas fa-chart-line"></i>
                            <p>দৈনিক রিপোর্ট</p>
                        </a>
                    </li>
                    <li class="nav-item">
    <a href="<?php echo e(route('settings.index')); ?>" class="nav-link">
        <i class="nav-icon fas fa-cog"></i>
        <p>সেটিংস</p>
    </a>
</li>
                    <li class="nav-item">
                        <a href="#" onclick="event.preventDefault(); document.getElementById('logout-form-sidebar').submit();" class="nav-link">
                            <i class="nav-icon fas fa-sign-out-alt"></i>
                            <p>লগআউট</p>
                        </a>
                        <form id="logout-form-sidebar" action="<?php echo e(route('logout')); ?>" method="POST" class="d-none">
                            <?php echo csrf_field(); ?>
                        </form>
                    </li>
                </ul>
            </nav>
        </div>
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <div class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1 class="m-0"><?php echo $__env->yieldContent('page-title', 'ড্যাশবোর্ড'); ?></h1>
                    </div>
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-right">
                            <?php echo $__env->yieldContent('breadcrumb'); ?>
                        </ol>
                    </div>
                </div>
            </div>
        </div>

        <!-- 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="btn-close" data-bs-dismiss="alert" aria-label="Close"></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="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                    </div>
                <?php endif; ?>
                
                <?php echo $__env->yieldContent('content'); ?>
            </div>
        </section>
    </div>

    <!-- Footer -->
    <footer class="main-footer">
        <strong>Copyright &copy; <?php echo e(date('Y')); ?> 
            <a href="#"><?php echo e(config('app.name', 'SALMAN RICE MILLS LTD.')); ?></a>.
        </strong>
        সর্বস্বত্ব সংরক্ষিত।
        <div class="float-right d-none d-sm-inline-block">
            <b>সংস্করণ</b> 2.0
        </div>
    </footer>
</div>

<!-- প্রয়োজনীয় JavaScript -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/admin-lte@3.2/dist/js/adminlte.min.js"></script>

<!-- কাস্টম JavaScript -->
<?php echo $__env->yieldPushContent('js'); ?>

<script>
    // সাইডবার মেমরি (স্থানীয় স্টোরেজ)
    const sidebarState = localStorage.getItem('sidebar-collapsed');
    if (sidebarState === 'true') {
        document.body.classList.add('sidebar-collapse');
    }
    
    document.querySelector('[data-widget="pushmenu"]')?.addEventListener('click', function() {
        setTimeout(function() {
            const isCollapsed = document.body.classList.contains('sidebar-collapse');
            localStorage.setItem('sidebar-collapsed', isCollapsed);
        }, 100);
    });
</script>
</body>
</html><?php /**PATH /home/naowarin/scale.naowarinternational.my.id/resources/views/layouts/app.blade.php ENDPATH**/ ?>