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

Размер файла: 3.48Kb
  1. @extends('layout')
  2.  
  3. @section('title', __('index.ignores'))
  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="/menu">{{ __('main.menu') }}</a></li>
  10. <li class="breadcrumb-item active">{{ __('index.ignores') }}</li>
  11. </ol>
  12. </nav>
  13. @stop
  14.  
  15. @section('content')
  16. @if ($ignores->isNotEmpty())
  17. <form action="/ignores/delete?page={{ $ignores->currentPage() }}" method="post">
  18. @csrf
  19. @foreach ($ignores as $ignore)
  20. <div class="section mb-3 shadow">
  21. <div class="user-avatar">
  22. {{ $ignore->ignoring->getAvatar() }}
  23. {{ $ignore->ignoring->getOnline() }}
  24. </div>
  25.  
  26. <div class="section-user d-flex align-items-center">
  27. <div class="flex-grow-1">
  28. {{ $ignore->ignoring->getProfile() }}
  29.  
  30. <small class="section-date text-muted fst-italic">{{ dateFixed($ignore->created_at) }}</small><br>
  31. <small class="fst-italic">{{ $ignore->ignoring->getStatus() }}</small>
  32. </div>
  33.  
  34. <div class="text-end">
  35. <a href="/messages/talk/{{ $ignore->ignoring->login }}" data-bs-toggle="tooltip" title="{{ __('main.write') }}"><i class="fa fa-reply text-muted"></i></a>
  36. <a href="/ignores/note/{{ $ignore->id }}" data-bs-toggle="tooltip" title="{{ __('main.note') }}"><i class="fa fa-sticky-note text-muted"></i></a>
  37. <input type="checkbox" class="form-check-input" name="del[]" value="{{ $ignore->id }}">
  38. </div>
  39. </div>
  40. <div class="section-body border-top">
  41. <div class="section-message">
  42. @if ($ignore->text)
  43. {{ __('main.note') }}: {{ bbCode($ignore->text) }}
  44. @else
  45. {{ __('main.empty_notes') }}
  46. @endif
  47. </div>
  48. </div>
  49. </div>
  50. @endforeach
  51.  
  52. <div class="clearfix mb-3">
  53. <button class="btn btn-sm btn-danger float-end">{{ __('main.delete_selected') }}</button>
  54. </div>
  55. </form>
  56.  
  57. {{ $ignores->links() }}
  58.  
  59. <div class="mb-3">
  60. {{ __('main.total') }}: <b>{{ $ignores->total() }}</b>
  61. </div>
  62. @else
  63. {{ showError(__('ignores.empty_list')) }}
  64. @endif
  65.  
  66. <div class="section-form my-3 shadow">
  67. <form method="post">
  68. @csrf
  69. <div class="input-group{{ hasError('user') }}">
  70. <span class="input-group-text"><i class="fa fa-pencil-alt"></i></span>
  71. <input type="text" class="form-control" id="user" name="user" maxlength="20" value="{{ getInput('user', $login) }}" placeholder="{{ __('main.user_login') }}" required>
  72. <button class="btn btn-primary">{{ __('main.add') }}</button>
  73. </div>
  74. <div class="invalid-feedback">{{ textError('user') }}</div>
  75. </form>
  76. </div>
  77.  
  78. <i class="fa fa-users"></i> <a href="/contacts">{{ __('index.contacts') }}</a><br>
  79. <i class="fa fa-envelope"></i> <a href="/messages">{{ __('index.messages') }}</a><br>
  80. @stop