<!DOCTYPE html>

<?php if(!empty(Auth::guard('admin')->user()->name)): ?>
    <html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
    <?php
    $data = UserSystemInfoHelper::site_settings();
        $all_offer = UserSystemInfoHelper::all_offer();
    ?>

    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <!-- CSRF Token -->
        <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">

        <title><?php echo e($data->site_name); ?> Admin Panel</title>
        <link rel="apple-touch-icon" sizes="180x180" href="<?php echo e(asset('site_images')); ?>/<?php echo e($data->icon); ?>">
        <link rel="icon" type="image/png" sizes="32x32" href="<?php echo e(asset('site_images')); ?>/<?php echo e($data->icon); ?>">
        <link rel="icon" type="image/png" sizes="16x16" href="<?php echo e(asset('site_images')); ?>/<?php echo e($data->icon); ?>">
        <link rel="shortcut icon" type="image/x-icon" href="<?php echo e(asset('site_images')); ?>/<?php echo e($data->icon); ?>">
        <link rel="manifest" href="<?php echo e(config('app.url')); ?>/public/public/assets/img/favicons/manifest.json">
        <meta name="msapplication-TileImage" content="<?php echo e(asset('site_images')); ?>/<?php echo e($data->icon); ?>">
        <meta name="theme-color" content="#ffffff">

        <link rel="dns-prefetch" href="//fonts.gstatic.com">
        <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
        <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.css" rel="stylesheet">
        <script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.js" defer></script>

        <!-- Styles -->
        
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">

         <!-- Select2 css -->
         <link href="<?php echo e(config('app.url')); ?>/public/public/assets/assets/vendor/select2/css/select2.min.css"
            rel="stylesheet" type="text/css" />

        <!-- Daterangepicker css -->
        <link rel="stylesheet"
            href="<?php echo e(config('app.url')); ?>/public/public/assets/assets/vendor/daterangepicker/daterangepicker.css">

        <!-- Vector Map css -->
        <link rel="stylesheet"
            href="<?php echo e(config('app.url')); ?>/public/public/assets/assets/vendor/admin-resources/jquery.vectormap/jquery-jvectormap-1.2.2.css">

        <!-- Theme Config Js -->
        <script src="<?php echo e(config('app.url')); ?>/public/public/assets/assets/js/config.js"></script>

        <!-- App css -->
        <link href="<?php echo e(config('app.url')); ?>/public/public/assets/assets/css/app.min.css" rel="stylesheet"
            type="text/css" id="app-style" />

        <!-- Icons css -->
        <link href="<?php echo e(config('app.url')); ?>/public/public/assets/assets/css/icons.min.css" rel="stylesheet"
            type="text/css" />
        <link href="<?php echo e(config('app.url')); ?>/public/public/vendors/sweetalert2/sweetalert2.min.css" rel="stylesheet">
        


        <style>
            li.list-inline-item {
                transition: all .5s;
            }

            li.list-inline-item:hover {
                transform: scale(1.3);
            }

            .popover {
                --ct-popover-bg: #6da09c;
                --ct-popover-border-color: #6da09c;
            }

            .popover-body {
                color: white
            }
            #search-dropdown{
                height: 300px !important;
                overflow: auto;
            }
        </style>




<style>
            .tooltip-toggle {
                cursor: pointer;
                position: relative;
            }
            .tooltip-toggle svg {
                height: 18px;
                width: 18px;
            }
            .tooltip-toggle::before {
                position: absolute;
                top: -80px;
                left: -80px;
                background-color: #2B222A;
                border-radius: 5px;
                color: #fff;
                content: attr(aria-label);
                padding: 1rem;
                text-transform: none;
                transition: all 0.5s ease;
                width: 160px;
            }
            .tooltip-toggle::after {
                position: absolute;
                top: -12px;
                left: 9px;
                border-left: 5px solid transparent;
                border-right: 5px solid transparent;
                border-top: 5px solid #2B222A;
                content: " ";
                font-size: 0;
                line-height: 0;
                margin-left: -5px;
                width: 0;
            }
            .tooltip-toggle::before, .tooltip-toggle::after {
                color: #efefef;
                font-family: monospace;
                font-size: 16px;
                opacity: 0;
                pointer-events: none;
                text-align: center;
            }
            .tooltip-toggle:focus::before, .tooltip-toggle:focus::after, .tooltip-toggle:hover::before, .tooltip-toggle:hover::after {
                opacity: 1;
                transition: all 0.75s ease;
            }
        </style>

    </head>


    <body>


    <div class="wrapper">


 <!-- ========== Topbar Start ========== -->
 <div class="navbar-custom">
                <div class="topbar container-fluid">
                    <div class="d-flex align-items-center gap-lg-2 gap-1">

                        <!-- Topbar Brand Logo -->
                        <div class="logo-topbar">
                            <!-- Logo light -->
                            <a href="<?php echo e(route('admin.dashboard')); ?>" class="logo-light">
                                <span class="logo-lg">
                                    <img src="assets/images/logo.png" alt="logo">
                                </span>
                                <span class="logo-sm">
                                    <img src="<?php echo e(asset('site_images')); ?>/<?php echo e($data->icon); ?>" alt="small logo">
                                </span>
                            </a>

                            <!-- Logo Dark -->
                            <a href="<?php echo e(route('admin.dashboard')); ?>" class="logo-dark">
                                <span class="logo-lg">
                                    <img src="assets/images/logo-dark.png" alt="dark logo">
                                </span>
                                <span class="logo-sm">
                                    <img src="<?php echo e(asset('site_images')); ?>/<?php echo e($data->icon); ?>" alt="small logo">
                                </span>
                            </a>
                        </div>

                        <!-- Sidebar Menu Toggle Button -->
                        <button class="button-toggle-menu">
                            <i class="ri-menu-2-fill"></i>
                        </button>

                        <!-- Topbar Search Form -->
                        <div class="app-search dropdown d-none d-lg-block">
                            <form>
                                <div class="input-group">
                                    <input type="search" class="form-control dropdown-toggle" placeholder="Search..." id="top-search">
                                    <span class="ri-search-line search-icon"></span>
                                </div>
                            </form>

                            <div class="dropdown-menu dropdown-menu-animated dropdown-lg" id="search-dropdown">
                                <!-- item-->
                                <div class="dropdown-header noti-title" id="all_offers_results">
                                    <h5 class="text-overflow mb-1">All <b class="text-decoration-underline"></b> Offers</h5>
                                </div>
                                            <?php $__currentLoopData = $all_offer; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $offer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <a class="dropdown-item px-card py-2"
                                                    href="<?php echo e(route('admin.offers', $offer->id)); ?>">
                                                    <div class="d-flex align-items-center">
                                                        <div class="file-thumbnail me-2"><img
                                                                class="border h-100 w-100 fit-cover rounded-3"
                                                                src="<?php echo e(asset('uploads')); ?>/<?php echo e($offer->preview_url); ?>"
                                                                alt="" />
                                                        </div>
                                                        <div class="flex-1">
                                                            <h6 class="mb-0 title"><?php echo e($offer->offer_name); ?></h6>
                                                            <p class="fs--2 mb-0 d-flex"><span
                                                                    class="fw-semi-bold"><?php echo e($offer->status); ?></span><span
                                                                    class="fw-medium text-600 ms-2"><?php echo e($offer->created_at); ?></span>
                                                            </p>
                                                        </div>
                                                    </div>
                                                </a>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                               
                                <!-- item-->
                                <div class="dropdown-header noti-title">
                                    <h6 class="text-overflow mt-2 mb-1 text-uppercase">End Offers</h6>
                                </div>

                                <div class="notification-list">


                                    <!-- item-->
                                    
                                </div>
                            </div>
                        </div>
                    </div>

                    <ul class="topbar-menu d-flex align-items-center gap-3">
                        <li class="dropdown d-lg-none">
                            <a class="nav-link dropdown-toggle arrow-none" data-bs-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
                                <i class="ri-search-line fs-22"></i>
                            </a>
                            <div class="dropdown-menu dropdown-menu-animated dropdown-lg p-0">
                                <form class="p-3">
                                    <input type="search" class="form-control" placeholder="Search ..." aria-label="Recipient's username">
                                </form>
                            </div>
                        </li>

                        <li class="dropdown">
                            <a class="nav-link dropdown-toggle arrow-none" data-bs-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
                                <img src="<?php echo e(config('app.url')); ?>/public/public/assets/assets/images/flags/us.jpg" alt="user-image" class="me-0 me-sm-1" height="12">
                                <span class="align-middle d-none d-lg-inline-block">English</span> <i class="ri-arrow-down-s-line d-none d-sm-inline-block align-middle"></i>
                            </a>
                            <div class="dropdown-menu dropdown-menu-end dropdown-menu-animated">

                                <!-- item-->
                                <a href="javascript:void(0);" class="dropdown-item">
                                    <img src="<?php echo e(config('app.url')); ?>/public/public/assets/assets/images/flags/germany.jpg" alt="user-image" class="me-1" height="12"> <span class="align-middle">German</span>
                                </a>

                                <!-- item-->
                                <a href="javascript:void(0);" class="dropdown-item">
                                    <img src="<?php echo e(config('app.url')); ?>/public/public/assets/assets/images/flags/italy.jpg" alt="user-image" class="me-1" height="12"> <span class="align-middle">Italian</span>
                                </a>

                                <!-- item-->
                                <a href="javascript:void(0);" class="dropdown-item">
                                    <img src="<?php echo e(config('app.url')); ?>/public/public/assets/assets/images/flags/spain.jpg" alt="user-image" class="me-1" height="12"> <span class="align-middle">Spanish</span>
                                </a>

                                <!-- item-->
                                <a href="javascript:void(0);" class="dropdown-item">
                                    <img src="<?php echo e(config('app.url')); ?>/public/public/assets/assets/images/flags/russia.jpg" alt="user-image" class="me-1" height="12"> <span class="align-middle">Russian</span>
                                </a>

                            </div>
                        </li>

                        <li class="dropdown notification-list">
                            <a class="nav-link dropdown-toggle arrow-none" data-bs-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
                                <i class="ri-notification-3-line fs-22"></i>
                                <span class="noti-icon-badge"></span>
                            </a>
                            <div class="dropdown-menu dropdown-menu-end dropdown-menu-animated dropdown-lg py-0">
                                <div class="p-2 border-top-0 border-start-0 border-end-0 border-dashed border">
                                    <div class="row align-items-center">
                                        <div class="col">
                                            <h6 class="m-0 fs-16 fw-semibold"> Notification</h6>
                                        </div>
                                        <div class="col-auto">
                                            <a href="javascript: void(0);" class="text-dark text-decoration-underline">
                                                <small>Clear All</small>
                                            </a>
                                        </div>
                                    </div>
                                </div>

                                <div style="max-height: 300px;" data-simplebar>

                                    <h5 class="text-muted fs-12 fw-bold p-2 text-uppercase mb-0">Today</h5>
                                    <!-- item-->
                                    

                                    <?php $messages=UserSystemInfoHelper::get_all_messages('admin');?>
                                                <?php if(!empty($$messages)): ?>
                                                <?php $__currentLoopData = $messages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $message): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <div class="list-group-item">
                                                        <a class="dropdown-item p-0 notify-item read-noti card m-0 shadow-none"
                                                            href="<?php echo e(route('admin.view-message', $message->id)); ?>">
                                                            <div class="notify-icon bg-info">
                                                                <div class="avatar avatar-2xl me-3">
                                                                    <img class="rounded-circle"
                                                                        src="<?php echo e($message->image); ?>" alt="" />

                                                                </div>
                                                            </div>
                                                            <div class="notification-body">
                                                                <p class="mb-1">
                                                                    <strong><?php echo e($message->sender); ?></strong> Messages
                                                                    you : "<?php echo e($message->subject); ?>"</p>
                                                                <span class="notification-time"><span class="me-2"
                                                                        role="img"
                                                                        aria-label="Emoji">ðŸ’¬</span><?php echo e(date_format(date_create($message->created_at), ' h:i a')); ?></span>

                                                            </div>
                                                        </a>

                                                    </div>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                <?php else: ?>
                                                <div class="list-group-item">
                                                    <div class="alert alert-success">There is not any unread Notification</div>
                                                </div>
                                                <?php endif; ?>

                                <!-- All-->
                                <a href="javascript:void(0);" class="dropdown-item text-center text-primary text-decoration-underline fw-bold notify-item border-top border-light py-2">
                                    View All
                                </a>

                            </div>
                        </li>

                        <li class="dropdown d-none d-sm-inline-block">
                            <a class="nav-link dropdown-toggle arrow-none" data-bs-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
                                <i class="ri-apps-2-line fs-22"></i>
                            </a>
                            <div class="dropdown-menu dropdown-menu-end dropdown-menu-animated dropdown-lg p-0">

                                <div class="p-2">
                                    <div class="row g-0">
                                        <div class="col">
                                            
                                        </div>
                                       

                                    <div class="row g-0">
                                        
                                        </div>
                                    </div> <!-- end row-->
                                </div>

                            </div>
                        </li>

                        <li class="d-none d-sm-inline-block">
                            <div class="nav-link" id="light-dark-mode">
                                <i class="ri-moon-line fs-22"></i>
                            </div>
                        </li>


                        <li class="d-none d-md-inline-block">
                            <a class="nav-link" href="" data-toggle="fullscreen">
                                <i class="ri-fullscreen-line fs-22"></i>
                            </a>
                        </li>
                        

                        <li class="dropdown">
                            <a class="nav-link dropdown-toggle arrow-none nav-user px-2" data-bs-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
                                <span class="account-user-avatar">
                                    <img src="<?php echo e(asset('site_images')); ?>/<?php echo e(Auth::guard('admin')->user()->photo); ?>" alt="user-image" width="32" class="rounded-circle">
                                </span>
                                <span class="d-lg-flex flex-column gap-1 d-none">
                                    <h5 class="my-0"><?php echo e(Auth::guard('admin')->user()->name); ?></h5>
                                    <h6 class="my-0 fw-normal">Admin</h6>
                                </span>
                                
                            </a>
                            <div class="dropdown-menu dropdown-menu-end dropdown-menu-animated profile-dropdown">
                                <!-- item-->
                                <div class=" dropdown-header noti-title">
                                    <h6 class="text-overflow m-0">Welcome !</h6>
                                </div>

                                <!-- item-->
                                <a href="<?php echo e(route('admin.settings')); ?>" class="dropdown-item">
                                    <i class="ri-account-circle-line fs-18 align-middle me-1"></i>
                                    <span>My Account</span>
                                </a>

                                <!-- item-->
                                <a href="<?php echo e(route('admin.settings')); ?>" class="dropdown-item">
                                    <i class="ri-settings-4-line fs-18 align-middle me-1"></i>
                                    <span>Settings</span>
                                </a>

                                <!-- item-->
                                <a href="<?php echo e(route('admin.messages')); ?>" class="dropdown-item">
                                    <i class="ri-customer-service-2-line fs-18 align-middle me-1"></i>
                                    <span>Support</span>
                                </a>

                                <!-- item-->
                                <a href="<?php echo e(route('admin.logout')); ?>" onclick="event.preventDefault(); document.getElementById('admin-logout-form').submit();" class="dropdown-item">
                                    <i class="ri-logout-box-line fs-18 align-middle me-1"></i>
                                    <span>Logout</span>
                                        </a>

                                        <form id="admin-logout-form" action="<?php echo e(route('admin.logout')); ?>"
                                            method="POST" class="d-none">
                                            <?php echo csrf_field(); ?>
                                        </form>
                                </a>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
            <!-- ========== Topbar End ========== -->

            <!-- ========== Left Sidebar Start ========== -->
            <div class="leftside-menu">

                <!-- Brand Logo Light -->
<!-- Logo light -->


                <a href="<?php echo e(route('admin.dashboard')); ?>" class="logo logo-light">
                    <span class="logo-lg">
                        <img src="<?php echo e(asset('site_images')); ?>/<?php echo e($data->logo); ?>" alt="logo">
                    </span>
                    <span class="logo-sm">
                        <img src="<?php echo e(asset('site_images')); ?>/<?php echo e($data->icon); ?>" alt="small logo">
                    </span>
                </a>

                <!-- Brand Logo Dark -->
                <a href="<?php echo e(route('admin.dashboard')); ?>" class="logo logo-dark">
                    <span class="logo-lg">
                        <img src="<?php echo e(asset('site_images')); ?>/<?php echo e($data->logo); ?>" alt="dark logo">
                    </span>
                    <span class="logo-sm">
                        <img src="<?php echo e(asset('site_images')); ?>/<?php echo e($data->icon); ?>" alt="small logo">
                    </span>
                </a>
                <!-- Full Sidebar Menu Close Button -->
                <div class="button-close-fullsidebar">
                    <i class="ri-close-fill align-middle"></i>
                </div>

                <!-- Sidebar -left -->
                <div class="h-100" id="leftside-menu-container" data-simplebar>
                    <!-- Leftbar User -->
                    <div class="leftbar-user">
                        <a href="pages-profile.html">
                            <img src="assets/images/users/avatar-1.jpg" alt="user-image" height="42" class="rounded-circle shadow-sm">
                            <span class="leftbar-user-name mt-2">Michael Berndt</span>
                        </a>
                    </div>

                    <!--- Sidemenu -->
                    <ul class="side-nav">
                        <li class="side-nav-item">
                            <a href="<?php echo e(route('admin.dashboard')); ?>" class="side-nav-link">
                                <i class="ri-dashboard-2-fill"></i>
                                <span> Dashboard </span>
                            </a>
                        </li>

                        <li class="side-nav-item">
                            <a data-bs-toggle="collapse" href="#manage-account" aria-expanded="false" aria-controls="manage-account" class="side-nav-link">
                                <i class="ri-nurse-fill"></i>
                                <span> Manage Accounts </span>
                                <span class="menu-arrow"></span>
                            </a>
                            <div class="collapse" id="manage-account">
                                <ul class="side-nav-second-level">
                                    <li>
                                        <a href="<?php echo e(route('admin.manage-publishers')); ?>">Publisher</a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('admin.manage-affliatemanager')); ?>">Affiliate Managers</a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('admin.manage-advertiser')); ?>">Advertisers</a>
                                    </li>
                                </ul>
                            </div>
                        </li>

                        <li class="side-nav-item">
                            <a data-bs-toggle="collapse" href="#offers" aria-expanded="false" aria-controls="offers" class="side-nav-link">
                                <i class="ri-briefcase-fill"></i>
                                <span> Offers </span>
                                <span class="menu-arrow"></span>
                            </a>
                            <div class="collapse" id="offers">
                                <ul class="side-nav-second-level">
                                    <li>
                                        <a href="<?php echo e(route('admin.add-offer')); ?>">Add Offers</a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('admin.view-offer')); ?>">View Offers</a>
                                    </li>
                                </ul>
                            </div>
                        </li>
                        <ul class="side-nav">
                        <li class="side-nav-item">
                            <a href="<?php echo e(route('admin.offer-performance')); ?>" class="side-nav-link">
                                <i class="ri-pie-chart-line"></i>
                                <span> Performance Report </span>
                            </a>
                        </li>

                        <!-- OFFERS REPORTS -->

                 <!--       <li class="side-nav-item">
                            <a data-bs-toggle="collapse" href="#offers-report" aria-expanded="false" aria-controls="offers-report" class="side-nav-link">
                                <i class="ri-stack-fill"></i>
                                <span> Offers Report </span>
                                <span class="menu-arrow"></span>
                            </a>
                            <div class="collapse" id="offers-report">
                                <ul class="side-nav-second-level">
                                    <li>
                                        <a href="<?php echo e(route('admin.offer-performance')); ?>">Performance</a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('admin.view-offer-report')); ?>">View Offers Report</a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('admin.view-offer-report-s')); ?>">View Offers Report Second</a>
                                    </li>
                                </ul>
                            </div>
                        </li> -->

                        <li class="side-nav-item">
                            <a data-bs-toggle="collapse" href="#Leads_process" aria-expanded="false" aria-controls="Leads_process" class="side-nav-link">
                                <i class="ri-focus-3-fill"></i>
                                <span> Clicks and Leads </span>
                                <span class="menu-arrow"></span>
                            </a>
                            <div class="collapse" id="Leads_process">
                                <ul class="side-nav-second-level">
                                    <li>
                                        <a href="<?php echo e(route('admin.clicks')); ?>">Clicks </a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('admin.leads')); ?>">Leads </a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('admin.reject-leads')); ?>">Rejected Leads </a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('admin.smartlink-clicks')); ?>">Smartlink Clicks </a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('admin.smartlink-leads')); ?>">Smartlink Leads </a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('admin.rejected-smartlink-leads')); ?>">Rejected Smartlink Leads </a>
                                    </li>
                                </ul>
                            </div>
                        </li>
                        <li class="side-nav-item">
                            <a data-bs-toggle="collapse" href="#approval-request" aria-expanded="false" aria-controls="approval-request" class="side-nav-link">
                                <i class="ri-draft-fill"></i>
                                <span> Approval Request </span>
                                <span class="menu-arrow"></span>
                            </a>
                            <div class="collapse" id="approval-request">
                                <ul class="side-nav-second-level">
                                    <li>
                                        <a href="<?php echo e(route('admin.publisher-approval-request')); ?>">Publisher Approval Request</a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('admin.approval-request')); ?>">Offer Approval Request</a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('admin.manage-smartlink-request')); ?>">Smartlink Request</a>
                                    </li>
                                </ul>
                            </div>
                        </li>
                        <li class="side-nav-item">
                            <a data-bs-toggle="collapse" href="#category" aria-expanded="false" aria-controls="category" class="side-nav-link">
                                <i class="ri-service-fill"></i>
                                <span> Categories </span>
                                <span class="menu-arrow"></span>
                            </a>
                            <div class="collapse" id="category">
                                <ul class="side-nav-second-level">
                                    <li>
                                        <a href="<?php echo e(route('admin.manage-site-categories')); ?>">Website Category </a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('admin.manage-categories')); ?>">Offer Category </a>
                                    </li>
                                </ul>
                            </div>
                        </li>
                        <ul class="side-nav">
                        <li class="side-nav-item">
                            <a href="<?php echo e(route('admin.manage-smartlink-domain')); ?>" class="side-nav-link">
                                <i class="ri-link-unlink-m"></i>
                                <span> Tracking Domain </span>
                            </a>
                        </li>
                        <ul class="side-nav">
                        <li class="side-nav-item">
                            <a href="<?php echo e(route('admin.manage-news')); ?>" class="side-nav-link">
                                <i class="ri-megaphone-line"></i>
                                <span> News/Announcements </span>
                            </a>
                        </li>
                        <ul class="side-nav">
                        <li class="side-nav-item">
                            <a href="<?php echo e(route('admin.messages')); ?>" class="side-nav-link">
                                <i class="ri-chat-3-line"></i>
                                <span> Message </span>
                            </a>
                        </li>
                        <ul class="side-nav">
                        <li class="side-nav-item">
                            <a href="<?php echo e(route('admin.manage-ban-ip')); ?>" class="side-nav-link">
                                <i class="ri-prohibited-line"></i>
                                <span> BAN IP'S </span>
                            </a>
                        </li>

                        <li class="side-nav-item">
                            <a data-bs-toggle="collapse" href="#Postback" aria-expanded="false" aria-controls="Postback" class="side-nav-link">
                                <i class="ri-key-2-fill"></i>
                                <span> Postback </span>
                                <span class="menu-arrow"></span>
                            </a>
                            <div class="collapse" id="Postback">
                                <ul class="side-nav-second-level">
                                    <li>
                                        <a href="<?php echo e(route('admin.manage-postback-log')); ?>">Postback Logs Sent</a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('admin.manage-postback-log-receive')); ?>">Postback Logs Received</a>
                                    </li>
                                </ul>
                            </div>
                        </li>

                        <li class="side-nav-title">Payment Section</li>

                        <ul class="side-nav">
                        <li class="side-nav-item">
                            <a href="<?php echo e(route('admin.manage-payment')); ?>" class="side-nav-link">
                                <i class="ri-visa-line"></i>
                                <span> Payment Methods </span>
                            </a>
                        </li>

                        <li class="side-nav-item">
                            <a data-bs-toggle="collapse" href="#chashout" aria-expanded="false" aria-controls="chashout" class="side-nav-link">
                                <i class="ri-wallet-3-fill"></i>
                                <span> Cashout Requests </span>
                                <span class="menu-arrow"></span>
                            </a>
                            <div class="collapse" id="chashout">
                                <ul class="side-nav-second-level">
                                    <li>
                                        <a href="<?php echo e(route('admin.manage-cashout')); ?>">Publisher Cashout</a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('admin.manage-cashout-affliate')); ?>">Manager Cashout</a>
                                    </li>
                                </ul>
                            </div>
                        </li>


                        <li class="side-nav-title">Control Section</li>


                                            <ul class="side-nav">
                                            <li class="side-nav-item">
                                                <a href="<?php echo e(route('admin.settings')); ?>" class="side-nav-link">
                                                    <i class="ri-settings-4-line"></i>
                                                    <span> Settings </span>
                                                </a>
                                            </li>
                                            </ul>

                                    </div>
                                </li>
                           </ul>
                      </div>
                   </li>
                        </ul>
                      </div>
                      </li>


                    </ul>
                    <!--- End Sidemenu -->

                    <div class="clearfix"></div>
                </div>
            </div>
            <!-- ========== Left Sidebar End ========== -->
            <?php echo $__env->yieldContent('content'); ?>
            <!-- Footer Start -->
            <footer class="footer">
                    <div class="container-fluid">
                        <div class="row">
                            <div class="col-md-6">
                                <script>document.write(new Date().getFullYear())</script> © JrJohir - bdbse.com
                            </div>
                            <div class="col-md-6">
                                <div class="text-md-end footer-links d-none d-md-block">
                                    <a href="javascript: void(0);">About</a>
                                    <a href="javascript: void(0);">Support</a>
                                    <a href="javascript: void(0);">Contact Us</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </footer>
                <!-- end Footer -->



        <script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>


        <!-- Vendor js -->
        <script src="<?php echo e(config('app.url')); ?>/public/public/assets/assets/js/vendor.min.js"></script>

        <!--  Select2 Plugin Js -->
        <script src="<?php echo e(config('app.url')); ?>/public/public/assets/assets/vendor/select2/js/select2.min.js"></script>

        <!-- Daterangepicker js -->
        <script src="<?php echo e(config('app.url')); ?>/public/public/assets/assets/vendor/daterangepicker/moment.min.js"></script>
        <script src="<?php echo e(config('app.url')); ?>/public/public/assets/assets/vendor/daterangepicker/daterangepicker.js"></script>

        <!-- Apex Charts js -->
        <script src="<?php echo e(config('app.url')); ?>/public/public/assets/assets/vendor/apexcharts/apexcharts.min.js"></script>

        <!-- Vector Map js -->
        <script
            src="<?php echo e(config('app.url')); ?>/public/public/assets/assets/vendor/admin-resources/jquery.vectormap/jquery-jvectormap-1.2.2.min.js">
        </script>
        <script
            src="<?php echo e(config('app.url')); ?>/public/public/assets/assets/vendor/admin-resources/jquery.vectormap/maps/jquery-jvectormap-world-mill-en.js">
        </script>

        
        <script src="<?php echo e(config('app.url')); ?>/public/public/vendors/sweetalert2/sweetalert2.min.js"></script>

        <!-- Dashboard App js -->
        <script src="<?php echo e(config('app.url')); ?>/public/public/assets/assets/js/pages/demo.dashboard.js"></script>

        <!-- App js -->
        <script src="<?php echo e(config('app.url')); ?>/public/public/assets/assets/js/app.min.js"></script>
        <?php echo $__env->yieldContent('js'); ?>
        <script>
            $(function() {
                $('#offer_search_box').keyup(function() {
                    var text = $(this).val();
                    var csrf = $("meta[name=csrf-token]").attr("content");
                    $.ajax({
                        url: "<?php echo e(route('admin.search_offer_dashboard')); ?>",
                        type: 'post',
                        dataType: 'JSON',
                        headers: {
                            "X-CSRFToken": csrf
                        },
                        data: {
                            "_token": csrf,
                            'text': text
                        },
                        success: function(result) {
                            $('.loader').fadeOut();
                            // console.log(result);
                            if (!result.status) {
                                Swal.fire('Failed', result.message, 'error');

                            } else {

                                $('#all_offers_results').empty();
                                // $('.emojiarea-editor').empty();
                                // $('#chat-message').val('');
                                // $('#chat-file-upload').val('');
                                $('#all_offers_results').append(result.data);


                            }
                        },

                    });
                });
            });

            function dt_search(dt_table_object) {
                var container = dt_table_object.table().container();
                var dt_search = $(container).find('div.dataTables_filter input');
                dt_search.unbind();
                var conatiner_id = $(container).attr('id')
                var search_id = conatiner_id.replace('wrapper', 'search');
                dt_search.after('<button class="btn btn-sm btn-primary" id="' + search_id +
                    '"><i class="fe-search"></i></button>');
                $("#" + search_id).click(function() {
                    var keyword = dt_search.val();
                    dt_table_object.search(keyword).draw();
                });
                dt_search.keyup(function(e) {
                    if (e.keyCode == 13) {
                        dt_table_object.search(this.value).draw();
                    }
                });
            }
            function updateTime() {
                const timeElement = document.getElementById('time');
                const dateElement = document.getElementById('date');

                const now = new Date();
                const hours = now.getUTCHours();
                const minutes = now.getUTCMinutes();
                const seconds = now.getUTCSeconds();

                const ampm = hours >= 12 ? 'PM' : 'AM';
                const formattedHours = hours % 12 === 0 ? 12 : hours % 12;
                const formattedTime = `${formatDigits(formattedHours)}:${formatDigits(minutes)}:${formatDigits(seconds)} ${ampm}`;
                timeElement.textContent = formattedTime;

                const months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
                const day = now.getUTCDate();
                const month = months[now.getUTCMonth()];
                const year = now.getUTCFullYear();
                dateElement.textContent = `${day} ${month}, ${year} (UTC)`;
            }

            function formatDigits(value) {
                return value < 10 ? `0${value}` : value;
            }

            // Update time every second
            setInterval(updateTime, 1000);

            // Initial update
            updateTime();
        </script>
    </body>

    </html>
<?php endif; ?>
<?php /**PATH /home/admin/partner.cpalider.com/backend/resources/views/admin/layout/admin-dashboard.blade.php ENDPATH**/ ?>