File: //home/marketing.cfbon.ru/public_html/resources/views/promotions/show-site.blade.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">{{ $data['type']->label() }}</h3>
<a href="{{ 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;">
@foreach($data['promotions'] as $promotion)
<div class="stock">
<div class="d-flex align-items-center justify-content-between" style="margin-top: -38px;">
<span class="badge {{ $promotion->is_active ? 'bg-danger' : 'bg-secondary' }} py-2 px-3 d-flex align-items-center fw-bold">
{{ $promotion->is_active ? 'Активна' : 'Не активна' }}
</span>
<div class="d-flex gap-1">
<a href="{{ 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="{{ route('promotions.destroy', $promotion->id) }}" method="POST" class="d-inline">
@csrf
@method('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">{!! $promotion->title !!}</p>
<p class="stock__text">{!! $promotion->description !!}</p>
</div>
<img src="{{ $promotion->img_url }}" alt="img" />
</div>
</div>
@endforeach
</div>
</div>
</div>
</div>