<!-- Modal for edit -->
<div class="modal fade" id="edit{{$user->id}}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">Set user role</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            
            
                <form action="{{route('admemup', $user->name)}}" method="POST">
                        @csrf
                        @method('PUT')
                    <div class="modal-body">                        
                        <div class="form-group">
                            <label for="type">Assign role to {{ $user->name }}?</label>
                            <select name="type" class="custom-select">
                              <option selected="">Select</option>
                              
                                <option value="Admin" {{ $user->type === 'Admin' ? ' selected' : '' }}>Yes</option>
                                <option value {{ $user->type ? '' : 'selected' }}>No</option>
                              
                            </select>
                        </div>
                        
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                        <button type="submit" class="btn btn-primary">Save changes</button>
                    </div>                              
                    
                </form>
            
            
        </div>
    </div>
</div>