File: /home/marketing.cfbon.ru/public_html/storage/framework/views/803f8f753673a1a6a1915a184b215a20.php
<?php $__env->startSection('title', 'Галерея фото'); ?>
<?php $__env->startSection('title_button'); ?>
<div class="col-md-1">
<a href="<?php echo e(route('site.photo-gallery.create')); ?>" class="btn btn-danger">Добавить</a>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="position-relative">
<div class="container mt-3 ms-2 mb-3">
<div class="row">
<?php $__currentLoopData = $gallery; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $image): $__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($image->is_active ? 'bg-danger' : 'bg-secondary'); ?> py-2 px-3 d-flex align-items-center fw-bold">
<?php echo e($image->is_active ? 'Активно' : 'Не активно'); ?>
</span>
<div class="d-flex gap-1">
<a href="<?php echo e(route('site.photo-gallery.edit', $image->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('site.photo-gallery.destroy', $image->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($image->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 $__env->stopSection(); ?>
<?php echo $__env->make('layouts.main', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/marketing.cfbon.ru/public_html/resources/views/site/photo-gallery/index.blade.php ENDPATH**/ ?>