@extends('layouts.dash')
@section('title') Utilisateur @stop

@section('content')
    <div class="card card-success">
        <div class="card-header">
            <h2>Nouvel utilisateur</h2>
        </div>
        <div class='card-body'>
            @if ($errors)
                @foreach ($errors->all() as $error)
                    <div class='bg-danger alert'>{!! $error !!}</div>
                @endforeach
            @endif
            {{ html()->form('POST', url('users'))->open() }}
                @include("acces.users.content")
            {{ html()->closeModelForm() }}
        </div>
    </div>
@stop

@section('scripts')
    <script>
        $(function() {
            $('.select2').select2();
        })
    </script>
@stop
