<div class="table-responsive">
    <table class="table" id="roles-table">
        <thead>
            <tr>
                <th>Id</th>
        <th>Name</th>
        <th>Description</th>
                <th colspan="3">Action</th>
            </tr>
        </thead>
        <tbody>
        @foreach($roles as $roles)
            <tr>
                <td>{{ $roles->id }}</td>
            <td>{{ $roles->name }}</td>
            <td>{{ $roles->description }}</td>
                <td>
                    @if($roles->id != 1)
                    {!! Form::open(['route' => ['roles.destroy', $roles->id], 'method' => 'delete']) !!}
                    <div class='btn-group'>
                       
                        <a href="{{ route('roles.edit', [$roles->id]) }}" class='btn btn-warning pr-2'><i
                                class="fa fa-edit"></i></a>
                        {!! Form::button('<i class="fa fa-trash-o"></i>', ['type' => 'submit', 'class' => 'btn btn-danger', 'onclick' => "return confirm('Are you sure?')"]) !!}
                    </div>
                    {!! Form::close() !!}
                    @endif
                </td>
            </tr>
        @endforeach
        </tbody>
    </table>
</div>
