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/84440d88641a092ee273b74bbb29ceea.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">
            <?php $__currentLoopData = $data['promotions']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $promotion): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="col-sm-6 col-md-4 col-lg-3 mb-4">
                    <div class="d-flex align-items-center justify-content-between mb-1">
                        <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="card shadow-sm border-0">
                        <div class="position-relative">
                            <img src="<?php echo e($promotion->img_url); ?>"
                                 alt="Баннер"
                                 class="card-img-top" style="aspect-ratio: 1 / 1; object-fit: cover;">
                        </div>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
</div>
<?php /**PATH /home/marketing.cfbon.ru/public_html/resources/views/promotions/show-mobile.blade.php ENDPATH**/ ?>