Файл: resources/views/admin/stickers/category.blade.php
Строк: 52
<?php
@extends('layout')
@section('title', $category->name)
@section('header')
<div class="float-end">
<a class="btn btn-success" href="/admin/stickers/sticker/create?cid={{ $category->id ?? 0 }}">{{ __('stickers.upload') }}</a>
</div>
<h1>{{ $category->name }}</h1>
@stop
@section('breadcrumb')
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
<li class="breadcrumb-item"><a href="{{ route('admin.index') }}">{{ __('index.panel') }}</a></li>
<li class="breadcrumb-item"><a href="/admin/stickers">{{ __('index.stickers') }}</a></li>
<li class="breadcrumb-item active">{{ $category->name }}</li>
</ol>
</nav>
@stop
@section('content')
@if ($stickers->isNotEmpty())
@foreach ($stickers as $sticker)
<div class="section mb-3 shadow">
<div class="section-title">
<img src="{{ $sticker->name }}" alt="">
{{ $sticker->code }}
<div class="float-end">
<a href="/admin/stickers/sticker/edit/{{ $sticker->id }}?page={{ $stickers->currentPage() }}" data-bs-toggle="tooltip" title="{{ __('main.edit') }}"><i class="fa fa-pencil-alt"></i></a>
<form action="/admin/stickers/sticker/delete/{{ $sticker->id }}" method="post" class="d-inline" onsubmit="return confirm('{{ __('stickers.confirm_delete_sticker') }}')">
@csrf
@method('DELETE')
<input type="hidden" name="page" value="{{ $stickers->currentPage() }}">
<button class="btn btn-link p-0" data-bs-toggle="tooltip" title="{{ __('main.delete') }}"><i class="fa fa-times"></i></button>
</form>
</div>
</div>
</div>
@endforeach
{{ $stickers->links() }}
<div class="mb-3">
{{ __('stickers.total_stickers') }}: <b>{{ $stickers->total() }}</b>
</div>
@else
{{ showError(__('stickers.empty_stickers')) }}
@endif
@stop
?>