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

Размер файла: 4.07Kb
  1. @extends('layout')
  2.  
  3. @section('title', __('index.users'))
  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.users') }}</li>
  11. </ol>
  12. </nav>
  13. @stop
  14.  
  15. @section('content')
  16. <div class="section-form mb-3 shadow">
  17. <form action="/admin/users/edit" method="get">
  18. <div class="form-inline">
  19. <div class="form-group{{ hasError('user') }}">
  20. <input type="text" class="form-control" id="user" name="user" maxlength="20" value="{{ getInput('user') }}" placeholder="{{ __('main.user_login') }}" required>
  21. </div>
  22.  
  23. <button class="btn btn-primary">{{ __('main.edit') }}</button>
  24. </div>
  25. <div class="invalid-feedback">{{ textError('user') }}</div>
  26. </form>
  27. </div>
  28.  
  29. <a class="badge badge-pill badge-success" href="/admin/users/search?q=1">0-9</a>
  30. <a class="badge badge-pill badge-success" href="/admin/users/search?q=a">A</a>
  31. <a class="badge badge-pill badge-success" href="/admin/users/search?q=b">B</a>
  32. <a class="badge badge-pill badge-success" href="/admin/users/search?q=c">C</a>
  33. <a class="badge badge-pill badge-success" href="/admin/users/search?q=d">D</a>
  34. <a class="badge badge-pill badge-success" href="/admin/users/search?q=e">E</a>
  35. <a class="badge badge-pill badge-success" href="/admin/users/search?q=f">F</a>
  36. <a class="badge badge-pill badge-success" href="/admin/users/search?q=g">G</a>
  37. <a class="badge badge-pill badge-success" href="/admin/users/search?q=h">H</a>
  38. <a class="badge badge-pill badge-success" href="/admin/users/search?q=i">I</a>
  39. <a class="badge badge-pill badge-success" href="/admin/users/search?q=j">J</a>
  40. <a class="badge badge-pill badge-success" href="/admin/users/search?q=k">K</a>
  41. <a class="badge badge-pill badge-success" href="/admin/users/search?q=l">L</a>
  42. <a class="badge badge-pill badge-success" href="/admin/users/search?q=m">M</a>
  43. <a class="badge badge-pill badge-success" href="/admin/users/search?q=n">N</a>
  44. <a class="badge badge-pill badge-success" href="/admin/users/search?q=o">O</a>
  45. <a class="badge badge-pill badge-success" href="/admin/users/search?q=p">P</a>
  46. <a class="badge badge-pill badge-success" href="/admin/users/search?q=q">Q</a>
  47. <a class="badge badge-pill badge-success" href="/admin/users/search?q=r">R</a>
  48. <a class="badge badge-pill badge-success" href="/admin/users/search?q=s">S</a>
  49. <a class="badge badge-pill badge-success" href="/admin/users/search?q=t">T</a>
  50. <a class="badge badge-pill badge-success" href="/admin/users/search?q=u">U</a>
  51. <a class="badge badge-pill badge-success" href="/admin/users/search?q=v">V</a>
  52. <a class="badge badge-pill badge-success" href="/admin/users/search?q=w">W</a>
  53. <a class="badge badge-pill badge-success" href="/admin/users/search?q=x">X</a>
  54. <a class="badge badge-pill badge-success" href="/admin/users/search?q=y">Y</a>
  55. <a class="badge badge-pill badge-success" href="/admin/users/search?q=z">Z</a>
  56. <br><br>
  57.  
  58. <h3>{{ __('users.last_registered') }}</h3>
  59.  
  60. @if ($users->isNotEmpty())
  61. @foreach ($users as $user)
  62. <div class="section mb-3 shadow">
  63. <div class="user-avatar">
  64. {!! $user->getAvatar() !!}
  65. {!! $user->getOnline() !!}
  66. </div>
  67.  
  68. <div class="section-content">
  69. <b><a href="/admin/users/edit?user={{ $user->login }}">{{ $user->getName() }}</a></b>
  70. ({{ plural($user->point, setting('scorename')) }})<br>
  71.  
  72. {{ __('users.email') }}: {{ $user->email }}<br>
  73. {{ __('users.registered') }}: {{ dateFixed($user->created_at, 'd.m.Y') }}
  74. </div>
  75. </div>
  76. @endforeach
  77.  
  78. {{ $users->links() }}
  79. @else
  80. {!! showError(__('main.empty_users')) !!}
  81. @endif
  82. @stop