HEX
Server: LiteSpeed
System: Linux sv4.hami.host 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User: armgroup (1008)
PHP: 8.2.32
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, mail, socket_create, socket_create_listen, socket_create_pair, link, dl, openlog, syslog, stream_socket_server, curl_multi_init
Upload Files
File: /home/armgroup/libs/storage/framework/views/9ca98a1bcc457a49c2cdace6754ad285979bb069.php
<?php $__env->startSection('header'); ?>
    <link rel="stylesheet" href="<?php echo e(asset('css/compare.css?v=0.0.3')); ?>"/>
@endsectio
<?php $__env->startSection('content'); ?>
    <div class="container-fluid my-5 body-content">
        <div class="card p-5">
            <div class="row">
                <div class="col-12 p-0">
                    <h2 class="text-center">
                        <span>مقایسه</span>
                    </h2>
                </div>
            </div>
            <hr>
            <div class="row">
                <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="col-3">
                        <div class="card">
                            <form class="w-25 mx-auto" action="<?php echo e(route('compare.destroy', $product->id)); ?>" method="POST">
                                <?php echo csrf_field(); ?>
                                <?php echo method_field('DELETE'); ?>
                                <button class="btn btn-sm btn-danger w-100" type="submit"><span class="fa fa-times"></span> حذف</button>
                            </form>
                            <a href="<?php echo e(route('products.show', $product->slug)); ?>">
                                <img class="card-img-top" src="<?php echo e(asset($product->image)); ?>" alt="<?php echo e($product->name); ?>">
                            </a>
                            <div class="card-body">
                                <h5 class="card-title">
                                    <a href="<?php echo e(route('products.show', $product->slug)); ?>" class="text-info">
                                        <?php echo e($product->name); ?>

                                    </a>
                                </h5>
                                <p class="card-text">
                                <table class="table">
                                    <tr>
                                        <th>برند</th>
                                        <td><?php echo e($product->brand->name ?: '-'); ?></td>
                                    </tr>
                                    <?php $__currentLoopData = $category->attributeGroups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attributeGroup): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <th colspan="2" class="text-secondary text-center"><?php echo e($attributeGroup->name); ?></th>
                                        </tr>
                                        <?php $__currentLoopData = $attributeGroup->attributes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attribute): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <tr>
                                                <th><?php echo e($attribute->name); ?></th>
                                                <td><?php echo e($product->values->firstWhere('attribute_id', $attribute->id)?->value ?: '-'); ?></td>
                                            </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </table>
                                </p>
                            </div>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/armgroup/libs/resources/views/frontend/compare/index.blade.php ENDPATH**/ ?>