HEX
Server: LiteSpeed
System: Linux php-prod-3.spaceapp.ru 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: sarli3128 (1010)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //home/marketing.cfbon.ru/public_html/storage/framework/views/12440962dd7ea5dbec7c0c249e4422ac.php
<div class="card shadow-sm border-0 mb-4">
    <div class="d-flex justify-content-between align-items-center px-4 py-2">
        <h3 class="mb-0 ms-4"><?php echo e($data['type']->label()); ?></h3>
        <a href="<?php echo e(route('promotions.create', ['type' => $data['type']->value])); ?>" class="btn btn-danger btn-lg me-4">
            <i class="bi bi-plus-circle"></i> Добавить
        </a>
    </div>
    <div class="container mt-3 ms-2 mb-3">
        <div class="row">
            <div class="stock-container" style="margin-top: 38px;">
                <?php $__currentLoopData = $data['promotions']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $promotion): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="stock">
                        <div class="d-flex align-items-center justify-content-between" style="margin-top: -38px;">
                            <span class="badge <?php echo e($promotion->is_active ? 'bg-danger' : 'bg-secondary'); ?> py-2 px-3 d-flex align-items-center fw-bold">
                            <?php echo e($promotion->is_active ? 'Активна' : 'Не активна'); ?>

                            </span>
                            <div class="d-flex gap-1">
                                <a href="<?php echo e(route('promotions.edit', $promotion->id)); ?>" class="btn btn-sm btn-outline-danger d-flex align-items-center justify-content-center"
                                   style="width: 36px; height: 36px;">
                                    <i class="bi bi-pencil"></i>
                                </a>
                                <form action="<?php echo e(route('promotions.destroy', $promotion->id)); ?>" method="POST" class="d-inline">
                                    <?php echo csrf_field(); ?>
                                    <?php echo method_field('DELETE'); ?>
                                    <button type="submit"
                                            class="btn btn-sm btn-outline-secondary d-flex align-items-center justify-content-center"
                                            style="width: 36px; height: 36px;"
                                            onclick="return confirm('Вы уверены?')">
                                        <i class="bi bi-trash"></i>
                                    </button>
                                </form>
                            </div>
                        </div>
                        <div class="stock__wrapper">
                            <div class="stock__top">
                                <p class="stock__title"><?php echo $promotion->title; ?></p>
                                <p class="stock__text"><?php echo $promotion->description; ?></p>
                            </div>
                            <img src="<?php echo e($promotion->img_url); ?>" alt="img" />
                        </div>
                    </div>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </div>
    </div>
</div>
<?php /**PATH /home/marketing.cfbon.ru/public_html/resources/views/promotions/show-site.blade.php ENDPATH**/ ?>