<!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()); ?>">
    <title>ডকুমেন্ট ম্যানেজমেন্ট | AdminLTE</title>

    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
    <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/admin-lte@3.2/dist/css/adminlte.min.css">
    <link rel="stylesheet" href="https://cdn.datatables.net/1.11.5/css/dataTables.bootstrap4.min.css">
    <link
        href="https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@300;400;600;700&family=Raleway:wght@400;800&family=Tiro+Bangla:ital@0;1&family=Ysabeau+Infant:wght@300;400;600;700;800&family=Ysabeau+SC:wght@400;800&display=swap"
        rel="stylesheet">
    
    <style>
        :root {
            --sidebar-width: 260px; 
            --primary-bg: #1e293b;
            --secondary-bg: #334155;
            --accent-color: #3b82f6;
            --text-gray: #94a3b8;
            --light-bg: #f8fafc;
        }

        body {
            font-family: 'Tiro Bangla', sans-serif;
            background-color: var(--light-bg);
            overflow-x: hidden;
            font-size: 0.95rem;
            color: #1e293b;
        }

        /* Top Navbar Customization */
        .main-header {
            background-color: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #e2e8f0;
            z-index: 1030;
            height: 60px; 
        }

        /* Sidebar Styling */
        .main-sidebar {
            width: var(--sidebar-width);
            height: 100vh;
            position: fixed;
            top: 0;
            left: 0;
            background-color: var(--primary-bg);
            color: #fff;
            z-index: 1040;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* সাইডবার কলাপসড লজিক */
        .sidebar-collapsed .main-sidebar { transform: translateX(calc(var(--sidebar-width) * -1)); }

        .brand-link {
            padding: 15px 20px;
            display: flex;
            align-items: center;
            height: 60px;
            font-size: 1.25rem;
            text-decoration: none;
            color: #fff;
            background-color: rgba(0,0,0,0.2);
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

        .sidebar { padding: 10px 15px; overflow-y: auto; height: calc(100vh - 60px); }

        /* Nav Link Customization */
        .nav-sidebar .nav-link {
            color: var(--text-gray);
            margin-bottom: 4px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            padding: 10px 15px;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .nav-sidebar .nav-link:hover { background-color: var(--secondary-bg); color: #fff; transform: translateX(5px); }
        .nav-sidebar .nav-link.active { background-color: var(--accent-color); color: #fff; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
        .nav-sidebar .nav-link i { margin-right: 12px; font-size: 1.1rem; }
        .nav-header { font-size: 0.75rem; padding: 20px 15px 8px; text-transform: uppercase; color: #64748b; font-weight: 700; letter-spacing: 1px; }

        /* Content Area */
        .content-wrapper { margin-left: var(--sidebar-width); min-height: 100vh; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
        .sidebar-collapsed .content-wrapper { margin-left: 0; }
        .content-header { background: #fff; padding: 15px 25px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
        .content-main { padding: 25px; }

        @media (max-width: 768px) {
            .main-sidebar { transform: translateX(calc(var(--sidebar-width) * -1)); }
            .content-wrapper { margin-left: 0; }
            .sidebar-open .main-sidebar { transform: translateX(0); }
        }
    </style>
    <?php echo $__env->yieldPushContent('css'); ?>
</head>
<body class="hold-transition sidebar-mini">
<div class="wrapper">

    <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('documents.index')); ?>" class="nav-link">হোম</a>
            </li>
        </ul>
    </nav>

    <aside class="main-sidebar sidebar-dark-primary elevation-4">
        <a href="#" class="brand-link">
            <span class="brand-text font-weight-light ml-3">DMS প্রোফাইল</span>
        </a>

        <div class="sidebar">
            <nav class="mt-3">
                <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu">
                    
                    <li class="nav-item">
                        <a href="<?php echo e(route('documents.index')); ?>" class="nav-link <?php echo e(request()->routeIs('documents.index') ? 'active' : ''); ?>">
                            <i class="nav-icon fas fa-building"></i>
                            <p>সব প্রতিষ্ঠান</p>
                        </a>
                    </li>

                    <li class="nav-item">
                        <a href="<?php echo e(route('documents.type.create')); ?>" class="nav-link <?php echo e(request()->routeIs('documents.type.create') ? 'active' : ''); ?>">
                            <i class="nav-icon fas fa-plus-circle"></i>
                            <p>নতুন টাইপ যোগ করুন</p>
                        </a>
                    </li>

                    <li class="nav-header">অ্যাকশন</li>
                    
                    <li class="nav-item">
                        <a href="#" class="nav-link" data-toggle="modal" data-target="#addCompanyModal">
                            <i class="nav-icon fas fa-plus text-success"></i>
                            <p>নতুন কোম্পানি</p>
                        </a>
                    </li>
                </ul>
            </nav>
        </div>
    </aside>

    <div class="content-wrapper">
        <div class="content-header">
            <div class="container-fluid">
                <?php if(session('success')): ?>
                    <div class="alert alert-success alert-dismissible">
                        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                        <h5><i class="icon fas fa-check"></i> সফল!</h5>
                        <?php echo e(session('success')); ?>

                    </div>
                <?php endif; ?>
            </div>
        </div>

        <section class="content">
            <div class="container-fluid">
                <?php echo $__env->yieldContent('content'); ?>
            </div>
        </section>
    </div>

    <footer class="main-footer">
        <div class="float-right d-none d-sm-inline">
            Version 3.2.0
        </div>
        <strong>Copyright &copy; 2026 <a href="#">DMS System</a>.</strong> All rights reserved.
    </footer>
</div>

<div class="modal fade" id="addCompanyModal" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <form action="<?php echo e(route('companies.store')); ?>" method="POST">
                <?php echo csrf_field(); ?>
                <div class="modal-header bg-primary">
                    <h5 class="modal-title text-white">নতুন কোম্পানি যোগ করুন</h5>
                    <button type="button" class="close text-white" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <label>কোম্পানির নাম <span class="text-danger">*</span></label>
                        <input type="text" name="name" class="form-control" placeholder="নাম লিখুন" required>
                    </div>
                    <div class="form-group">
                        <label>ঠিকানা</label>
                        <textarea name="address" class="form-control" rows="2"></textarea>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">বাতিল</button>
                    <button type="submit" class="btn btn-primary">সংরক্ষণ করুন</button>
                </div>
            </form>
        </div>
    </div>
</div>

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/admin-lte@3.2/dist/js/adminlte.min.js"></script>
<script src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.11.5/js/dataTables.bootstrap4.min.js"></script>

<?php echo $__env->yieldPushContent('scripts'); ?>
</body>
</html><?php /**PATH /home/naowarin/mydoc.naowarinternational.my.id/resources/views/layouts/app.blade.php ENDPATH**/ ?>