<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
    <!-- Page Header with Glass Effect -->
    <div class="mb-12">
        <div class="flex flex-col md:flex-row justify-between items-start md:items-center gap-6 mb-8">
            <div class="relative">
                <div class="absolute -left-3 -top-3 w-20 h-20 bg-gradient-to-br from-violet-500/10 to-indigo-600/10 rounded-full blur-xl"></div>
                <h1 class="text-4xl font-black tracking-tight dark:text-white relative z-10 mb-2">
                    <span class="bg-gradient-to-r from-violet-600 to-indigo-600 bg-clip-text text-transparent">
                        DASHBOARD
                    </span>
                </h1>
                <p class="text-slate-500 dark:text-slate-400 text-sm pl-1">
                    <i data-lucide="calendar" class="w-4 h-4 inline mr-2"></i>
                    Monitoring data akademik & keuangan tahun
                    <span class="font-bold text-violet-600 dark:text-violet-400 ml-1"><?php echo e($selectedYear); ?></span>
                </p>
            </div>

            <div class="flex items-center gap-4">
                <form action="<?php echo e(route('dashboard')); ?>" method="GET" class="relative group">
                    <div class="absolute -inset-1 bg-gradient-to-r from-violet-600 to-indigo-600 rounded-2xl blur opacity-25 group-hover:opacity-40 transition duration-500"></div>
                    <select name="year" onchange="this.form.submit()"
                            class="relative bg-white dark:bg-gray-800 border border-slate-200 dark:border-gray-700 rounded-2xl text-sm font-bold px-6 py-3 dark:text-white focus:ring-2 focus:ring-violet-500 transition-all shadow-lg appearance-none cursor-pointer min-w-[180px]">
                        <?php $__currentLoopData = $availableYears; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $year): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($year); ?>" <?php echo e($selectedYear == $year ? 'selected' : ''); ?>>
                                <i data-lucide="calendar" class="w-4 h-4 inline mr-2"></i>
                                Periode <?php echo e($year); ?>

                            </option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                    <i data-lucide="chevron-down" class="absolute right-4 top-1/2 transform -translate-y-1/2 w-4 h-4 text-slate-400 pointer-events-none"></i>
                </form>
                <button onclick="window.print()"
                        class="px-4 py-3 bg-white dark:bg-gray-800 border border-slate-200 dark:border-gray-700 rounded-2xl text-sm font-bold text-slate-600 dark:text-slate-300 hover:bg-slate-50 dark:hover:bg-gray-700 transition-all flex items-center gap-2 shadow-sm">
                    <i data-lucide="printer" class="w-4 h-4"></i>
                    <span class="hidden sm:inline">Print</span>
                </button>
            </div>
        </div>

        <!-- Stats Grid with Enhanced Cards -->
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-10">
            <!-- Revenue Card -->
            <div class="group relative">
                <div class="absolute -inset-1 bg-gradient-to-br from-violet-600 to-indigo-700 rounded-[32px] blur opacity-30 group-hover:opacity-50 transition duration-500"></div>
                <div class="relative bg-gradient-to-br from-violet-600 to-indigo-700 p-8 rounded-[32px] text-white shadow-2xl shadow-violet-500/30 overflow-hidden">
                    <div class="absolute top-0 right-0 w-32 h-32 bg-white/10 rounded-full -translate-y-16 translate-x-16"></div>
                    <div class="absolute bottom-0 left-0 w-24 h-24 bg-white/5 rounded-full translate-y-12 -translate-x-12"></div>

                    <div class="relative z-10">
                        <div class="flex items-center justify-between mb-6">
                            <div>
                                <p class="text-xs font-bold uppercase tracking-widest opacity-80 mb-2 flex items-center gap-2">
                                    <i data-lucide="dollar-sign" class="w-4 h-4"></i>
                                    Total Revenue
                                </p>
                                <h3 class="text-3xl font-black">Rp <?php echo e(number_format($totalBayar, 0, ',', '.')); ?></h3>
                            </div>
                            <div class="w-12 h-12 rounded-2xl bg-white/10 backdrop-blur-sm flex items-center justify-center">
                                <i data-lucide="trending-up" class="w-6 h-6"></i>
                            </div>
                        </div>
                        <div class="flex items-center gap-2 text-sm opacity-80">
                            <i data-lucide="calendar" class="w-4 h-4"></i>
                            <span>Tahun <?php echo e($selectedYear); ?></span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Students Card -->
            <div class="group relative">
                <div class="absolute -inset-1 bg-gradient-to-br from-cyan-400 to-blue-500 rounded-[32px] blur opacity-30 group-hover:opacity-50 transition duration-500"></div>
                <div class="relative bg-gradient-to-br from-cyan-400 to-blue-500 p-8 rounded-[32px] text-white shadow-2xl shadow-cyan-500/30 overflow-hidden">
                    <div class="absolute top-0 right-0 w-32 h-32 bg-white/10 rounded-full -translate-y-16 translate-x-16"></div>
                    <div class="absolute bottom-0 left-0 w-24 h-24 bg-white/5 rounded-full translate-y-12 -translate-x-12"></div>

                    <div class="relative z-10">
                        <div class="flex items-center justify-between mb-6">
                            <div>
                                <p class="text-xs font-bold uppercase tracking-widest opacity-80 mb-2 flex items-center gap-2">
                                    <i data-lucide="users" class="w-4 h-4"></i>
                                    Total Mahasiswa
                                </p>
                                <h3 class="text-3xl font-black"><?php echo e(number_format($mahasiswa, 0, ',', '.')); ?></h3>
                            </div>
                            <div class="w-12 h-12 rounded-2xl bg-white/10 backdrop-blur-sm flex items-center justify-center">
                                <i data-lucide="user-plus" class="w-6 h-6"></i>
                            </div>
                        </div>
                        <div class="flex items-center gap-2 text-sm opacity-80">
                            <i data-lucide="building" class="w-4 h-4"></i>
                            <span><?php echo e($kampus); ?> Kampus</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Campus Card -->
            <div class="group relative">
                <div class="absolute -inset-1 bg-gradient-to-br from-amber-500/20 to-amber-600/10 rounded-[32px] blur opacity-0 group-hover:opacity-30 transition duration-500"></div>
                <div class="relative bg-white dark:bg-[#1a1a2e] p-8 rounded-[32px] border border-slate-200 dark:border-white/5 shadow-lg hover:shadow-xl transition-all duration-300 overflow-hidden">
                    <div class="absolute top-0 right-0 w-24 h-24 bg-amber-500/5 rounded-full -translate-y-12 translate-x-12"></div>

                    <div class="relative z-10 flex items-center gap-6">
                        <div class="w-16 h-16 bg-gradient-to-br from-amber-500/20 to-amber-600/10 text-amber-500 rounded-2xl flex items-center justify-center group-hover:scale-110 transition-transform duration-300 shadow-lg">
                            <i data-lucide="school" class="w-8 h-8"></i>
                        </div>
                        <div>
                            <p class="text-[10px] font-bold text-slate-400 uppercase tracking-widest mb-2">Kampus</p>
                            <h4 class="text-2xl font-black dark:text-white"><?php echo e($kampus); ?></h4>
                            <p class="text-xs text-slate-500 dark:text-slate-400 mt-1">Total kampus aktif</p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Prodi Card -->
            <div class="group relative">
                <div class="absolute -inset-1 bg-gradient-to-br from-emerald-500/20 to-emerald-600/10 rounded-[32px] blur opacity-0 group-hover:opacity-30 transition duration-500"></div>
                <div class="relative bg-white dark:bg-[#1a1a2e] p-8 rounded-[32px] border border-slate-200 dark:border-white/5 shadow-lg hover:shadow-xl transition-all duration-300 overflow-hidden">
                    <div class="absolute top-0 right-0 w-24 h-24 bg-emerald-500/5 rounded-full -translate-y-12 translate-x-12"></div>

                    <div class="relative z-10 flex items-center gap-6">
                        <div class="w-16 h-16 bg-gradient-to-br from-emerald-500/20 to-emerald-600/10 text-emerald-500 rounded-2xl flex items-center justify-center group-hover:scale-110 transition-transform duration-300 shadow-lg">
                            <i data-lucide="book-open" class="w-8 h-8"></i>
                        </div>
                        <div>
                            <p class="text-[10px] font-bold text-slate-400 uppercase tracking-widest mb-2">Program Studi</p>
                            
                            <p class="text-xs text-slate-500 dark:text-slate-400 mt-1">Total prodi aktif</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Quick Stats Bar -->
        <div class="mt-8 grid grid-cols-1 md:grid-cols-3 gap-6">
            <div class="bg-gradient-to-r from-white/50 to-white/30 dark:from-[#1a1a2e]/50 dark:to-[#1a1a2e]/30 p-6 rounded-3xl border border-slate-200 dark:border-white/5 backdrop-blur-sm">
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-sm text-slate-500 dark:text-slate-400 mb-2">Rata-rata per Mahasiswa</p>
                        <p class="text-2xl font-black text-slate-900 dark:text-white">
                            Rp <?php echo e($mahasiswa > 0 ? number_format($totalBayar / $mahasiswa, 0, ',', '.') : 0); ?>

                        </p>
                    </div>
                    <div class="w-12 h-12 rounded-2xl bg-emerald-500/10 text-emerald-500 flex items-center justify-center">
                        <i data-lucide="credit-card" class="w-6 h-6"></i>
                    </div>
                </div>
            </div>

            <div class="bg-gradient-to-r from-white/50 to-white/30 dark:from-[#1a1a2e]/50 dark:to-[#1a1a2e]/30 p-6 rounded-3xl border border-slate-200 dark:border-white/5 backdrop-blur-sm">
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-sm text-slate-500 dark:text-slate-400 mb-2">Tunggakan Pembayaran</p>
                        <p class="text-2xl font-black text-slate-900 dark:text-white">
                            <?php echo e($validationSummary['pembayaran']['total'] - $validationSummary['pembayaran']['validated']); ?>

                        </p>
                    </div>
                    <div class="w-12 h-12 rounded-2xl bg-amber-500/10 text-amber-500 flex items-center justify-center">
                        <i data-lucide="alert-triangle" class="w-6 h-6"></i>
                    </div>
                </div>
            </div>

            <div class="bg-gradient-to-r from-white/50 to-white/30 dark:from-[#1a1a2e]/50 dark:to-[#1a1a2e]/30 p-6 rounded-3xl border border-slate-200 dark:border-white/5 backdrop-blur-sm">
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-sm text-slate-500 dark:text-slate-400 mb-2">Completion Rate</p>
                        <p class="text-2xl font-black text-slate-900 dark:text-white">
                            <?php echo e(round($overallPercentage ?? 0)); ?>%
                        </p>
                    </div>
                    <div class="w-12 h-12 rounded-2xl bg-blue-500/10 text-blue-500 flex items-center justify-center">
                        <i data-lucide="target" class="w-6 h-6"></i>
                    </div>
                </div>
            </div>
        </div>
    </div>

        <!-- Charts Section with Enhanced Design -->
        <div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
            <!-- Monthly Cash Flow Chart -->
            <div class="lg:col-span-2 group relative">
                <div class="absolute -inset-1 bg-gradient-to-r from-violet-600/10 to-cyan-500/10 rounded-[40px] blur opacity-0 group-hover:opacity-30 transition duration-500"></div>
                <div class="relative bg-white dark:bg-[#1a1a2e] p-8 rounded-[40px] border border-slate-200 dark:border-white/5 shadow-xl">
                    <!-- Chart Header -->
                    <div class="flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4 mb-8 pb-6 border-b border-slate-100 dark:border-white/5">
                        <div>
                            <h3 class="font-black text-sm uppercase tracking-widest dark:text-white flex items-center gap-3">
                                <span class="w-8 h-8 rounded-lg bg-gradient-to-r from-violet-500/10 to-violet-600/10 text-violet-500 flex items-center justify-center">
                                    <i data-lucide="trending-up" class="w-4 h-4"></i>
                                </span>
                                Alur Kas Bulanan
                            </h3>
                            <p class="text-slate-500 text-sm mt-1">Analisis revenue dan validasi bulanan <?php echo e($selectedYear); ?></p>
                        </div>
                        <div class="flex gap-3">
                            <span class="flex items-center gap-2 px-4 py-2 bg-violet-500/10 text-violet-600 dark:text-violet-400 rounded-xl text-xs font-bold">
                                <span class="w-2 h-2 rounded-full bg-violet-500 animate-pulse"></span>
                                REVENUE
                            </span>
                            <span class="flex items-center gap-2 px-4 py-2 bg-cyan-500/10 text-cyan-600 dark:text-cyan-400 rounded-xl text-xs font-bold">
                                <span class="w-2 h-2 rounded-full bg-cyan-500 animate-pulse"></span>
                                VALIDASI
                            </span>
                        </div>
                    </div>

                    <!-- Chart -->
                    <div id="waveChart" class="mt-4"></div>

                    <!-- Chart Stats -->
                    <div class="mt-8 pt-6 border-t border-slate-100 dark:border-white/5">
                        <div class="grid grid-cols-2 md:grid-cols-4 gap-4">
                            <div class="text-center p-4 bg-slate-50 dark:bg-white/5 rounded-2xl">
                                <p class="text-xs text-slate-500 dark:text-slate-400 mb-2">Revenue Tertinggi</p>
                                <p class="font-black text-slate-900 dark:text-white">
                                    Rp <?php echo e(number_format(max($monthlyStats['revenue']), 0, ',', '.')); ?>

                                </p>
                            </div>
                            <div class="text-center p-4 bg-slate-50 dark:bg-white/5 rounded-2xl">
                                <p class="text-xs text-slate-500 dark:text-slate-400 mb-2">Validasi Tertinggi</p>
                                <p class="font-black text-slate-900 dark:text-white">
                                    <?php echo e(max($monthlyStats['validation'])); ?>

                                </p>
                            </div>
                            <div class="text-center p-4 bg-slate-50 dark:bg-white/5 rounded-2xl">
                                <p class="text-xs text-slate-500 dark:text-slate-400 mb-2">Rata-rata Revenue</p>
                                <p class="font-black text-slate-900 dark:text-white">
                                    Rp <?php echo e(number_format(array_sum($monthlyStats['revenue']) / count($monthlyStats['revenue']), 0, ',', '.')); ?>

                                </p>
                            </div>
                            <div class="text-center p-4 bg-slate-50 dark:bg-white/5 rounded-2xl">
                                <p class="text-xs text-slate-500 dark:text-slate-400 mb-2">Total Tahun Ini</p>
                                <p class="font-black text-slate-900 dark:text-white">
                                    Rp <?php echo e(number_format(array_sum($monthlyStats['revenue']), 0, ',', '.')); ?>

                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Validation Summary -->
            <div class="group relative">
                <div class="absolute -inset-1 bg-gradient-to-r from-violet-600/10 to-cyan-500/10 rounded-[40px] blur opacity-0 group-hover:opacity-30 transition duration-500"></div>
                <div class="relative bg-white dark:bg-[#1a1a2e] p-8 rounded-[40px] border border-slate-200 dark:border-white/5 shadow-xl">
                    <!-- Chart Header -->
                    <div class="text-center mb-8 pb-6 border-b border-slate-100 dark:border-white/5">
                        <div class="w-12 h-12 rounded-xl bg-gradient-to-r from-violet-500/10 to-cyan-500/10 text-violet-500 flex items-center justify-center mx-auto mb-4">
                            <i data-lucide="pie-chart" class="w-6 h-6"></i>
                        </div>
                        <h3 class="font-black text-sm uppercase tracking-widest mb-2 dark:text-white">Validasi Summary</h3>
                        <p class="text-slate-500 text-sm">Progress validasi tahun <?php echo e($selectedYear); ?></p>
                    </div>

                    <!-- Donut Chart -->
                    <div id="donutChart"></div>

                    <!-- Validation Progress Bars -->
                    <div class="mt-8 space-y-6">
                        <!-- Rencana Progress -->
                        <div class="space-y-3">
                            <div class="flex justify-between items-center">
                                <div class="flex items-center gap-2">
                                    <div class="w-3 h-3 rounded-full bg-violet-500"></div>
                                    <span class="text-xs font-bold text-slate-400 uppercase">Rencana</span>
                                </div>
                                <span class="font-black dark:text-white">
                                    <?php echo e($validationSummary['rencana']['validated']); ?> / <?php echo e($validationSummary['rencana']['total']); ?>

                                </span>
                            </div>
                            <div class="h-3 bg-slate-100 dark:bg-white/5 rounded-full overflow-hidden">
                                <div class="h-full bg-gradient-to-r from-violet-500 to-violet-600 rounded-full transition-all duration-1000"
                                     style="width: <?php echo e(($validationSummary['rencana']['validated'] / max($validationSummary['rencana']['total'], 1)) * 100); ?>%"></div>
                            </div>
                            <div class="text-right">
                                <span class="text-xs font-bold text-violet-600 dark:text-violet-400">
                                    <?php echo e(round(($validationSummary['rencana']['validated'] / max($validationSummary['rencana']['total'], 1)) * 100)); ?>%
                                </span>
                            </div>
                        </div>

                        <!-- Pembayaran Progress -->
                        <div class="space-y-3">
                            <div class="flex justify-between items-center">
                                <div class="flex items-center gap-2">
                                    <div class="w-3 h-3 rounded-full bg-cyan-500"></div>
                                    <span class="text-xs font-bold text-slate-400 uppercase">Pembayaran</span>
                                </div>
                                <span class="font-black dark:text-white">
                                    <?php echo e($validationSummary['pembayaran']['validated']); ?> / <?php echo e($validationSummary['pembayaran']['total']); ?>

                                </span>
                            </div>
                            <div class="h-3 bg-slate-100 dark:bg-white/5 rounded-full overflow-hidden">
                                <div class="h-full bg-gradient-to-r from-cyan-500 to-blue-500 rounded-full transition-all duration-1000"
                                     style="width: <?php echo e(($validationSummary['pembayaran']['validated'] / max($validationSummary['pembayaran']['total'], 1)) * 100); ?>%"></div>
                            </div>
                            <div class="text-right">
                                <span class="text-xs font-bold text-cyan-600 dark:text-cyan-400">
                                    <?php echo e(round(($validationSummary['pembayaran']['validated'] / max($validationSummary['pembayaran']['total'], 1)) * 100)); ?>%
                                </span>
                            </div>
                        </div>
                    </div>

                    <!-- Overall Progress -->
                    <div class="mt-8 pt-6 border-t border-slate-100 dark:border-white/5">
                        <div class="text-center">
                            <?php
                                $totalValidated = $validationSummary['rencana']['validated'] + $validationSummary['pembayaran']['validated'];
                                $totalItems = $validationSummary['rencana']['total'] + $validationSummary['pembayaran']['total'];
                                $overallPercentage = $totalItems > 0 ? ($totalValidated / $totalItems) * 100 : 0;
                            ?>
                            <p class="text-xs font-bold text-slate-400 uppercase mb-3">Status Keseluruhan</p>
                            <div class="text-4xl font-black bg-gradient-to-r from-violet-600 to-cyan-500 bg-clip-text text-transparent mb-3">
                                <?php echo e(round($overallPercentage)); ?>%
                            </div>
                            <div class="h-3 bg-slate-100 dark:bg-white/5 rounded-full overflow-hidden mx-auto max-w-xs">
                                <div class="h-full bg-gradient-to-r from-violet-500 via-violet-400 to-cyan-500 rounded-full transition-all duration-1000"
                                     style="width: <?php echo e($overallPercentage); ?>%"></div>
                            </div>
                            <p class="text-xs text-slate-500 mt-2">
                                <?php echo e($totalValidated); ?> dari <?php echo e($totalItems); ?> telah divalidasi
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>



    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const getChartTheme = () => document.documentElement.classList.contains('dark') ? 'dark' : 'light';

            // Initialize Lucide icons
            lucide.createIcons();

            // Enhanced Wave Chart
            const waveOptions = {
                series: [
                    {
                        name: 'Revenue',
                        data: <?php echo json_encode($monthlyStats['revenue'], 15, 512) ?>,
                        color: '#8b5cf6'
                    },
                    {
                        name: 'Validasi',
                        data: <?php echo json_encode($monthlyStats['validation'], 15, 512) ?>,
                        color: '#06b6d4'
                    }
                ],
                chart: {
                    type: 'area',
                    height: 320,
                    toolbar: {
                        show: true,
                        tools: {
                            download: '<i data-lucide="download" class="w-4 h-4"></i>',
                            selection: false,
                            zoom: '<i data-lucide="zoom-in" class="w-4 h-4"></i>',
                            zoomin: false,
                            zoomout: false,
                            pan: false,
                            reset: '<i data-lucide="refresh-ccw" class="w-4 h-4"></i>'
                        }
                    },
                    fontFamily: 'inherit',
                    background: 'transparent',
                    animations: {
                        enabled: true,
                        easing: 'easeinout',
                        speed: 800
                    }
                },
                colors: ['#8b5cf6', '#06b6d4'],
                stroke: {
                    curve: 'smooth',
                    width: 3,
                    lineCap: 'round'
                },
                fill: {
                    type: 'gradient',
                    gradient: {
                        shadeIntensity: 1,
                        opacityFrom: 0.6,
                        opacityTo: 0.1,
                        stops: [0, 90, 100]
                    }
                },
                dataLabels: {
                    enabled: false
                },
                theme: {
                    mode: getChartTheme()
                },
                xaxis: {
                    categories: ['Jan','Feb','Mar','Apr','Mei','Jun','Jul','Agu','Sep','Okt','Nov','Des'],
                    axisBorder: {
                        show: false
                    },
                    axisTicks: {
                        show: false
                    },
                    labels: {
                        style: {
                            colors: '#94a3b8',
                            fontSize: '12px',
                            fontFamily: 'inherit',
                            fontWeight: 600
                        }
                    }
                },
                yaxis: {
                    labels: {
                        style: {
                            colors: '#94a3b8',
                            fontSize: '12px',
                            fontFamily: 'inherit',
                            fontWeight: 600
                        },
                        formatter: function(value) {
                            if (this.seriesIndex === 0) {
                                return 'Rp ' + new Intl.NumberFormat('id-ID').format(value);
                            }
                            return value;
                        }
                    }
                },
                grid: {
                    borderColor: 'rgba(148, 163, 184, 0.1)',
                    strokeDashArray: 4,
                    padding: {
                        top: 0,
                        right: 0,
                        bottom: 0,
                        left: 0
                    }
                },
                tooltip: {
                    theme: getChartTheme(),
                    style: {
                        fontSize: '12px',
                        fontFamily: 'inherit'
                    },
                    y: {
                        formatter: function(value, { seriesIndex }) {
                            if (seriesIndex === 0) {
                                return 'Rp ' + new Intl.NumberFormat('id-ID').format(value);
                            }
                            return value;
                        }
                    }
                },
                legend: {
                    show: false
                },
                markers: {
                    size: 6,
                    strokeColors: '#ffffff',
                    strokeWidth: 2,
                    hover: {
                        size: 8
                    }
                }
            };

            // Enhanced Donut Chart
            const donutOptions = {
                series: [<?php echo e($validationSummary['rencana']['validated']); ?>, <?php echo e($validationSummary['pembayaran']['validated']); ?>],
                chart: {
                    type: 'donut',
                    height: 280,
                    fontFamily: 'inherit',
                    background: 'transparent',
                    animations: {
                        enabled: true,
                        speed: 800,
                        animateGradually: {
                            enabled: true,
                            delay: 150
                        }
                    }
                },
                labels: ['Rencana', 'Pembayaran'],
                colors: ['#8b5cf6', '#06b6d4'],
                theme: {
                    mode: getChartTheme()
                },
                stroke: {
                    show: true,
                    width: 0
                },
                plotOptions: {
                    pie: {
                        donut: {
                            size: '70%',
                            labels: {
                                show: true,
                                name: {
                                    show: true,
                                    fontSize: '14px',
                                    fontFamily: 'inherit',
                                    fontWeight: 600,
                                    color: '#94a3b8'
                                },
                                value: {
                                    show: true,
                                    fontSize: '24px',
                                    fontFamily: 'inherit',
                                    fontWeight: 700,
                                    color: undefined,
                                    formatter: function(val) {
                                        return val;
                                    }
                                },
                                total: {
                                    show: true,
                                    showAlways: true,
                                    label: 'Total Validasi',
                                    fontSize: '14px',
                                    fontFamily: 'inherit',
                                    fontWeight: 600,
                                    color: '#94a3b8',
                                    formatter: function(w) {
                                        return w.globals.seriesTotals.reduce((a, b) => a + b, 0);
                                    }
                                }
                            }
                        }
                    }
                },
                dataLabels: {
                    enabled: false
                },
                legend: {
                    show: false
                },
                tooltip: {
                    theme: getChartTheme(),
                    style: {
                        fontSize: '12px',
                        fontFamily: 'inherit'
                    },
                    y: {
                        formatter: function(val) {
                            return val + ' item';
                        }
                    }
                }
            };

            // Initialize charts
            const waveChart = new ApexCharts(document.querySelector("#waveChart"), waveOptions);
            const donutChart = new ApexCharts(document.querySelector("#donutChart"), donutOptions);

            waveChart.render();
            donutChart.render();

            // Theme change handler
            window.addEventListener('theme-changed', (e) => {
                const theme = e.detail.theme;

                waveChart.updateOptions({
                    theme: { mode: theme },
                    tooltip: { theme: theme }
                });

                donutChart.updateOptions({
                    theme: { mode: theme },
                    tooltip: { theme: theme }
                });

                // Update Lucide icons
                setTimeout(() => lucide.createIcons(), 100);
            });

            // Add hover animations to cards
            const cards = document.querySelectorAll('.group');
            cards.forEach(card => {
                card.addEventListener('mouseenter', function() {
                    const glow = this.querySelector('.absolute.-inset-1');
                    if (glow) {
                        glow.style.opacity = '0.3';
                    }
                });

                card.addEventListener('mouseleave', function() {
                    const glow = this.querySelector('.absolute.-inset-1');
                    if (glow) {
                        glow.style.opacity = '0';
                    }
                });
            });

            // Animate progress bars on scroll
            const observerOptions = {
                threshold: 0.5,
                rootMargin: '0px 0px -50px 0px'
            };

            const observer = new IntersectionObserver((entries) => {
                entries.forEach(entry => {
                    if (entry.isIntersecting) {
                        const progressBars = entry.target.querySelectorAll('.h-full.bg-gradient-to-r');
                        progressBars.forEach(bar => {
                            const width = bar.style.width;
                            bar.style.width = '0%';
                            setTimeout(() => {
                                bar.style.width = width;
                            }, 300);
                        });
                    }
                });
            }, observerOptions);

            // Observe progress bars
            document.querySelectorAll('.group.relative').forEach(el => {
                observer.observe(el);
            });
        });
    </script>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php /**PATH C:\Users\User\Documents\K2-PROJECTS\k2-sipema\resources\views/dashboard.blade.php ENDPATH**/ ?>