<?php $__env->startSection('title', 'Search'); ?>

<?php $__env->startSection('content'); ?>
    <div class="container pt-3">
        <?php if(!$products->isEmpty()): ?>
            <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="row mb-3 bg-gray-light pt-2 pb-2">
                    <div class="col-2">
                        <img src="<?php echo e(asset('items/' . $product->main_image)); ?>" width="100px" />
                    </div>
                    <div class="col-4">
                        <span><?php echo e($product->name); ?></span> <br>
                        <span>Found In: <?php echo e($product->found_in); ?></span> <br>
                        <span class="text-muted font-size-sm">Date Found: <?php echo e(date('d-M-Y', strtotime($product->created_at))); ?></span>
                    </div>
                    <div class="col-4">
                        <span>Sleeve length: <?php echo e($product->sleeve_length); ?></span> <br>
                        <span>Chest: <?php echo e($product->chest); ?></span> <br>
                        <span>Thigh: <?php echo e($product->thigh); ?></span> <br>
                        <span>Waist: <?php echo e($product->waist); ?></span> <br>
                        <span>Trouser length: <?php echo e($product->trouser_length); ?></span>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php else: ?>
            <div class="alert alert-warning">
                <h4 class="text-center"><span class="fa fa-box-open"></span> No Results</h4>
            </div>
        <?php endif; ?>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('home.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/air/Documents/laravel/fashion/resources/views/home/search.blade.php ENDPATH**/ ?>