index.blade.php 944 B

12345678910111213141516171819202122232425262728293031323334353637
  1. @extends('layouts.app')
  2. @section('content')
  3. <div class="row mb-3">
  4. <div class="col-6">
  5. <h3>Рекламации</h3>
  6. </div>
  7. <div class="col-6 text-end">
  8. @if(hasRole('admin'))
  9. <a href="#" class="btn btn-sm btn-primary" onclick="$('#export-reclamations').submit()">Экспорт</a>
  10. @endif
  11. </div>
  12. </div>
  13. @if(hasRole('admin'))
  14. <form class="d-none" method="post" action="{{ route('reclamations.export') }}" id="export-reclamations">
  15. @csrf
  16. </form>
  17. @endif
  18. @include('partials.table', [
  19. 'id' => $id,
  20. 'header' => $header,
  21. 'strings' => $reclamations,
  22. 'routeName' => 'reclamations.show',
  23. 'routeParam' => 'reclamation',
  24. ])
  25. @include('partials.pagination', ['items' => $reclamations])
  26. @if($errors->count())
  27. @dump($errors)
  28. @endif
  29. @endsection