<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ADZBAZZAR - <?php echo $__env->yieldContent('title'); ?></title>
    <link rel="icon" href="<?php echo e(asset('/assets')); ?>/images/favicon.icon" type="image/x-icon">

    <!-- CSS -->
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('/assets')); ?>/css/bootstrap/5.3.2/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('/assets')); ?>/css/style.css">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('/assets')); ?>/css/custom.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="<?php echo e(asset('/assets')); ?>/css/icons/fontawesome/css/fontawesome.css">
    <link rel="stylesheet" href="<?php echo e(asset('/assets')); ?>/css/icons/fontawesome/css/brands.css">
    <link rel="stylesheet" href="<?php echo e(asset('/assets')); ?>/css/icons/fontawesome/css/regular.css">
    <link rel="stylesheet" href="<?php echo e(asset('/assets')); ?>/css/icons/fontawesome/css/solid.css">
    <!-- Font Awesome -->

    <!-- SweetAlert CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css">

    <!-- Bootstrap CSS -->
    <link href="https://stackpath.bootstrapcdn.com/bootstrap/5.3.2/css/bootstrap.min.css" rel="stylesheet">

    <?php echo $__env->yieldContent('header'); ?>

</head>

<body>



    <!-- Success Toast -->
    <?php if(session('successmessage')): ?>
        <div id="success-toast" class="toast bg-success align-items-center border-0 show" role="alert"
            aria-live="assertive" aria-atomic="true"
            style="position: fixed; top: 150px; right: 20px; z-index: 1050; border-radius: 8px;">
            <div class="toast-body d-flex text-white align-items-center">
                <i class="fa-regular fa-circle-check" style="font-size: 20px; margin-right: 10px;"></i>
                <div>
                    <?php echo e(session('successmessage')); ?>

                </div>
                <button type="button" class="btn-close btn-close-white ms-2" data-bs-dismiss="toast"
                    aria-label="Close"></button>
            </div>
        </div>
    <?php endif; ?>

    <!-- Error Toast -->
    <?php if(session('errormessage')): ?>
        <div id="error-toast" class="toast bg-danger align-items-center border-0 show" role="alert"
            aria-live="assertive" aria-atomic="true"
            style="position: fixed; top: 80px; right: 20px; z-index: 1050; border-radius: 8px;">
            <div class="toast-body d-flex text-white align-items-center">
                <i class="fa-solid fa-circle-exclamation" style="font-size: 20px; margin-right: 10px;"></i>
                <div>
                    <?php echo e(session('errormessage')); ?>

                </div>
                <button type="button" class="btn-close btn-close-white ms-2" data-bs-dismiss="toast"
                    aria-label="Close"></button>
            </div>
        </div>
    <?php endif; ?>


    <div class="wrapper" id="oMIGAiPL-App">
        <aside id="sidebar" class="js-sidebar">
            <div class="h-100" id="sidebar-contents">
                <div class="sidebar-logo">
                    <a href="<?php echo e(route('dashboard')); ?>">
                        
                    </a>
                </div>
                <ul class="sidebar-nav">
                    <li class="sidebar-item">
                        <a href="<?php echo e(route('dashboard')); ?>" class="sidebar-link">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/dashboard-light.svg"
                                class="pe-2 sidebar-icon light-icon">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/dashboard-dark.svg"
                                class="pe-2 sidebar-icon dark-icon">
                            Dashboard
                        </a>
                    </li>
                    
                    
                    <li class="sidebar-item">
                        <a href="<?php echo e(route('delivery_price_page')); ?>" class="sidebar-link">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/delivery-fee-light.svg"
                                class="pe-2 sidebar-icon light-icon">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/delivery-fee-dark.svg"
                                class="pe-2 sidebar-icon dark-icon">
                            Delivery Price
                        </a>
                    </li>
                    <li class="sidebar-item">
                        <a href="<?php echo e(route('user_management')); ?>" class="sidebar-link">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/users-light.svg"
                                class="pe-2 sidebar-icon light-icon">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/users-dark.svg"
                                class="pe-2 sidebar-icon dark-icon">
                            User Management
                        </a>
                    </li>
                    <li class="sidebar-item">
                        <a href="#" class="sidebar-link dropdown-submenu-link collapsed"
                            data-bs-target="#ProductMaster" data-bs-toggle="collapse" area-expanded="false"
                            aria-expanded="false">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/product-master-dark.svg"
                                class="pe-2 sidebar-icon dark-icon">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/product-master-light.svg"
                                class="pe-2 sidebar-icon light-icon">
                            Product Master
                        </a>
                        <ul id="ProductMaster" class="sidebar-dropdown list-unstyled collapse" data-bs-parent="#sidebar"
                            style="">
                            <li class="sidebar-item">
                                <a href="<?php echo e(route('category')); ?>" class="sidebar-link dropdown-link ">Category</a>
                            </li>
                            <li class="sidebar-item">
                                <a href="<?php echo e(route('products')); ?>" class="sidebar-link dropdown-link ">Products</a>
                            </li>
                        </ul>
                    </li>
                    <li class="sidebar-item">
                        <a href="#" class="sidebar-link dropdown-submenu-link collapsed"
                            data-bs-target="#ProductOrders" data-bs-toggle="collapse" area-expanded="false"
                            aria-expanded="false">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/product-orders-dark.svg"
                                class="pe-2 sidebar-icon dark-icon">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/product-orders-light.svg"
                                class="pe-2 sidebar-icon light-icon">
                            Product Orders
                        </a>
                        <ul id="ProductOrders" class="sidebar-dropdown list-unstyled collapse"
                            data-bs-parent="#sidebar" style="">
                            <li class="sidebar-item">
                                <a href="<?php echo e(route('recent_orders')); ?>" class="sidebar-link dropdown-link ">Recent
                                    Orders</a>
                            </li>
                            <li class="sidebar-item">
                                <a href="<?php echo e(route('accepted_orders')); ?>" class="sidebar-link dropdown-link ">Accepted
                                    Orders</a>
                            </li>
                            <li class="sidebar-item">
                                <a href="<?php echo e(route('processing_orders')); ?>"
                                    class="sidebar-link dropdown-link ">Shipped Orders</a>
                            </li>
                            <li class="sidebar-item">
                                <a href="<?php echo e(route('delivered_orders')); ?>"
                                    class="sidebar-link dropdown-link">Delivered Orders</a>
                            </li>
                            <li class="sidebar-item">
                                <a href="<?php echo e(route('cancelled_orders')); ?>"
                                    class="sidebar-link dropdown-link ">CancelledOrders</a>
                            </li>
                        </ul>
                    </li>
                    <li class="sidebar-item">
                        <a href="<?php echo e(route('banner')); ?>" class="sidebar-link">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/banner-light.svg"
                                class="pe-2 sidebar-icon light-icon">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/banner-dark.svg"
                                class="pe-2 sidebar-icon dark-icon">
                            Banner
                        </a>
                    </li>
                    <li class="sidebar-item">
                        <a href="<?php echo e(route('add_video')); ?>" class="sidebar-link">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/banner-light.svg"
                                class="pe-2 sidebar-icon light-icon">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/banner-dark.svg"
                                class="pe-2 sidebar-icon dark-icon">
                            Daily Task
                        </a>
                    </li>
                    <li class="sidebar-item">
                        <a href="<?php echo e(route('subscription_requests')); ?>" class="sidebar-link">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/notification-light.svg"
                                class="pe-2 sidebar-icon light-icon">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/notification-dark.svg"
                                class="pe-2 sidebar-icon dark-icon">
                            Subscription Requests
                        </a>
                    </li>
                    <li class="sidebar-item">
                        <a href="<?php echo e(route('notification')); ?>" class="sidebar-link">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/notification-light.svg"
                                class="pe-2 sidebar-icon light-icon">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/notification-dark.svg"
                                class="pe-2 sidebar-icon dark-icon">
                            Notification
                        </a>
                    </li>
                    <li class="sidebar-item">
                        <a href="<?php echo e(route('reset_password')); ?>" class="sidebar-link">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/reset-password-light.svg"
                                class="pe-2 sidebar-icon light-icon">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/reset-password-dark.svg"
                                class="pe-2 sidebar-icon dark-icon">
                            Reset Password
                        </a>
                    </li>

                    <li class="sidebar-item">
                        <a type="button" data-bs-toggle="modal" data-bs-target="#LogoutModal" class="sidebar-link">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/logout-light.svg"
                                class="pe-2 light-icon">
                            <img src="<?php echo e(asset('/assets')); ?>/images/icons/sidebar/logout-dark.svg"
                                class="pe-2 dark-icon">
                            Logout
                        </a>
                    </li>
                 

                </ul>
            </div>
        </aside>
        <div class="main">
           
            <nav class="navbar navbar-expand px-3">
                <button class="btn" id="sidebar-toggle" type="button">
                   <span class="navbar-toggler-icon"></span>
                </button>  
                <div id="profile-dropdown" class="navbar-collapse navbar pe-4">
                    <ul class="navbar-nav profile-nav-dropdown">
                        <li class="profile-li">
                            <div class="text-dark">Hello, <span>Admin</span></div>
                        </li>
                        <li class="nav-item dropdown">
                            <a href="#" data-bs-toggle="dropdown" class="nav-icon pe-md-0">
                                <img src="<?php echo e(asset('/assets')); ?>/images/avatar/avatar.svg" class="avatar img-fluid rounded" alt="">
                            </a>
                            <div class="dropdown-menu dropdown-menu-end profile-dropdown">
                                <div class="text-center profile-greets-holder">
                                    <p class="mb-0 greet-text text-muted">Welcome Back!</p>
                                    <p class="mb-0 dropdown-profile-name">Admin</p>
                                    <hr class="dropdown-divider">
                                </div>    
                                <a href="<?php echo e(route('profile')); ?>" class="dropdown-item">
                                   <i class="fa-regular fa-user me-2"></i>Rrofile
                                </a>
                                <a href="<?php echo e(route('reset_password')); ?>" class="dropdown-item">
                                    <i class="fa-solid fa-key me-2"></i>Reset Password
                                </a>
                                <a data-bs-toggle="modal" data-bs-target="#LogoutModal" href="" class="dropdown-item">
                                    <i class="fa-solid fa-power-off me-2"></i>Logout
                                </a>
                            </div>
                        </li>
                    </ul>
                </div>
            </nav>

            <!-- Offcanvas Slider -->
            <div style="max-width: 280px;background: #FFF;" class="offcanvas offcanvas-start" data-bs-scroll="true"
                data-bs-backdrop="true" tabindex="-1" id="offcanvasScrolling"
                aria-labelledby="offcanvasScrollingLabel">
                <div class="pb-0 offcanvas-header justify-content-end">
                    <button type="button" class="btn-close" data-bs-dismiss="offcanvas"
                        aria-label="Close"></button>
                </div>
                <div class="offcanvas-body pt-0 ps-0">

                </div>
            </div>
            <!-- Offcanvas Slider -->

            <main class="main-page-content">







                <!--Common Sample Modal  Starts-->
                <div class="modal fade zoom-in" id="SampleModal" tabindex="-1" aria-labelledby="exampleModalLabel"
                    aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-body">
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="p-3">
                                            <div class="text-center">
                                                <p class="my-4 are-you-sure">Are You Sure</p>
                                                <p class="text-muted my-2 are-you-sure-subtext">Are you sure want to
                                                    __________?</p>
                                            </div>
                                            <div class="d-flex align-items-center mt-5 mb-3">
                                                <button data-bs-dismiss="modal"
                                                    class="btn btn-light cancel-btn me-3">Cancel</button>
                                                <button class="btn btn-primary yes-btn"><i
                                                        class="fa-regular fa-circle-check me-2"></i>Yes,
                                                    ________</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--Common Modal Ends-->

                <!--Remark Modal  Starts-->
                <div class="modal fade zoom-in" id="RemarkModal" tabindex="-1" aria-labelledby="exampleModalLabel"
                    aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header border-bottom-0 pb-0">
                                <button type="button" class="btn-close" data-bs-dismiss="modal"
                                    aria-label="Close"></button>
                            </div>
                            <div class="modal-body p-3 px-lg-4">
                                <div class="row">
                                    <div class="col-lg-12">
                                        <form action="#" method="POST">
                                            <?php echo csrf_field(); ?>
                                            <div class="text-center">
                                                <h6 class="modal-heading">Remark</h6>
                                            </div>
                                            <div class="mb-3">
                                                <label for="title" class="form-label">Title</label>
                                                <input type="text" class="form-control" id="title"
                                                    placeholder="Title">
                                            </div>
                                            <div class="mb-3">
                                                <label for="title" class="form-label">Remark</label>
                                                <textarea class="form-control" placeholder="Enter Remark here" rows="3"></textarea>
                                            </div>
                                            <div class="d-flex justify-content-center align-items-center mt-5 mb-3">
                                                <button data-bs-dismiss="modal"
                                                    class="btn btn-light cancel-btn me-3">Cancel</button>
                                                <button type="submit" class="btn btn-primary btn-red"><i
                                                        class="fa-regular fa-circle-check me-2"></i>Submit</button>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--Remark Modal Ends-->

                <!--Delete Modal  Starts-->
                <div class="modal fade zoom-in" id="DeleteModal" tabindex="-1" aria-labelledby="exampleModalLabel"
                    aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-body">
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="p-3">
                                            <div class="text-center">
                                                <img class="mb-3"
                                                    src="<?php echo e(asset('/assets')); ?>/images/icons/delete-icon.svg">
                                                <p class="my-4 are-you-sure">Are You Sure</p>
                                                <p class="text-muted my-2 are-you-sure-subtext">Are you sure want to
                                                    Delete this _______________?</p>
                                            </div>
                                            <div class="d-flex align-items-center mt-5 mb-3">
                                                <button data-bs-dismiss="modal"
                                                    class="btn btn-light cancel-btn me-3">Cancel</button>
                                                <button class="btn btn-primary yes-btn"><i
                                                        class="fa-regular fa-circle-check me-2"></i>Yes, Delete
                                                    It!</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--Delete Modal Ends-->



                <!-- Log Out Modal Starts -->
                <div class="modal fade zoom-in" id="LogoutModal" tabindex="-1" aria-labelledby="LogoutModalLabel"
                    aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-body">
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="p-3">
                                            <div class="text-center">
                                                <img class="mb-3"
                                                    src="<?php echo e(asset('/assets')); ?>/images/icons/logout.svg">
                                                <p class="my-4 are-you-sure">Are You Sure</p>
                                                <p class="text-muted my-2 are-you-sure-subtext">Are you sure you want
                                                    to logout?</p>
                                            </div>
                                            <form action="<?php echo e(route('logout')); ?>" method="POST">
                                                <?php echo csrf_field(); ?>
                                                <div class="d-flex align-items-center mt-5 mb-3">
                                                    <button type="button" data-bs-dismiss="modal"
                                                        class="btn btn-light cancel-btn me-3">Cancel</button>
                                                    <button type="submit" class="btn btn-primary yes-btn">
                                                        <i class="fa-regular fa-circle-check me-2"></i>Yes, Logout
                                                    </button>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- Log Out Modal Ends -->




                <?php echo $__env->yieldContent('content'); ?>



            </main>



            <!-- Footer -->
            <footer class="footer">
                <div class="container-fluid px-lg-5">
                    <div class="row">
                        <div class="col-lg-6 col-6">
                            <span class="footer-text">
                                <script>
                                    document.write(new Date().getFullYear())
                                </script><span class="px-1">&#169;</span><span
                                    class="brand-text">AdZBAZZAR<span style="color:#04F7FF !important;"></span></span>
                            </span>
                        </div>
                        <div class="col-lg-6 col-6">
                            <div class="text-end">
                                <span class="footer-text">Developed by <a href="https://novelxtechnologies.com/"
                                        target="_blank" class="designed-by">Novel X</a></span>
                            </div>
                        </div>
                    </div>
                </div>
            </footer>
        </div>
    </div>


    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // Get session messages from Blade and escape them for use in JavaScript
            const successMessage = <?php echo json_encode(session('successmessage'), 15, 512) ?>;
            const errorMessage = <?php echo json_encode($errors->any() ? $errors->first() : null, 15, 512) ?>;

            function showAlertAndToast(type, message) {
                // Determine the alert title and text based on the type
                const isSuccess = type === 'success';
                const alertTitle = isSuccess ? 'Success' : 'Error';
                const alertText = message || (isSuccess ? 'Operation was successful!' : 'Something went wrong!');

                // Show SweetAlert
                Swal.fire({
                    icon: type,
                    title: alertTitle,
                    text: alertText,
                    willClose: () => {
                        // Show Toast after SweetAlert closes
                        const toastElement = document.getElementById(`${type}-toast`);
                        if (toastElement) {
                            const toast = new bootstrap.Toast(toastElement);
                            toast.show();
                        }
                    }
                });
            }

            // Show alerts based on session messages
            if (successMessage) {
                showAlertAndToast('success', successMessage);
            } else if (errorMessage) {
                showAlertAndToast('error', errorMessage);
            }

            // Event listeners for manual triggers (for testing)
            document.getElementById('trigger-success').addEventListener('click', function() {
                showAlertAndToast('success', successMessage);
            });

            document.getElementById('trigger-error').addEventListener('click', function() {
                showAlertAndToast('error', errorMessage);
            });
        });
    </script>

    

    <!-- JQuery CDN -->
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"
        integrity="sha384-KyZXEAg3QhqLMpG8r+Knujsl5+0XaPoufisyC/A5A4P3p6D5an6Zlvi4yU5a8rhP" crossorigin="anonymous">
    </script>

    <script type="text/javascript" src="<?php echo e(asset('/assets')); ?>/js/script.js"></script>
    <script type="text/javascript" src="<?php echo e(asset('/assets')); ?>/js/bootstrap/5.3.2/bootstrap.min.js"></script>

    <!-- SweetAlert JS -->
    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>

    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>

    <?php echo $__env->yieldContent('footer'); ?>
</body>

</html>
<?php /**PATH /var/www/adbazzar.com/resources/views/admin/layouts.blade.php ENDPATH**/ ?>