@extends('admin.layouts.master') @section('content')

{!! link_to_route('roles.create', trans('quickadmin::admin.roles-index-add_new'), [], ['class' => 'btn btn-success']) !!}

@if($roles->count() > 0)
{{ trans('quickadmin::admin.roles-index-roles_list') }}
@foreach ($roles as $role) @endforeach
{{ trans('quickadmin::admin.roles-index-title') }}  
{{ $role->title }} {!! link_to_route('roles.edit', trans('quickadmin::admin.roles-index-edit'), [$role->id], ['class' => 'btn btn-xs btn-info']) !!} {!! Form::open(['style' => 'display: inline-block;', 'method' => 'DELETE', 'onsubmit' => 'return confirm(\'' . trans('quickadmin::admin.roles-index-are_you_sure') . '\');', 'route' => ['roles.destroy', $role->id]]) !!} {!! Form::submit(trans('quickadmin::admin.roles-index-delete'), ['class' => 'btn btn-xs btn-danger']) !!} {!! Form::close() !!}
@else {{ trans('quickadmin::admin.roles-index-no_entries_found') }} @endif @endsection