@extends('layouts.app')
@section('content')
    <div class="card card-primary">
        <div class="panel panel-black">
            <div class="panel-heading">
                <a href="{{route('storeAdmins')}}" class="btn btn-raised btn-primary">Roles</a>
                <hr/>
                <h3 class="text-center">ASSIGN ROLES</h3>
            </div>

            <div class="panel-body">
                @include('includes.flash')
                <form class="form-horizontal" id="assignForm" method="post" enctype="multipart/form-data"
                      action="{{ route('assignRole') }}">
                    {!! csrf_field() !!}

                    <div class="form-group required">
                        <label class="col-sm-2 control-label" for="roleUserId">User</label>
                        <div class="col-sm-10">
                            <select name="roleUserId" id="roleUserId" onselect=""
                                    onchange="" class="form-control">
                                <option value="-1">
                                    Select User
                                </option>

                                @foreach ($users as $user)
                                    <option value="{!! $user->id !!}">
                                        {!! $user->name!!}
                                    </option>
                                @endforeach
                            </select>
                        </div>
                    </div>
                    <div class="role_details" id="role_details">
                        @include('roles.roleLoad');
                    </div>
                </form>
            </div>

        </div>
    </div>
@endsection

