@extends('admin.layouts.app') @section('title', 'Groups') @section('content') @include('admin.includes.alerts')
@if(\Illuminate\Support\Facades\Auth::user()->role == 1) Create Group @endif @if($groups->count() >= 1) @foreach($groups as $i => $group) @endforeach @else @endif
SN Name Guard Created By Status Action
{{$i+1}} {{$group->name}} {{$group->description}} {{$group->user->name }} @if($group->status == "Active") Active @elseif($group->status == "Inactive") Inactive @elseif($group->status == "Disabled") Disabled @endif {!! Form::open(array( 'style' => 'display: inline-block;', 'method' => 'POST', 'route' => ['Edit Group', $group->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 Group', $group->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 description found
@endsection