<!DOCTYPE html>

<html lang="en">
<head>
        <?php echo view('partials/title-meta', array('title' => 'Tree View')) ?> <?= $this->include('partials/head-css') ?>
    </head>
<body>
<div class="wrapper">
            <?php echo view('partials/topbar', array('subtitle' => 'Plugins', 'title' => 'Tree View')) ?> <?= $this->include('partials/sidenav') ?>

            <!-- Start Page Content here -->
<div class="page-content">
<main>
                    <?php echo view('partials/page-title', array('subtitle' => 'Plugins', 'title' => 'Tree View')) ?>

                    <div class="container-fluid">
<div class="mb-4">
<div aria-labelledby="tree-view-label" class="hs-removing:translate-x-5 hs-removing:opacity-0 transition duration-300 bg-warning/10 text-sm text-warning rounded-lg p-3" id="tree-view-alert" role="alert" tabindex="-1">
<div class="flex items-center">
<div id="tree-view-label">
<strong>Note:</strong>
                                        This is a jQuery-based plugin, so you need to include jQuery for it to work.
                                    </div>
<div class="ps-3 ms-auto text-default-400">
<button data-hs-remove-element="#tree-view-alert" type="button">
<span class="sr-only">Dismiss</span>
<i class="iconify tabler--x text-2xl"></i>
</button>
</div>
</div>
</div>
</div>
<div class="grid md:grid-cols-2 gap-base">
<div>
<div class="card mb-base">
<div class="card-header">
<h4 class="card-title">Basic Treeview</h4>
</div>
<div class="card-body">
<div id="jstree-1">
<ul>
<li>
                                                    Dashboard
                                                    <ul>
<li data-jstree='{ "selected": true }'>
<a href="javascript:;">Overview</a>
</li>
<li>Analytics</li>
<li data-jstree='{ "opened": true }'>
                                                            Reports
                                                            <ul>
<li data-jstree='{ "disabled": true }'>Archived Report</li>
<li data-jstree='{ "type": "file" }'>Current Report</li>
</ul>
</li>
<li>Settings</li>
</ul>
</li>
<li>
                                                    Users
                                                    <ul>
<li>New Users</li>
<li>Active Users</li>
<li>Banned Users</li>
<li data-jstree='{ "opened": true }'>
                                                            Teams
                                                            <ul>
<li>Admin Team</li>
<li>Marketing Team</li>
</ul>
</li>
</ul>
</li>
<li>
                                                    Files
                                                    <ul>
<li>Documents</li>
<li>Images</li>
<li>Audio</li>
<li>Videos</li>
<li>Archives</li>
</ul>
</li>
<li>
                                                    Settings
                                                    <ul>
<li>System Settings</li>
<li>Security</li>
<li>Languages</li>
</ul>
</li>
<li data-jstree='{ "type": "link" }'>
<a href="https://www.example.com" target="_blank">External Resource</a>
</li>
</ul>
</div>
</div>
</div>
<div class="card mb-base">
<div class="card-header">
<h4 class="card-title">Custom Icons &amp; Clickable Nodes</h4>
</div>
<div class="card-body">
<div id="jstree-2">
<ul>
<li>
                                                    Main Category
                                                    <ul>
<li data-jstree='{ "selected" : true, "icon": "treeview-star text-primary text-base" }'>
<a href="javascript:;">Favorite Item</a>
</li>
<li data-jstree='{ "icon" : "treeview-file text-success text-base" }'>Documentation Files</li>
<li data-jstree='{ "opened" : true, "icon" : "treeview-folder-open text-warning text-base" }'>
                                                            Project Resources
                                                            <ul>
<li data-jstree='{ "disabled" : true, "icon": "treeview-icon-ban text-default-400 text-base" }'>Restricted Access</li>
<li data-jstree='{ "type" : "file", "icon": "treeview-file text-base" }'>Final Report.pdf</li>
</ul>
</li>
<li data-jstree='{ "icon" : "treeview-icon-user text-danger text-base" }'>Team Member Info</li>
</ul>
</li>
<li data-jstree='{ "type" : "link", "icon": "treeview-icon-link text-info" }'>
<a href="#!">
                                                        Buy
                                                        <span class="text-danger font-semibold italic">MyAdmin</span>
                                                        - Click here
                                                    </a>
</li>
</ul>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<h4 class="card-title">Checkable Tree</h4>
</div>
<div class="card-body">
<div>
<div id="jstree-3"></div>
</div>
</div>
<!-- end card-body-->
</div>
<!-- end card-->
</div>
<!-- end col-->
<div>
<div class="card mb-base">
<div class="card-header block">
<h4 class="card-title mb-1">Context Menu</h4>
<p class="text-default-400">Right-click on any tree item to access options like create, rename, edit, copy, cut, and more.</p>
</div>
<div class="card-body">
<div>
<div id="jstree-4"></div>
</div>
</div>
</div>
<div class="card mb-base">
<div class="card-header">
<h4 class="card-title">Drag &amp; Drop</h4>
</div>
<div class="card-body">
<div id="jstree-5"></div>
</div>
</div>
<div class="card">
<div class="card-header">
<h4 class="card-title">Ajax Data</h4>
</div>
<div class="card-body">
<div id="jstree-6"></div>
</div>
</div>
</div>
</div>
</div>
</main>

                <?= $this->include('partials/footer') ?>
            </div>
<!-- End Page content -->
</div>

        <?= $this->include('partials/customizer') ?> <?= $this->include('partials/footer-scripts') ?>

        <!-- Jquery Required for Treeview plugin-->
<script src="/plugins/jquery/jquery.min.js"></script>
<!-- jstree plugin Js-->
<script src="/plugins/jstree/jstree.min.js"></script>
<!-- Treeviw Page Js -->
<script src="/js/pages/plugins-treeview.js"></script>
</body>
</html>