<?php $__env->startSection('title', 'Writer Packages'); ?>
<?php $__env->startSection('page-title', 'Become a Writer'); ?>
<?php $__env->startSection('content'); ?>
<p class="lead mb-4">Buy a package to start publishing your own blogs. Pay once, content lives forever.</p>
<div class="row g-4">
    <?php $__empty_1 = true; $__currentLoopData = $packages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $package): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
        <div class="col-md-4">
            <div class="package-card <?php echo e($package->is_featured ? 'featured' : ''); ?>">
                <div class="package-name"><?php echo e($package->name); ?></div>
                <div class="package-blogs"><?php echo e($package->blogs_count); ?> <?php echo e($package->blogs_count === 1 ? 'blog' : 'blogs'); ?></div>
                <div class="package-price">$<?php echo e(number_format($package->price, 0)); ?><small>/once</small></div>
                <?php if(!empty($package->features)): ?>
                <ul class="package-features"><?php $__currentLoopData = $package->features; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $f): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><li><?php echo e($f); ?></li><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></ul>
                <?php endif; ?>
                <form action="<?php echo e(route('user.packages.buy', $package)); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                    <button class="btn btn-<?php echo e($package->is_featured ? 'accent' : 'primary'); ?> w-100">Buy & Pay with PayPal</button>
                </form>
            </div>
        </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
        <div class="col-12"><p class="text-muted text-center py-5">No packages available right now.</p></div>
    <?php endif; ?>
</div>
<div class="alert alert-info mt-4 small">
    <strong>Note:</strong> After purchase, an admin will upgrade your account to <em>Reseller</em> status with the corresponding blog quota. You'll then have access to the writing dashboard.
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp82\htdocs\blog\resources\views/user/packages/index.blade.php ENDPATH**/ ?>