@extends('admin.layouts.app') @section('title', 'Permissions') @section('content') @include('admin.includes.alerts')
@if(\Illuminate\Support\Facades\Auth::user()->role == 1) Create Permission @endif @if($permissions->count() >= 1) @foreach($permissions as $i => $permission) @endforeach @else @endif
SN Name Guard Created By Status Action
{{$i+1}} {{$permission->name}} {{$permission->guard_name}} {{$permission->user->name ?? ''}} @if($permission->status == "Active") Active @elseif($permission->status == "Inactive") Inactive @elseif($role->status == "Disabled") Disabled @endif {!! Form::open(array( 'style' => 'display: inline-block;', 'method' => 'POST', 'route' => ['Edit Permission', $permission->id, app()->getLocale()])) !!} {!! 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("Are sure you want to Delete")."');", 'route' => ['Delete Permission', $permission->id, app()->getLocale()])) !!} {!! Form::submit('Delete', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-danger')) !!} {!! Form::close() !!}
No data found No data found No data found No data found
@endsection