<?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([]); ?>
    

    <div class="py-12">
        <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
            <!-- Hero Section -->            

            <!-- Items Grid -->
            <?php if($featuredItems->count() > 0 || $recentItems->count() > 0): ?>
                <div class="mb-32">
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-16 lg:gap-24">
                        <?php $__currentLoopData = $featuredItems->concat($recentItems); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="group">
                                <a href="<?php echo e(route('items.show', $item)); ?>" class="block">
                                    <div class="aspect-square bg-gray-50 dark:bg-gray-800 mb-8 overflow-hidden transition-colors duration-300">
                                        <?php if($item->primaryPhoto): ?>
                                            <img src="<?php echo e(asset($item->primaryPhoto->url)); ?>" alt="<?php echo e($item->title); ?>" class="w-full h-full object-cover group-hover:opacity-80 transition-opacity duration-500">
                                        <?php else: ?>
                                            <div class="w-full h-full flex items-center justify-center">
                                                <div class="w-8 h-8 border border-gray-300 dark:border-gray-500"></div>
                                            </div>
                                        <?php endif; ?>
                                    </div>
                                    <div class="space-y-6">
                                        <h3 class="text-sm tracking-widest group-hover:opacity-60 transition-opacity leading-relaxed text-black dark:text-gray-100"><?php echo e(strtolower($item->title)); ?></h3>
                                        <?php if($item->price): ?>
                                            <p class="text-xs tracking-widest text-gray-500 dark:text-gray-400">$<?php echo e(number_format($item->price, 0)); ?></p>
                                        <?php else: ?>
                                            <p class="text-xs tracking-widest text-gray-500 dark:text-gray-400">trade</p>
                                        <?php endif; ?>
                                    </div>
                                </a>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
            <?php endif; ?>

            <!-- Empty State -->
            <?php if($recentItems->count() === 0): ?>
                <div class="text-center py-48">
                    <p class="text-xs tracking-widest text-gray-500 dark:text-gray-400 mb-16">empty</p>
                    <?php if(auth()->guard()->check()): ?>
                        <a href="<?php echo e(route('my-items.create')); ?>" class="text-xs tracking-widest hover:opacity-60 transition-opacity text-black dark:text-gray-100">
                            list something
                        </a>
                    <?php else: ?>
                        <a href="<?php echo e(route('register')); ?>" class="text-xs tracking-widest hover:opacity-60 transition-opacity text-black dark:text-gray-100">
                            join
                        </a>
                    <?php endif; ?>
                </div>
            <?php endif; ?>
        </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 /var/www/html/resources/views/marketplace/feed.blade.php ENDPATH**/ ?>