<!DOCTYPE html>
<html lang="zxx">
    <?php require __DIR__ . '/includes/head.php'; ?>

    <body class="bg-body-bg"><?php require __DIR__ . '/includes/loading.php'; ?><?php require __DIR__ . '/includes/sidebar.php'; ?>


        <!-- Start Main Content Area -->
        <div class="container-fluid">
            <div class="main-content d-flex flex-column">
                <?php require __DIR__ . '/includes/topbar.php'; ?>


                <div class="main-content-container overflow-hidden">
                    <div class="d-flex justify-content-between align-items-center flex-wrap gap-2 mb-4 mt-1">
                        <h3 class="mb-0">Deals</h3>

                        <nav aria-label="breadcrumb">
                            <ol class="breadcrumb align-items-center mb-0 lh-1">
                                <li class="breadcrumb-item">
                                    <a href="index.html" class="d-flex align-items-center text-decoration-none">
                                        <i class="ri-home-8-line fs-15 text-primary me-1"></i>
                                        <span class="text-body fs-14 hover">Dashboard</span>
                                    </a>
                                </li>
                                <li class="breadcrumb-item active" aria-current="page">
                                    <span>CRM</span>
                                </li>
                                <li class="breadcrumb-item active" aria-current="page">
                                    <span class="text-secondary">Deals</span>
                                </li>
                            </ol>
                        </nav>
                    </div>

                    <div class="card bg-white rounded-10 border border-white mb-4">
                        <div class="d-flex justify-content-between align-items-center flex-wrap gap-3 p-20">
                            <form class="table-src-form position-relative m-0">
                                <input type="text" class="form-control w-350" placeholder="Search deal...">
                                <div class="src-btn position-absolute top-50 start-0 translate-middle-y bg-transparent p-0 border-0">
                                    <span class="material-symbols-outlined">search</span>
                                </div>
                            </form>

                            <a href="create-deals.html" class="text-primary fs-16 text-decoration-none">+ Add New Deals</a>
                        </div>
                        
                        <div class="default-table-area mx-minus-1 table-to-do-list">
                            <div class="table-responsive">
                                <table class="table align-middle w-100">
                                    <thead>
                                        <tr>
                                            <th scope="col" class="fw-medium">
                                                <div class="form-check">
                                                    <input class="form-check-input" type="checkbox" id="flexCheckDefault1">
                                                </div>
                                            </th>
                                            <th scope="col" class="fw-medium ps-0">Deal ID</th>
                                            <th scope="col" class="fw-medium">Company Name</th>
                                            <th scope="col" class="fw-medium">Contact Person</th>
                                            <th scope="col" class="fw-medium">Amount</th>
                                            <th scope="col" class="fw-medium">Stage</th>
                                            <th scope="col" class="fw-medium">Probability</th>
                                            <th scope="col" class="fw-medium">Close Date</th>
                                            <th scope="col" class="fw-medium">Created At</th>
                                            <th scope="col" class="fw-medium text-start">Due Date</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td class="text-body" style="width: 62px;">
                                                <div class="form-check">
                                                    <input class="form-check-input" type="checkbox" id="flexCheckDefault2">
                                                </div>
                                            </td>
                                            <td class="text-body ps-0">#951</td> 
                                            <td class="text-body">Tech Solutions</td> 
                                            <td class="text-secondary">Shawn Kennedy</td> 
                                            <td class="text-body">$25,000.00</td> 
                                            <td class="text-body">Proposal</td> 
                                            <td class="text-body">80%</td> 
                                            <td class="text-body">15 Nov, 2025</td> 
                                            <td class="text-body">Nov 08, 2025 10:30 AM</td> 
                                            <td class="text-body text-start">Nov 15, 2025 10:45 AM</td> 
                                        </tr>
                                        <tr>
                                            <td class="text-body" style="width: 62px;">
                                                <div class="form-check">
                                                    <input class="form-check-input" type="checkbox" id="flexCheckDefault2">
                                                </div>
                                            </td>
                                            <td class="text-body ps-0">#587</td> 
                                            <td class="text-body">Acma Industries</td> 
                                            <td class="text-secondary">Roberto Cruz</td> 
                                            <td class="text-body">$15,000.00</td> 
                                            <td class="text-body">Presentation</td> 
                                            <td class="text-body">50%</td> 
                                            <td class="text-body">14 Nov, 2025</td> 
                                            <td class="text-body">Nov 09, 2025 02:15 PM</td> 
                                            <td class="text-body text-start">Nov 14, 2025 02:30 PM</td> 
                                        </tr>
                                        <tr>
                                            <td class="text-body" style="width: 62px;">
                                                <div class="form-check">
                                                    <input class="form-check-input" type="checkbox" id="flexCheckDefault2">
                                                </div>
                                            </td>
                                            <td class="text-body ps-0">#618</td> 
                                            <td class="text-body">Synergy Ltd</td> 
                                            <td class="text-secondary">Juli Johnson</td> 
                                            <td class="text-body">$30,000.00</td> 
                                            <td class="text-body">Negotiation</td> 
                                            <td class="text-body">75%</td> 
                                            <td class="text-body">13 Nov, 2025</td> 
                                            <td class="text-body">Nov 10, 2025 09:45 AM</td> 
                                            <td class="text-body text-start">Nov 13, 2025 10:00 AM</td> 
                                        </tr>
                                        <tr>
                                            <td class="text-body" style="width: 62px;">
                                                <div class="form-check">
                                                    <input class="form-check-input" type="checkbox" id="flexCheckDefault2">
                                                </div>
                                            </td>
                                            <td class="text-body ps-0">#367</td> 
                                            <td class="text-body">Tech Enterprises</td> 
                                            <td class="text-secondary">Catalina Engles</td> 
                                            <td class="text-body">$20,000.00</td> 
                                            <td class="text-body">Discovery</td> 
                                            <td class="text-body">90%</td> 
                                            <td class="text-body">12 Nov, 2025</td> 
                                            <td class="text-body">Nov 11, 2025 03:45 PM</td> 
                                            <td class="text-body text-start">Nov 12, 2025 04:00 PM</td> 
                                        </tr>
                                        <tr>
                                            <td class="text-body" style="width: 62px;">
                                                <div class="form-check">
                                                    <input class="form-check-input" type="checkbox" id="flexCheckDefault2">
                                                </div>
                                            </td>
                                            <td class="text-body ps-0">#761</td> 
                                            <td class="text-body">Synetic Solutions</td> 
                                            <td class="text-secondary">Louis Nagle</td> 
                                            <td class="text-body">$40,000.00</td> 
                                            <td class="text-body">Contract Sent</td> 
                                            <td class="text-body">60%</td> 
                                            <td class="text-body">11 Nov, 2025</td> 
                                            <td class="text-body">Nov 12, 2025 01:00 PM</td> 
                                            <td class="text-body text-start">Nov 11, 2025 01:15 PM</td> 
                                        </tr>
                                        <tr>
                                            <td class="text-body" style="width: 62px;">
                                                <div class="form-check">
                                                    <input class="form-check-input" type="checkbox" id="flexCheckDefault2">
                                                </div>
                                            </td>
                                            <td class="text-body ps-0">#761</td> 
                                            <td class="text-body">GlobalTech Solutions</td> 
                                            <td class="text-secondary">Patrick Madsen</td> 
                                            <td class="text-body">$50,000.00</td> 
                                            <td class="text-body">Proposal</td> 
                                            <td class="text-body">55%</td> 
                                            <td class="text-body">10 Nov, 2025</td> 
                                            <td class="text-body">Nov 13, 2025 01:00 PM</td> 
                                            <td class="text-body text-start">Nov 10, 2025 01:15 PM</td> 
                                        </tr>
                                        <tr>
                                            <td class="text-body" style="width: 62px;">
                                                <div class="form-check">
                                                    <input class="form-check-input" type="checkbox" id="flexCheckDefault2">
                                                </div>
                                            </td>
                                            <td class="text-body ps-0">#761</td> 
                                            <td class="text-body">Quantum Solutions</td> 
                                            <td class="text-secondary">Lillian McCreary</td> 
                                            <td class="text-body">$45,000.00</td> 
                                            <td class="text-body">Negotiation</td> 
                                            <td class="text-body">79%</td> 
                                            <td class="text-body">09 Nov, 2025</td> 
                                            <td class="text-body">Nov 14, 2025 01:00 PM</td> 
                                            <td class="text-body text-start">Nov 09, 2025 01:15 PM</td> 
                                        </tr>
                                        <tr>
                                            <td class="text-body" style="width: 62px;">
                                                <div class="form-check">
                                                    <input class="form-check-input" type="checkbox" id="flexCheckDefault2">
                                                </div>
                                            </td>
                                            <td class="text-body ps-0">#761</td> 
                                            <td class="text-body">Synetic Pinnacle Ltd</td> 
                                            <td class="text-secondary">Beverly Caulkins</td> 
                                            <td class="text-body">$35,000.00</td> 
                                            <td class="text-body">Presentation</td> 
                                            <td class="text-body">85%</td> 
                                            <td class="text-body">08 Nov, 2025</td> 
                                            <td class="text-body">Nov 15, 2025 01:00 PM</td> 
                                            <td class="text-body text-start">Nov 08, 2025 01:15 PM</td> 
                                        </tr>
                                        <tr>
                                            <td class="text-body" style="width: 62px;">
                                                <div class="form-check">
                                                    <input class="form-check-input" type="checkbox" id="flexCheckDefault2">
                                                </div>
                                            </td>
                                            <td class="text-body ps-0">#542</td> 
                                            <td class="text-body">IT Solutions</td> 
                                            <td class="text-secondary">Alina Smith</td> 
                                            <td class="text-body">$23,423.00</td> 
                                            <td class="text-body">Proposal</td> 
                                            <td class="text-body">11%</td> 
                                            <td class="text-body">07 Nov, 2025</td> 
                                            <td class="text-body">Nov 08, 2025 10:30 AM</td> 
                                            <td class="text-body text-start">Nov 15, 2025 10:45 AM</td> 
                                        </tr>
                                        <tr>
                                            <td class="text-body" style="width: 62px;">
                                                <div class="form-check">
                                                    <input class="form-check-input" type="checkbox" id="flexCheckDefault2">
                                                </div>
                                            </td>
                                            <td class="text-body ps-0">#453</td> 
                                            <td class="text-body">Fila Admin</td> 
                                            <td class="text-secondary">David Warner</td> 
                                            <td class="text-body">$12,421.00</td> 
                                            <td class="text-body">Discovery</td> 
                                            <td class="text-body">53%</td> 
                                            <td class="text-body">06 Nov, 2025</td> 
                                            <td class="text-body">Nov 07, 2025 10:30 AM</td> 
                                            <td class="text-body text-start">Nov 14, 2025 10:45 AM</td> 
                                        </tr>
                                    </tbody>
                                </table>
                            </div>

                            <div class="d-flex justify-content-center justify-content-sm-between align-items-center text-center flex-wrap gap-2 showing-wrap pt-15 p-20">
                                <span class="fs-15">Showing 1 to 10 of 50 entries</span>

                                <nav class="custom-pagination" aria-label="Page navigation example">
                                    <ul class="pagination mb-0 justify-content-center">
                                        <li class="page-item">
                                            <button class="page-link icon" aria-label="Previous">
                                                <i class="material-symbols-outlined">west</i>
                                            </button>
                                        </li>
                                        <li class="page-item">
                                            <button class="page-link active">1</button>
                                        </li>
                                        <li class="page-item">
                                            <button class="page-link">2</button>
                                        </li>
                                        <li class="page-item">
                                            <button class="page-link">3</button>
                                        </li>
                                        <li class="page-item">
                                            <button class="page-link icon" aria-label="Next">
                                                <i class="material-symbols-outlined">east</i>
                                            </button>
                                        </li>
                                    </ul>
                                </nav>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="flex-grow-1"></div>

                <?php require __DIR__ . '/includes/footer.php'; ?>

            </div>
        </div>
        <!-- Start Main Content Area -->

        <!-- Start Theme Setting Area -->
        <button class="btn btn-primary theme-settings-btn p-0 position-fixed z-2 text-center rounded-circle" style="bottom: 24px; right: 24px; width: 56px; height: 56px; line-height: 54px;" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasScrolling" aria-controls="offcanvasScrolling">
            <i class="text-white ri-settings-3-fill fs-28" data-bs-toggle="tooltip" data-bs-placement="left" data-bs-title="Click On Theme Settings"></i>
        </button>

        <!-- Start Theme Setting Area -->
        <div class="offcanvas offcanvas-end bg-white border-0" data-bs-scroll="true" data-bs-backdrop="true" tabindex="-1" id="offcanvasScrolling" aria-labelledby="offcanvasScrollingLabel" style="box-shadow: 0 4px 20px #2f8fe812 !important; max-width: 300px;">
            <div class="offcanvas-header bg-light p-20">
                <h5 class="offcanvas-title fs-18 fw-medium" id="offcanvasScrollingLabel">Configuration Panel</h5>
                <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
            </div>
            <div class="offcanvas-body p-0 overflow-hidden">
                <div class="last-child-none" style="max-height: 858px;" data-simplebar>
                    <div class="p-20 border-bottom child">
                        <h4 class="fs-15 fw-medium mb-12">RTL Mode</h4>
                        <div class="rtl-btn">
                            <label id="switch">
                                <input type="checkbox" onchange="toggleTheme()" class="toggle-switch rtl-switch" id="slider">
                            </label>
                        </div>
                    </div>
                    <div class="p-20 border-bottom child">
                        <h4 class="fs-15 fw-medium mb-12">Only Sidebar Dark</h4>
                        <div class="sidebar-light-dark" id="sidebar-light-dark">
                            <input type="checkbox" class="toggle-switch sidebar-dark-switch">
                        </div>
                    </div>
                    <div class="p-20 border-bottom child">
                        <h4 class="fs-15 fw-medium mb-12">Only Header Dark</h4>
                        <div class="header-light-dark" id="header-light-dark">
                            <input type="checkbox" class="toggle-switch header-dark-switch">
                        </div>
                    </div>
                    <div class="p-20 border-bottom child">
                        <h4 class="fs-15 fw-medium mb-12">Right Sidebar</h4>
                        <div class="right-sidebar" id="right-sidebar">
                            <input type="checkbox" class="toggle-switch right-sidebar-switch">
                        </div>
                    </div>
                    <div class="p-20 border-bottom child">
                        <h4 class="fs-15 fw-medium mb-12">Hide Sidebar</h4>
                        <div class="icon-sidebar" id="icon-sidebar">
                            <input type="checkbox" class="toggle-switch icon-sidebar-switch">
                        </div>
                    </div>
                    <div class="p-20 border-bottom child">
                        <h4 class="fs-15 fw-medium mb-12">Bordered Card</h4>
                        <div class="card-border" id="card-border">
                            <input type="checkbox" class="toggle-switch border-switch">
                        </div>
                    </div>
                    <div class="p-20 border-bottom child">
                        <h4 class="fs-15 fw-medium mb-12">Card Border Radius</h4>
                        <div class="card-radius-square" id="card-radius-square">
                            <input type="checkbox" class="toggle-switch border-radius-switch">
                        </div>
                    </div>
                    
                    <div class="p-20 border-bottom child">
                        <a href="#" class="btn btn-primary text-white">
                            Buy Fila
                        </a>
                    </div>
                </div>
            </div>
        </div>
        <!-- End Theme Setting Area -->
     
        <!-- Link Of JS File -->
        <script src="assets/js/bootstrap.bundle.min.js"></script>
        <script src="assets/js/sidebar-menu.js"></script>
        <script src="assets/js/quill.min.js"></script>
        <script src="assets/js/data-table.js"></script>
        <script src="assets/js/prism.js"></script>
        <script src="assets/js/clipboard.min.js"></script>
        <script src="assets/js/simplebar.min.js"></script>
        <script src="assets/js/apexcharts.min.js"></script>
        <script src="assets/js/echarts.min.js"></script>
        <script src="assets/js/swiper-bundle.min.js"></script>
        <script src="assets/js/fullcalendar.main.js"></script>
        <script src="assets/js/jsvectormap.min.js"></script>
        <script src="assets/js/world-merc.js"></script>
        <script src="assets/js/custom/apexcharts.js"></script>
        <script src="assets/js/custom/echarts.js"></script>
        <script src="assets/js/custom/maps.js"></script>
        <script src="assets/js/custom/custom.js"></script>
    </body>
</html>