File: /home/marketing.cfbon.ru/public_html/resources/views/promotions/show-mobile.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">
@foreach($data['promotions'] as $promotion)
<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 {{ $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="card shadow-sm border-0">
<div class="position-relative">
<img src="{{ $promotion->img_url }}"
alt="Баннер"
class="card-img-top" style="aspect-ratio: 1 / 1; object-fit: cover;">
</div>
</div>
</div>
@endforeach
</div>
</div>
</div>