@extends('admin.layouts.app') @section('title', 'Roles') @section('content') @include('admin.includes.alerts')
@if(\Illuminate\Support\Facades\Auth::user()->role == 1) Create Role @endif @if($roles->count() >= 1) @foreach($roles as $i => $role) @endforeach @else @endif
SN Name Guard Created By Status Action
{{$i+1}} {{$role->name}} {{$role->guard_name}} {{$role->user->name ?? '' }} @if($role->status == "Active") Active @elseif($role->status == "Inactive") Inactive @elseif($role->status == "Disabled") Disabled @endif {!! Form::open(array( 'style' => 'display: inline-block;', 'method' => 'POST', 'route' => ['Edit Role', $role->id])) !!} {!! Form::submit('Edit', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-info ')) !!} {!! Form::close() !!} {!! Form::open(array( 'style' => 'display: inline-block;', 'method' => 'POST', 'onsubmit' => "return confirm('".trans("You are about to delete this permanent. Are sure you want to Delete")."');", 'route' => ['Delete Role', $role->id])) !!} {!! Form::submit('Delete', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-danger')) !!} {!! Form::close() !!}
No data found No name found No guard found
@endsection