| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- @extends('layouts.app')
- @section('content')
- <div class="row mb-2">
- <div class="col-md-6">
- <h3>Рекламации</h3>
- </div>
- <div class="col-md-6 text-end">
- @if(hasRole('admin'))
- <button type="button" class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#exportReclamationsModal">Экспорт</button>
- @endif
- </div>
- </div>
- @if(hasRole('admin'))
- <div class="modal fade" id="exportReclamationsModal" tabindex="-1" aria-labelledby="exportReclamationsModalLabel" aria-hidden="true">
- <div class="modal-dialog modal-fullscreen-sm-down modal-lg">
- <div class="modal-content">
- <div class="modal-header">
- <h1 class="modal-title fs-5" id="exportReclamationsModalLabel">Экспорт рекламаций</h1>
- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Закрыть"></button>
- </div>
- <div class="modal-body">
- <form method="post" action="{{ route('reclamations.export') }}">
- @csrf
- @include('partials.checkbox', ['title' => 'С учётом текущего фильтра и поиска', 'name' => 'withFilter', 'type' => 'checkbox', 'value' => 'yes', 'checked' => false])
- <div class="d-none">
- @if(request()->s)
- @include('partials.input', ['name' => 's', 'title' => 'поиск', 'value' => request()->s])
- @endif
- @if(request()->filters)
- @foreach(request()->filters as $filterName => $filterValue)
- @include('partials.input', ['name' => 'filters[' . $filterName .']', 'title' => $filterName, 'value' => $filterValue])
- @endforeach
- @endif
- </div>
- @include('partials.submit', ['name' => 'Экспорт'])
- </form>
- </div>
- </div>
- </div>
- </div>
- @endif
- @include('partials.table', [
- 'id' => $id,
- 'header' => $header,
- 'strings' => $reclamations,
- 'routeName' => 'reclamations.show',
- 'routeParam' => 'reclamation',
- ])
- @include('partials.pagination', ['items' => $reclamations])
- @endsection
|