

<?php $__env->startSection('title', 'Premium Packages - Inve Security'); ?>
<?php $__env->startSection('description', 'Explore our premium security packages with golden standard excellence. Enterprise-grade protection for businesses of all sizes.'); ?>

<?php $__env->startSection('content'); ?>
    <!-- Premium Packages Hero -->
    <section class="relative py-20 overflow-hidden bg-gradient-to-br from-gold-50 via-white to-gold-50/30 dark:from-gray-950 dark:via-gray-900 dark:to-gold-900/10">
        <!-- Animated Background Elements -->
        <div class="absolute inset-0 overflow-hidden">
            <!-- Gradient Orbs -->
            <div class="absolute top-0 -right-40 w-96 h-96 bg-gold-500/20 rounded-full blur-3xl animate-pulse-gold"></div>
            <div class="absolute bottom-0 -left-40 w-80 h-80 bg-gold-600/20 rounded-full blur-3xl animate-pulse-gold" style="animation-delay: 2s"></div>
            
            <!-- Animated Grid Pattern -->
            <div class="absolute inset-0 opacity-20 dark:opacity-10">
                <div class="absolute inset-0 bg-[linear-gradient(90deg,transparent_95%,rgba(250,204,21,0.1)_100%)] animate-shimmer bg-[length:200%_100%]"></div>
                <div class="absolute inset-0 bg-[linear-gradient(rgba(250,204,21,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(250,204,21,0.03)_1px,transparent_1px)] dark:bg-[linear-gradient(rgba(255,255,255,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.03)_1px,transparent_1px)] bg-[size:40px_40px] [mask-image:radial-gradient(ellipse_80%_50%_at_50%_50%,black,transparent)]"></div>
            </div>
            
            <!-- Floating Particles -->
            <div class="absolute inset-0">
                <div class="absolute top-1/4 left-1/4 w-2 h-2 bg-gold-500 rounded-full animate-float" style="animation-delay: 0s"></div>
                <div class="absolute top-1/3 right-1/3 w-1 h-1 bg-gold-400 rounded-full animate-float" style="animation-delay: 1s"></div>
                <div class="absolute bottom-1/4 left-1/3 w-3 h-3 bg-gold-600 rounded-full animate-float" style="animation-delay: 2s"></div>
            </div>
        </div>

        <div class="relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="text-center mb-12 animate-slide-up">
                <!-- Premium Badge -->
                <div class="inline-flex items-center gap-3 px-6 py-3 bg-gradient-to-r from-gold-500/10 to-gold-300/10 dark:from-gold-500/20 dark:to-gold-300/5 border border-gold-500/30 dark:border-gold-500/40 rounded-full mb-8 backdrop-blur-sm group hover:border-gold-500 transition-all duration-300">
                    <div class="w-2 h-2 bg-gradient-to-r from-gold-500 to-gold-300 rounded-full animate-pulse"></div>
                    <span class="text-sm font-semibold text-gold-600 dark:text-gold-400 group-hover:scale-105 transition-transform">
                        Premium Security Packages
                    </span>
                    <svg class="w-4 h-4 text-gold-500 opacity-0 group-hover:opacity-100 transition-opacity" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
                    </svg>
                </div>

                <!-- Main Heading -->
                <h1 class="text-5xl md:text-7xl font-bold mb-6">
                    <span class="block text-gray-900 dark:text-white"><?php echo e(t('packages_page_title')); ?></span>
                    <span class="block bg-gradient-to-r from-gold-500 via-gold-400 to-gold-500 bg-clip-text text-transparent animate-gradient-x mt-4">
                        Golden Protection
                    </span>
                </h1>
                
                <!-- Subtitle -->
                <p class="text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto leading-relaxed">
                    <?php echo e(t('packages_page_subtitle')); ?>

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

    <!-- Premium Packages Grid -->
    <section class="py-16 bg-gradient-to-b from-transparent via-gold-50/20 to-transparent dark:from-transparent dark:via-gold-900/5 dark:to-transparent -mt-20">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <?php
                $featuredPackage = $packages->firstWhere('is_featured', true);
                $regularPackages = $packages->where('is_featured', false);
            ?>

            <?php if($featuredPackage): ?>
                <!-- Featured Package -->
                <div class="relative mb-12 animate-slide-up">
                    <div class="absolute inset-0 bg-gradient-to-r from-gold-500 via-gold-400 to-gold-500 rounded-3xl blur-xl opacity-20 animate-gradient-x"></div>
                    <div class="relative bg-white/80 dark:bg-gray-800/80 backdrop-blur-xl rounded-3xl p-8 border border-gold-500/30 dark:border-gold-500/40 shadow-2xl">
                        <!-- Featured Badge -->
                        <div class="absolute -top-4 left-1/2 transform -translate-x-1/2">
                            <div class="bg-gradient-to-r from-gold-500 to-gold-600 text-white px-6 py-2 rounded-full font-bold flex items-center gap-2 shadow-lg">
                                <i class="fas fa-crown"></i>
                                <span><?php echo e(t('featured')); ?></span>
                                <i class="fas fa-star text-yellow-200"></i>
                            </div>
                        </div>

                        <div class="grid md:grid-cols-2 gap-8">
                            <!-- Left Content -->
                            <div>
                                <h3 class="text-3xl font-bold text-gray-900 dark:text-white mb-4"><?php echo e($featuredPackage->name); ?></h3>
                                <p class="text-gray-600 dark:text-gray-300 mb-6"><?php echo e($featuredPackage->description); ?></p>
                                
                                <!-- Pricing -->
                                <div class="mb-8 p-6 bg-gradient-to-br from-gold-500/10 to-gold-300/10 rounded-2xl border border-gold-500/20">
                                    <?php if($featuredPackage->has_discount): ?>
                                        <div class="space-y-3">
                                            <div class="text-5xl font-bold text-gold-600 dark:text-gold-400"><?php echo e($featuredPackage->final_price); ?> SR</div>
                                            <div class="flex items-center space-x-4">
                                                <span class="text-2xl text-gray-500 line-through"><?php echo e($featuredPackage->price); ?> SR</span>
                                                <span class="bg-gradient-to-r from-red-500 to-red-600 text-white text-sm px-4 py-2 rounded-full font-bold shadow-lg">
                                                    Save <?php echo e($featuredPackage->discount_percentage); ?>%
                                                </span>
                                            </div>
                                        </div>
                                    <?php else: ?>
                                        <div class="text-5xl font-bold text-gold-600 dark:text-gold-400"><?php echo e($featuredPackage->price); ?> SR</div>
                                    <?php endif; ?>
                                    <?php if($featuredPackage->duration_days): ?>
                                        <p class="text-gold-500 dark:text-gold-400 text-sm mt-3 font-medium"><?php echo e($featuredPackage->duration_days); ?> <?php echo e(t('days_validity')); ?></p>
                                    <?php endif; ?>
                                </div>
                            </div>

                            <!-- Right Content -->
                            <div>
                                <!-- Features List -->
                                <div class="mb-6">
                                    <h4 class="font-semibold text-gray-900 dark:text-white mb-4 text-xl flex items-center gap-2">
                                        <i class="fas fa-check-circle text-gold-500"></i>
                                        <?php echo e(t('whats_included')); ?>

                                    </h4>
                                    <ul class="space-y-3">
                                        <?php if($featuredPackage->features): ?>
                                            <?php $__currentLoopData = $featuredPackage->features; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $feature): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <li class="flex items-center text-gray-700 dark:text-gray-300">
                                                    <div class="w-2 h-2 bg-gold-500 rounded-full mr-3"></div>
                                                    <?php echo e($feature); ?>

                                                </li>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    </ul>
                                </div>

                                <!-- CTA Button -->
                                <a href="/request-services/pre-packages?id=<?php echo e($featuredPackage->id); ?>" 
                                   class="w-full inline-flex items-center justify-center bg-gradient-to-r from-gold-500 to-gold-600 text-white py-4 rounded-xl font-bold hover:shadow-xl hover:shadow-gold-500/30 transition-all duration-300 gap-3 btn-gold">
                                    <span><?php echo e(t('get_started')); ?></span>
                                    <svg class="w-5 h-5 transform group-hover:translate-x-1 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7l5 5m0 0l-5 5m5-5H6"></path>
                                    </svg>
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            <?php endif; ?>

            <!-- Regular Packages Grid -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <?php $__empty_1 = true; $__currentLoopData = $regularPackages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $package): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <div class="bg-white/80 dark:bg-gray-800/80 backdrop-blur-xl rounded-2xl p-6 border border-gray-200 dark:border-gray-700 hover:border-gold-500/30 dark:hover:border-gold-500/40 transition-all duration-300 transform hover:-translate-y-4 animate-slide-up" style="animation-delay: <?php echo e(($index + 1) * 200); ?>ms">
                    <!-- Package Header -->
                    <div class="text-center mb-6">
                        <div class="w-16 h-16 mx-auto mb-4 rounded-2xl bg-gradient-to-br from-gold-500/20 to-gold-300/30 flex items-center justify-center">
                            <?php if($package->is_featured): ?>
                                <i class="fas fa-crown text-2xl text-gold-500"></i>
                            <?php else: ?>
                                <i class="fas fa-shield-alt text-2xl text-gold-500"></i>
                            <?php endif; ?>
                        </div>
                        <h3 class="text-2xl font-bold text-gray-900 dark:text-white mb-2"><?php echo e($package->name); ?></h3>
                        <p class="text-gray-600 dark:text-gray-400"><?php echo e($package->description); ?></p>
                    </div>

                    <!-- Pricing -->
                    <div class="text-center mb-6 p-4 bg-gradient-to-br from-gold-500/10 to-gold-300/10 rounded-xl border border-gold-500/20">
                        <?php if($package->has_discount): ?>
                            <div class="space-y-2">
                                <div class="text-3xl font-bold text-gold-600 dark:text-gold-400"><?php echo e($package->final_price); ?> SR</div>
                                <div class="flex items-center justify-center space-x-2">
                                    <span class="text-lg text-gray-500 line-through"><?php echo e($package->price); ?> SR</span>
                                    <span class="bg-gradient-to-r from-red-500 to-red-600 text-white text-xs px-3 py-1 rounded-full font-bold">
                                        Save <?php echo e($package->discount_percentage); ?>%
                                    </span>
                                </div>
                            </div>
                        <?php else: ?>
                            <div class="text-3xl font-bold text-gold-600 dark:text-gold-400"><?php echo e($package->price); ?> SR</div>
                        <?php endif; ?>
                        <?php if($package->duration_days): ?>
                            <p class="text-gold-500 dark:text-gold-400 text-sm mt-2 font-medium"><?php echo e($package->duration_days); ?> <?php echo e(t('days_validity')); ?></p>
                        <?php endif; ?>
                    </div>

                    <!-- Features List -->
                    <div class="mb-6">
                        <h4 class="font-semibold text-gray-900 dark:text-white mb-4 text-lg"><?php echo e(t('whats_included')); ?></h4>
                        <ul class="space-y-3">
                            <?php if($package->features): ?>
                                <?php $__currentLoopData = array_slice($package->features, 0, 5); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $feature): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <li class="flex items-center text-gray-700 dark:text-gray-300 text-sm">
                                        <svg class="w-5 h-5 text-gold-500 mr-3 flex-shrink-0" fill="currentColor" viewBox="0 0 20 20">
                                            <path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd"></path>
                                        </svg>
                                        <?php echo e($feature); ?>

                                    </li>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php endif; ?>
                        </ul>
                    </div>

                    <!-- Services Included -->
                    <?php if($package->services->count() > 0): ?>
                    <div class="mb-6">
                        <h4 class="font-semibold text-gray-900 dark:text-white mb-3 text-lg"><?php echo e(t('services_included')); ?></h4>
                        <div class="space-y-2">
                            <?php $__currentLoopData = $package->services->take(3); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="flex justify-between items-center bg-gradient-to-r from-gray-50 to-transparent dark:from-gray-700/50 px-3 py-2 rounded-lg">
                                    <span class="text-sm text-gray-700 dark:text-gray-300"><?php echo e($service->name); ?></span>
                                    <span class="bg-gradient-to-r from-gold-500 to-gold-600 text-white text-xs px-2 py-1 rounded-full font-bold">
                                        x<?php echo e($service->pivot->quantity); ?>

                                    </span>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php if($package->services->count() > 3): ?>
                                <div class="text-center">
                                    <span class="text-gold-500 dark:text-gold-400 text-sm font-medium">
                                        +<?php echo e($package->services->count() - 3); ?> more services
                                    </span>
                                </div>
                            <?php endif; ?>
                        </div>
                    </div>
                    <?php endif; ?>

                    <!-- Action Button -->
                    <a href="/request-services/pre-packages?id=<?php echo e($package->id); ?>" 
                       class="w-full block text-center bg-gradient-to-r from-gold-500 to-gold-600 text-white py-3 rounded-xl font-semibold hover:shadow-lg hover:shadow-gold-500/30 transition-all duration-300">
                        <?php echo e(t('get_started')); ?>

                    </a>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <div class="col-span-full text-center py-20 animate-fade-in">
                    <div class="max-w-md mx-auto">
                        <div class="w-32 h-32 mx-auto mb-6 rounded-3xl bg-gradient-to-br from-gold-500/20 to-gold-300/30 flex items-center justify-center">
                            <i class="fas fa-box-open text-5xl text-gold-500/60"></i>
                        </div>
                        <h3 class="text-2xl font-semibold text-gray-900 dark:text-white mb-2">
                            <?php echo e(t('no_packages_title')); ?>

                        </h3>
                        <p class="text-gray-600 dark:text-gray-400 mb-8">
                            <?php echo e(t('no_packages_text')); ?>

                        </p>
                        <a href="/contact" 
                           class="inline-flex items-center justify-center px-6 py-3 bg-gradient-to-r from-gold-500 to-gold-600 text-white font-semibold rounded-xl hover:shadow-lg hover:shadow-gold-500/30 transition-all duration-300 btn-gold">
                            <span>Contact Us</span>
                            <svg class="w-5 h-5 ml-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7l5 5m0 0l-5 5m5-5H6"></path>
                            </svg>
                        </a>
                    </div>
                </div>
                <?php endif; ?>
            </div>
        </div>
    </section>

    <!-- Why Choose Us Section -->
    <section class="py-20 bg-gradient-to-b from-white via-gold-50/30 to-white dark:from-gray-900 dark:via-gold-900/10 dark:to-gray-900">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="text-center mb-16 animate-slide-up">
                <div class="inline-flex items-center gap-2 px-4 py-2 bg-gradient-to-r from-gold-500/10 to-transparent dark:from-gold-500/5 border border-gold-500/20 rounded-full mb-6">
                    <span class="text-sm font-semibold text-gold-600 dark:text-gold-400">Golden Standard</span>
                </div>
                
                <h2 class="text-4xl lg:text-5xl font-bold mb-6 text-gray-900 dark:text-white">
                    Why Choose <span class="bg-gradient-to-r from-gold-500 to-gold-400 bg-clip-text text-transparent">Inve</span> Security
                </h2>
            </div>
            
            <div class="grid grid-cols-1 md:grid-cols-3 gap-12">
                <div class="text-center group animate-fade-in animation-delay-200">
                    <div class="w-24 h-24 mx-auto mb-6 rounded-3xl bg-gradient-to-br from-gold-500/20 to-gold-300/30 flex items-center justify-center group-hover:scale-110 transition-transform duration-300">
                        <i class="fas fa-award text-4xl text-gold-500"></i>
                    </div>
                    <h3 class="text-2xl font-bold text-gray-900 dark:text-white mb-4">
                        <?php echo e(t('quality_title')); ?>

                    </h3>
                    <p class="text-gray-600 dark:text-gray-400 leading-relaxed">
                        <?php echo e(t('quality_desc')); ?>

                    </p>
                </div>
                
                <div class="text-center group animate-fade-in animation-delay-300">
                    <div class="w-24 h-24 mx-auto mb-6 rounded-3xl bg-gradient-to-br from-gold-500/20 to-gold-300/30 flex items-center justify-center group-hover:scale-110 transition-transform duration-300">
                        <i class="fas fa-crown text-4xl text-gold-500"></i>
                    </div>
                    <h3 class="text-2xl font-bold text-gray-900 dark:text-white mb-4">
                        <?php echo e(t('value_title')); ?>

                    </h3>
                    <p class="text-gray-600 dark:text-gray-400 leading-relaxed">
                        <?php echo e(t('value_desc')); ?>

                    </p>
                </div>
                
                <div class="text-center group animate-fade-in animation-delay-400">
                    <div class="w-24 h-24 mx-auto mb-6 rounded-3xl bg-gradient-to-br from-gold-500/20 to-gold-300/30 flex items-center justify-center group-hover:scale-110 transition-transform duration-300">
                        <i class="fas fa-bolt text-4xl text-gold-500"></i>
                    </div>
                    <h3 class="text-2xl font-bold text-gray-900 dark:text-white mb-4">
                        <?php echo e(t('fast_delivery_title')); ?>

                    </h3>
                    <p class="text-gray-600 dark:text-gray-400 leading-relaxed">
                        <?php echo e(t('fast_delivery_desc')); ?>

                    </p>
                </div>
            </div>
            
            <!-- Additional Benefits -->
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8 mt-16">
                <div class="text-center p-6 bg-white/80 dark:bg-gray-800/80 backdrop-blur-sm rounded-2xl border border-gray-100 dark:border-gray-700">
                    <div class="text-4xl font-bold bg-gradient-to-b from-gold-500 to-gold-400 bg-clip-text text-transparent mb-2">24/7</div>
                    <div class="text-lg font-semibold text-gray-800 dark:text-gray-200">Security Support</div>
                </div>
                <div class="text-center p-6 bg-white/80 dark:bg-gray-800/80 backdrop-blur-sm rounded-2xl border border-gray-100 dark:border-gray-700">
                    <div class="text-4xl font-bold bg-gradient-to-b from-gold-500 to-gold-400 bg-clip-text text-transparent mb-2">99.9%</div>
                    <div class="text-lg font-semibold text-gray-800 dark:text-gray-200">Uptime Guarantee</div>
                </div>
                <div class="text-center p-6 bg-white/80 dark:bg-gray-800/80 backdrop-blur-sm rounded-2xl border border-gray-100 dark:border-gray-700">
                    <div class="text-4xl font-bold bg-gradient-to-b from-gold-500 to-gold-400 bg-clip-text text-transparent mb-2">500+</div>
                    <div class="text-lg font-semibold text-gray-800 dark:text-gray-200">Protected Clients</div>
                </div>
            </div>
        </div>
    </section>

    <!-- CTA Section -->
    
<?php $__env->stopSection(); ?>
<?php echo $__env->make('frontend.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\laragon\www\crm_new\resources\views/frontend/packages.blade.php ENDPATH**/ ?>