@extends('admin.base')

@section('content')
<div class="row page-heading">
  <div class="col-md-12 h3">Agregar Usuario - {{$role->description}}</div>
</div>
<br />
<form class="form-horizontal" method="post" action="{{url('', ['p' => 'admin', 'a' => 'do_add_user_role', 'role' => $role->id])}}">
  <div class="form-group">
    <div class="col-md-2">Ususarios</div>
    <div class="col-md-3"><select name="users[]" class="form-control" multiple="multiple">
      @foreach ($users as $user)
        @if ($role->hasUser($user->id))
          @continue
        @endif
      <option value="{{$user->id}}">{{$user->name}}</option>
      @endforeach
    </select></div>
  </div>
  <div class="form-group">
    <div class="col-md-offset-2 col-md-2"><button type="submit" class="form-control">Agregar</button></div>
  </div>
</form>
@endsection
