@extends('layouts.master') @section('contain')

{{ auth()->user()->user_role == 'sub_admin' ? 'Poll Management' : 'Stock Poll Management' }}

@if ($message = Session::get('success'))

{{ $message }}

@endif @foreach ($roles as $key => $role) @endforeach
No Name Action
{{ ++$i }} {{ $role->name }} Show @can('role-edit') Edit @endcan @can('role-delete') {!! Form::open(['method' => 'DELETE', 'route' => ['roles.destroy', $role->id], 'style' => 'display:inline']) !!} {!! Form::submit('Delete', ['class' => 'btn btn-danger']) !!} {!! Form::close() !!} @endcan
{!! $roles->render() !!}
@endsection