<?php $__env->startSection('title', 'الأسعار'); ?>

<?php $__env->startSection('content'); ?>
<div class="w-full max-w-6xl py-8">
    <h1 class="text-center text-3xl font-extrabold">خطط مدار</h1>
    <p class="mt-2 text-center text-zinc-400">اختر الخطة المناسبة لاحتياجاتك</p>
    <div class="mt-12 grid gap-6 md:grid-cols-3">
        <?php $__currentLoopData = $plans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $entry): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php
                $p = $entry['model'];
                $c = $entry['capabilities'];
            ?>
            <div class="glass-card flex flex-col p-8 <?php echo e($p->slug === 'pro' ? 'ring-2 ring-violet-500/50' : ''); ?>">
                <h2 class="text-xl font-extrabold"><?php echo e($p->name); ?></h2>
                <p class="mt-2 text-3xl font-black text-cyan-400"><?php echo e($p->price > 0 ? number_format($p->price, 0).' د.ع' : 'مجاني'); ?></p>
                <ul class="mt-6 flex-1 space-y-2 text-sm text-zinc-400">
                    <li>رسائل AI يومياً: <?php echo e($p->daily_ai_limit); ?></li>
                    <li>توليد صور: <?php echo e(!empty($c['image_generation']) ? '✓' : '—'); ?></li>
                    <li>تحليل ملفات: <?php echo e(!empty($c['file_intelligence']) ? '✓' : '—'); ?></li>
                    <li>نسخ نصوص طويلة: <?php echo e(!empty($c['copy_long_text']) ? '✓' : '—'); ?></li>
                    <li>Voice AI: <?php echo e(!empty($c['voice_ai']) ? '✓' : '—'); ?></li>
                    <li>مكافآت: ×<?php echo e($c['reward_multiplier'] ?? 1); ?></li>
                </ul>
                <?php if(auth()->guard()->check()): ?>
                    <a href="<?php echo e(route('web.billing')); ?>" class="neon-btn mt-6 w-full text-center">اشترك الآن</a>
                <?php else: ?>
                    <a href="<?php echo e(route('web.register')); ?>" class="neon-btn mt-6 w-full text-center">ابدأ الآن</a>
                <?php endif; ?>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.madar-guest', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\wamp64\www\madar-backend\resources\views\web\pricing.blade.php ENDPATH**/ ?>