<?php $__env->startSection('title', 'Dashboard'); ?>
<?php $__env->startSection('ad_page_title', 'Dashboard'); ?>
<?php $__env->startSection('ad_page_subtitle', 'Quick overview of website management items'); ?>

<?php $__env->startPush('ad_styles'); ?>
<style>
    .ad_dashboard_shell{
        display:flex;
        flex-direction:column;
        gap:24px;
    }

    .ad_dashboard_welcome{
        position:relative;
        overflow:hidden;
        border-radius:32px;
        padding:32px;
        background:
            radial-gradient(circle at top right, rgba(255,255,255,.20), transparent 26%),
            radial-gradient(circle at bottom left, rgba(255,255,255,.12), transparent 28%),
            linear-gradient(135deg, #0f172a 0%, #1d4ed8 48%, #7c3aed 100%);
        color:#fff;
        box-shadow:0 24px 60px rgba(37,99,235,.18);
    }

    .ad_dashboard_welcome_inner{
        position:relative;
        z-index:2;
        display:flex;
        align-items:flex-start;
        justify-content:space-between;
        gap:20px;
        flex-wrap:wrap;
    }

    .ad_dashboard_welcome h2{
        margin:0;
        font-size:30px;
        font-weight:800;
        line-height:1.15;
    }

    .ad_dashboard_welcome p{
        margin:12px 0 0;
        max-width:760px;
        color:rgba(255,255,255,.88);
        font-size:14px;
        line-height:1.8;
    }

    .ad_dashboard_badge{
        display:inline-flex;
        align-items:center;
        gap:10px;
        padding:12px 16px;
        border-radius:999px;
        background:rgba(255,255,255,.12);
        border:1px solid rgba(255,255,255,.16);
        color:#fff;
        font-weight:700;
        backdrop-filter:blur(8px);
    }

    .ad_dashboard_orb{
        position:absolute;
        border-radius:999px;
        background:rgba(255,255,255,.08);
        filter:blur(2px);
        z-index:1;
    }

    .ad_dashboard_orb.orb_1{
        width:160px;
        height:160px;
        top:-40px;
        right:80px;
    }

    .ad_dashboard_orb.orb_2{
        width:120px;
        height:120px;
        bottom:-20px;
        left:30px;
    }

    .ad_stats_grid{
        display:grid;
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap:20px;
    }

    .ad_stat_box{
        position:relative;
        overflow:hidden;
        border-radius:28px;
        background:#fff;
        border:1px solid #e2e8f0;
        box-shadow:0 18px 40px rgba(15,23,42,.06);
        min-height:180px;
    }

    .ad_stat_box::before{
        content:"";
        position:absolute;
        inset:0 0 auto 0;
        height:5px;
        background:linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    }

    .ad_stat_box_inner{
        position:relative;
        padding:26px;
        display:flex;
        flex-direction:column;
        gap:14px;
        height:100%;
    }

    .ad_stat_box_top{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:14px;
    }

    .ad_stat_box_icon{
        width:62px;
        height:62px;
        border-radius:20px;
        display:flex;
        align-items:center;
        justify-content:center;
        font-size:24px;
        color:#2563eb;
        background:linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.10));
        box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
    }

    .ad_stat_box_chip{
        display:inline-flex;
        align-items:center;
        gap:8px;
        padding:8px 12px;
        border-radius:999px;
        background:#f8fafc;
        border:1px solid #e2e8f0;
        color:#64748b;
        font-size:12px;
        font-weight:700;
    }

    .ad_stat_box_label{
        font-size:14px;
        font-weight:700;
        color:#64748b;
        margin:0;
    }

    .ad_stat_box_value{
        margin:0;
        font-size:40px;
        font-weight:800;
        line-height:1;
        color:#0f172a;
    }

    .ad_stat_box_text{
        margin:0;
        font-size:13px;
        color:#64748b;
        line-height:1.8;
    }

    .ad_dashboard_grid{
        display:grid;
        grid-template-columns:1.2fr .8fr;
        gap:20px;
    }

    .ad_panel_box{
        background:#fff;
        border:1px solid #e2e8f0;
        border-radius:28px;
        box-shadow:0 18px 40px rgba(15,23,42,.06);
        overflow:hidden;
    }

    .ad_panel_head{
        padding:22px 24px 0;
        display:flex;
        align-items:flex-start;
        justify-content:space-between;
        gap:16px;
        flex-wrap:wrap;
    }

    .ad_panel_head h3{
        margin:0;
        font-size:22px;
        font-weight:800;
        color:#0f172a;
    }

    .ad_panel_head p{
        margin:8px 0 0;
        color:#64748b;
        font-size:13px;
        line-height:1.8;
    }

    .ad_panel_body{
        padding:24px;
    }

    .ad_actions_grid{
        display:grid;
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:16px;
    }

    .ad_action_card{
        display:flex;
        align-items:flex-start;
        gap:14px;
        padding:18px;
        border-radius:22px;
        background:#f8fafc;
        border:1px solid #e2e8f0;
        transition:all .25s ease;
    }

    .ad_action_card:hover{
        transform:translateY(-2px);
        border-color:#cbd5e1;
        box-shadow:0 14px 28px rgba(15,23,42,.06);
    }

    .ad_action_icon{
        width:54px;
        height:54px;
        border-radius:18px;
        display:flex;
        align-items:center;
        justify-content:center;
        font-size:20px;
        color:#2563eb;
        background:linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.10));
        flex-shrink:0;
    }

    .ad_action_content{
        min-width:0;
    }

    .ad_action_content h4{
        margin:0;
        font-size:16px;
        font-weight:800;
        color:#0f172a;
    }

    .ad_action_content p{
        margin:6px 0 12px;
        font-size:13px;
        color:#64748b;
        line-height:1.7;
    }

    .ad_action_link{
        display:inline-flex;
        align-items:center;
        gap:8px;
        font-size:13px;
        font-weight:700;
        color:#2563eb;
    }

    .ad_site_card{
        display:flex;
        flex-direction:column;
        gap:16px;
    }

    .ad_site_primary{
        padding:20px;
        border-radius:24px;
        background:
            radial-gradient(circle at top right, rgba(255,255,255,.55), transparent 24%),
            linear-gradient(135deg, #eff6ff 0%, #f8fafc 45%, #f5f3ff 100%);
        border:1px solid #dbeafe;
    }

    .ad_site_primary h4{
        margin:0;
        font-size:22px;
        font-weight:800;
        color:#0f172a;
    }

    .ad_site_primary p{
        margin:8px 0 0;
        color:#64748b;
        font-size:13px;
        line-height:1.8;
    }

    .ad_site_info_list{
        display:grid;
        gap:12px;
    }

    .ad_site_info_item{
        display:flex;
        align-items:flex-start;
        gap:12px;
        padding:16px;
        border-radius:20px;
        border:1px solid #e2e8f0;
        background:#fff;
    }

    .ad_site_info_icon{
        width:42px;
        height:42px;
        border-radius:14px;
        display:flex;
        align-items:center;
        justify-content:center;
        color:#2563eb;
        background:#eff6ff;
        flex-shrink:0;
    }

    .ad_site_info_item strong{
        display:block;
        font-size:13px;
        color:#64748b;
        margin-bottom:4px;
    }

    .ad_site_info_item span{
        display:block;
        font-size:14px;
        font-weight:700;
        color:#0f172a;
        word-break:break-word;
    }

    .ad_status_grid{
        display:grid;
        grid-template-columns:repeat(auto-fit, minmax(210px, 1fr));
        gap:16px;
    }

    .ad_status_box{
        padding:18px;
        border-radius:22px;
        background:#fff;
        border:1px solid #e2e8f0;
        box-shadow:0 12px 26px rgba(15,23,42,.04);
    }

    .ad_status_box span{
        display:block;
        font-size:12px;
        font-weight:700;
        color:#64748b;
        margin-bottom:8px;
        text-transform:uppercase;
        letter-spacing:.05em;
    }

    .ad_status_box strong{
        display:block;
        font-size:24px;
        font-weight:800;
        color:#0f172a;
        line-height:1.2;
    }

    .ad_status_box small{
        display:block;
        margin-top:6px;
        color:#64748b;
        font-size:12px;
        line-height:1.6;
    }

    @media (max-width: 1199.98px){
        .ad_dashboard_grid{
            grid-template-columns:1fr;
        }
    }

    @media (max-width: 991.98px){
        .ad_stats_grid,
        .ad_status_grid,
        .ad_actions_grid{
            grid-template-columns:1fr;
        }

        .ad_dashboard_welcome{
            padding:24px;
        }

        .ad_dashboard_welcome h2{
            font-size:24px;
        }
    }
</style>
<?php $__env->stopPush(); ?>

<?php $__env->startSection('ad_content'); ?>
<div class="ad_dashboard_shell">
    <section class="ad_dashboard_welcome">
        <span class="ad_dashboard_orb orb_1"></span>
        <span class="ad_dashboard_orb orb_2"></span>

        <div class="ad_dashboard_welcome_inner">
            <div>
                <h2>Welcome back to your website dashboard</h2>
                <p>Manage homepage content, common settings, and website information from one clean admin area. Review the latest content totals, jump into key actions, and keep your website updated with confidence.</p>
            </div>

            <div class="ad_dashboard_badge">
                <i class="fa-solid fa-sparkles"></i>
                <span>Admin Control Center</span>
            </div>
        </div>
    </section>

    <section class="ad_stats_grid">
        <div class="ad_stat_box">
            <div class="ad_stat_box_inner">
                <div class="ad_stat_box_top">
                    <div class="ad_stat_box_icon">
                        <i class="fa-solid fa-sliders"></i>
                    </div>
                    <div class="ad_stat_box_chip">
                        <i class="fa-solid fa-gear"></i>
                        <span>Active</span>
                    </div>
                </div>

                <p class="ad_stat_box_label">Common Settings</p>
                <h3 class="ad_stat_box_value"><?php echo e($settingsCount); ?></h3>
                <p class="ad_stat_box_text">Global website settings including branding, contact information, and main shared values across the site.</p>
            </div>
        </div>

        <div class="ad_stat_box">
            <div class="ad_stat_box_inner">
                <div class="ad_stat_box_top">
                    <div class="ad_stat_box_icon">
                        <i class="fa-solid fa-layer-group"></i>
                    </div>
                    <div class="ad_stat_box_chip">
                        <i class="fa-solid fa-house"></i>
                        <span>Homepage</span>
                    </div>
                </div>

                <p class="ad_stat_box_label">Home Sections</p>
                <h3 class="ad_stat_box_value"><?php echo e($homeSectionsCount); ?></h3>
                <p class="ad_stat_box_text">Saved homepage sections that control the visible content blocks, structured text, and bilingual section data.</p>
            </div>
        </div>

        <div class="ad_stat_box">
            <div class="ad_stat_box_inner">
                <div class="ad_stat_box_top">
                    <div class="ad_stat_box_icon">
                        <i class="fa-solid fa-magnifying-glass-chart"></i>
                    </div>
                    <div class="ad_stat_box_chip">
                        <i class="fa-solid fa-chart-line"></i>
                        <span>SEO</span>
                    </div>
                </div>

                <p class="ad_stat_box_label">SEO Pages</p>
                <h3 class="ad_stat_box_value"><?php echo e($seoPagesCount); ?></h3>
                <p class="ad_stat_box_text">Search-focused content records prepared for better indexing, metadata control, and structured website visibility.</p>
            </div>
        </div>
    </section>

    <section class="ad_dashboard_grid">
        <div class="ad_panel_box">
            <div class="ad_panel_head">
                <div>
                    <h3>Quick Actions</h3>
                    <p>Open the most important admin sections and continue working on your website content without extra steps.</p>
                </div>
            </div>

            <div class="ad_panel_body">
                <div class="ad_actions_grid">
                    <a href="<?php echo e(route('admin.settings.edit')); ?>" class="ad_action_card">
                        <div class="ad_action_icon">
                            <i class="fa-solid fa-gear"></i>
                        </div>
                        <div class="ad_action_content">
                            <h4>Edit Settings</h4>
                            <p>Update logo, website details, phone, email, and other common global information.</p>
                            <span class="ad_action_link">
                                <span>Open Settings</span>
                                <i class="fa-solid fa-arrow-right"></i>
                            </span>
                        </div>
                    </a>

                    <a href="<?php echo e(route('admin.pages.index.edit')); ?>" class="ad_action_card">
                        <div class="ad_action_icon">
                            <i class="fa-solid fa-house-chimney-window"></i>
                        </div>
                        <div class="ad_action_content">
                            <h4>Manage Home</h4>
                            <p>Edit homepage sections like hero, about, FAQs, testimonials, contact, and other main content.</p>
                            <span class="ad_action_link">
                                <span>Open Home</span>
                                <i class="fa-solid fa-arrow-right"></i>
                            </span>
                        </div>
                    </a>

                    <?php if(Route::has('admin.blogs.index')): ?>
                        <a href="<?php echo e(route('admin.blogs.index')); ?>" class="ad_action_card">
                            <div class="ad_action_icon">
                                <i class="fa-solid fa-blog"></i>
                            </div>
                            <div class="ad_action_content">
                                <h4>Manage Blogs</h4>
                                <p>Review and maintain blog content, article listings, and connected content records.</p>
                                <span class="ad_action_link">
                                    <span>Open Blogs</span>
                                    <i class="fa-solid fa-arrow-right"></i>
                                </span>
                            </div>
                        </a>
                    <?php endif; ?>

                    <?php if(Route::has('admin.inquiries.index')): ?>
                        <a href="<?php echo e(route('admin.inquiries.index')); ?>" class="ad_action_card">
                            <div class="ad_action_icon">
                                <i class="fa-solid fa-envelope-open-text"></i>
                            </div>
                            <div class="ad_action_content">
                                <h4>View Inquiries</h4>
                                <p>Access inquiry submissions and keep track of contact form activity from the website.</p>
                                <span class="ad_action_link">
                                    <span>Open Inquiries</span>
                                    <i class="fa-solid fa-arrow-right"></i>
                                </span>
                            </div>
                        </a>
                    <?php endif; ?>
                </div>
            </div>
        </div>

        <div class="ad_panel_box">
            <div class="ad_panel_head">
                <div>
                    <h3>Current Website</h3>
                    <p>Quick view of the main website identity and currently configured public contact information.</p>
                </div>
            </div>

            <div class="ad_panel_body">
                <div class="ad_site_card">
                    <div class="ad_site_primary">
                        <h4><?php echo e($siteSettings->website_name ?? 'Website'); ?></h4>
                        <p><?php echo e($siteSettings->website_tagline ?? 'No website tagline available yet.'); ?></p>
                    </div>

                    <div class="ad_site_info_list">
                        <div class="ad_site_info_item">
                            <div class="ad_site_info_icon">
                                <i class="fa-solid fa-envelope"></i>
                            </div>
                            <div>
                                <strong>Email</strong>
                                <span><?php echo e($siteSettings->email ?: 'Not added yet'); ?></span>
                            </div>
                        </div>

                        <div class="ad_site_info_item">
                            <div class="ad_site_info_icon">
                                <i class="fa-solid fa-phone"></i>
                            </div>
                            <div>
                                <strong>Phone</strong>
                                <span><?php echo e($siteSettings->phone_display ?: ($siteSettings->phone ?: 'Not added yet')); ?></span>
                            </div>
                        </div>

                        <div class="ad_site_info_item">
                            <div class="ad_site_info_icon">
                                <i class="fa-regular fa-clock"></i>
                            </div>
                            <div>
                                <strong>Opening Time</strong>
                                <span><?php echo e($siteSettings->opening_time ?: 'Not added yet'); ?></span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <section class="ad_status_grid">
        <div class="ad_status_box">
            <span>Settings Records</span>
            <strong><?php echo e($settingsCount); ?></strong>
            <small>Total common website setting entries available in the admin panel.</small>
        </div>

        <div class="ad_status_box">
            <span>Homepage Records</span>
            <strong><?php echo e($homeSectionsCount); ?></strong>
            <small>Total homepage content blocks currently saved in the database.</small>
        </div>

        <div class="ad_status_box">
            <span>SEO Records</span>
            <strong><?php echo e($seoPagesCount); ?></strong>
            <small>Total SEO content entries prepared for metadata and search visibility.</small>
        </div>

        <div class="ad_status_box">
            <span>Total Enquiries</span>
            <strong><?php echo e($enquiriesCount); ?></strong>
            <small>Total contact enquiry submissions received from the website.</small>
        </div>

        <div class="ad_status_box">
            <span>Callback Requests</span>
            <strong><?php echo e($callbackRequestsCount); ?></strong>
            <small>Total callback requests submitted by visitors.</small>
        </div>
    </section>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.ad_master', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/onesourceerp/public_html/project/resources/views/admin/ad_dashboard.blade.php ENDPATH**/ ?>