@extends('admin.base')

@section('content')
<div class="row page-heading">
  <div class="col-md-12 h3">Agregar Rol - {{$user->name}}</div>
</div>
<br />
<form class="form-horizontal" method="post" action="{{url('', ['p' => 'admin', 'a' => 'do_add_user_role', 'user' => $user->id])}}">
  <div class="form-group">
    <div class="col-md-2">Rol</div>
    <div class="col-md-3"><select name="role[]" class="form-control" multiple="multiple">
      @foreach ($roles as $role)
        @if ($user->hasRole($role->id))
          @continue
        @endif
      <option value="{{$role->id}}">{{$role->description}}</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
