all.blade.php 800 B

123456789101112131415161718192021222324
  1. @extends('layout')
  2. @section('title') Users @endsection
  3. @section('content')
  4. <div class="new">
  5. <h2>Список пользователей:</h2>
  6. <form method="get" action="/public/users/insert">
  7. <div style="display: flex; gap: 20px">
  8. <button type="submit" name="button" value="new">Добавить пользователя</button>
  9. <input type="text" name="name" value="">
  10. </div>
  11. <div style="padding: 15px; padding-bottom: 0; padding-right: 35px;">
  12. <input type="checkbox" name="admin">
  13. <label>Добавить роль Администратора</label>
  14. </div>
  15. </form>
  16. </div>
  17. <div style="display:flex; flex-direction: column; gap: 20px;"> @each("users.user", $users, "user") </div>
  18. @yield('action-button')
  19. @endsection