@extends('layouts.dashboard')

@section('title', 'usuarios')

@section('container-dashboard')
     <div class="layout-page">
          <!-- Navbar -->
            @include('layouts._includes.nav-menu')
          <!-- / Navbar -->
          
         <!-- Content wrapper -->
          <div class="content-wrapper">
            <!-- Content -->
            <div class="container-xxl flex-grow-1 container-p-y">
                <button type="button" class="btn mb-2 btn-primary" data-bs-toggle="modal" data-bs-target="#modal_usuario"> Adicionar usuários</button>
                @include('dashboard.admin.pages.usuarios._includes.tabela-usuarios')

                <div class="d-flex justify-content-center">
                    {{ $usuarios->appends(['search' => request('search')])->links() }}
                </div>

                <div class="content-backdrop fade"></div>
          </div>
          <!-- Content wrapper -->
        </div>
  <form action="{{route('usuarios.store')}}" method="POST" enctype="multipart/form-data">
    @csrf
    @include('dashboard.admin.pages.usuarios._includes.modal-add-usuario')
  </form>
  
@endsection        

