Просмотр файла resources/views/admin/antimat/index.blade.php

Размер файла: 2Kb
  1. @extends('layout')
  2.  
  3. @section('title', __('index.antimat'))
  4.  
  5. @section('breadcrumb')
  6. <nav>
  7. <ol class="breadcrumb">
  8. <li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
  9. <li class="breadcrumb-item"><a href="/admin">{{ __('index.panel') }}</a></li>
  10. <li class="breadcrumb-item active">{{ __('index.antimat') }}</li>
  11. </ol>
  12. </nav>
  13. @stop
  14.  
  15. @section('content')
  16. {!! __('admin.antimat.text') !!}<br>
  17.  
  18. @if ($words->isNotEmpty())
  19. <div class="card mb-3">
  20. <h5 class="card-header">
  21. {{ __('admin.antimat.words') }}
  22. </h5>
  23.  
  24. <div class="card-body">
  25. @foreach ($words as $data)
  26. <a href="/admin/antimat/delete?id={{ $data->id }}&amp;token={{ $_SESSION['token'] }}">{{ $data->string }}</a>{{ $loop->last ? '' : ', ' }}
  27. @endforeach
  28. </div>
  29.  
  30. <div class="card-footer">
  31. {{ __('admin.antimat.total_words') }}: <b>{{ $words->count() }}</b>
  32.  
  33. @if (isAdmin('boss'))
  34. <span class="float-right">
  35. <i class="fa fa-trash-alt"></i> <a href="/admin/antimat/clear?token={{ $_SESSION['token'] }}" onclick="return confirm('{{ __('admin.antimat.confirm_clear') }}')">{{ __('main.clear') }}</a>
  36. </span>
  37. @endif
  38. </div>
  39. </div>
  40. @else
  41. {!! showError(__('admin.antimat.empty_words')) !!}
  42. @endif
  43.  
  44. <form method="post">
  45. @csrf
  46. <div class="input-group">
  47. <div class="input-group-prepend">
  48. <span class="input-group-text"><i class="fa fa-pencil-alt"></i></span>
  49. </div>
  50.  
  51. <input type="text" class="form-control" name="word" placeholder="{{ __('admin.antimat.enter_word') }}" required>
  52.  
  53. <div class="input-group-append">
  54. <button class="btn btn-primary">{{ __('main.add') }}</button>
  55. </div>
  56. </div>
  57. </form>
  58. @stop