<?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([]); ?>
     <?php $__env->slot('header', null, []); ?> 
        <div class="py-4">
            <h2 class="font-black text-4xl text-white tracking-tight">
                <?php echo e(__('Available')); ?> <span class="accent-text">Campaigns</span>
            </h2>
            <p class="text-gray-400 font-bold mt-2 uppercase tracking-widest text-[10px]">Browse and join growth
                opportunities</p>
        </div>
     <?php $__env->endSlot(); ?>

    <div class="py-12">
        <div class="max-w-7xl mx-auto px-6">
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <?php $__empty_1 = true; $__currentLoopData = $campaigns; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $campaign): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <div
                        class="glass-card rounded-[2.5rem] p-8 hover-glow transition-all group border-l-4 border-[#D4AF37]">
                        <div class="flex justify-between items-start mb-6">
                            <h3
                                class="text-xl font-black text-white tracking-tight group-hover:text-[#D4AF37] transition-colors line-clamp-1">
                                <?php echo e($campaign->title); ?></h3>
                            <span
                                class="bg-[#D4AF37]/10 text-[#D4AF37] text-[9px] font-black uppercase tracking-widest px-3 py-1 rounded-full border border-[#D4AF37]/20 shadow-lg shadow-[#D4AF37]/5">Active</span>
                        </div>
                        <p class="text-sm text-gray-400 font-medium leading-relaxed line-clamp-3 mb-8 h-15">
                            <?php echo e($campaign->description); ?></p>

                        <div class="flex justify-between items-center mb-10 pt-6 border-t border-white/5">
                            <div>
                                <p class="text-[9px] font-black text-gray-500 uppercase tracking-widest mb-1">Rate per join
                                </p>
                                <p class="text-xl font-black text-white tabular-nums">
                                    ₦<?php echo e(number_format($campaign->rate_per_member, 2)); ?></p>
                            </div>
                            <div class="text-right">
                                <p class="text-[9px] font-black text-gray-500 uppercase tracking-widest mb-1">Brand</p>
                                <p class="text-xs font-black text-[#D4AF37] tracking-tight"><?php echo e($campaign->brand->name); ?></p>
                            </div>
                        </div>

                        <div class="flex gap-4">
                            <a href="<?php echo e(route('campaigns.show', $campaign)); ?>"
                                class="flex-1 text-center py-3 bg-white/5 text-white rounded-full hover:bg-white/10 transition text-[10px] font-black uppercase tracking-widest border border-white/10 group-hover:border-white/20">Details</a>
                            <?php if($campaign->promoters()->where('promoter_id', auth()->id())->exists()): ?>
                                <a href="<?php echo e(route('campaigns.show', $campaign)); ?>#submit-proof"
                                    class="v2-gradient flex-1 text-center py-3 text-white rounded-full hover:scale-105 transition shadow-lg gold-glow text-[10px] font-black uppercase tracking-widest">Submit
                                    Proof</a>
                            <?php else: ?>
                                <a href="<?php echo e(route('campaigns.join', $campaign)); ?>"
                                    class="v2-gradient flex-1 text-center py-3 text-white rounded-full hover:scale-105 transition shadow-lg gold-glow text-[10px] font-black uppercase tracking-widest">Join
                                    Now</a>
                            <?php endif; ?>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <div
                        class="col-span-full glass-card p-24 text-center rounded-[3rem] border-dashed border-2 border-white/5">
                        <div class="w-20 h-20 bg-white/5 rounded-full flex items-center justify-center mx-auto mb-6">
                            <span class="text-4xl opacity-50">🔭</span>
                        </div>
                        <h3 class="text-xl font-black text-white tracking-tight mb-2">No Campaigns Found</h3>
                        <p class="text-gray-500 font-medium tracking-wide">Check back later for new growth opportunities!
                        </p>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    </div>
 <?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\HP\Desktop\AWON SCRIPT\market\resources\views/campaigns/browse.blade.php ENDPATH**/ ?>