ROLES AND PERMISSION @include('helper.tablehelper.tableheader', [ 'name' => 'S.NO', 'type' => 'normal', 'sortname' => '', ]) @include('helper.tablehelper.tableheader', [ 'name' => 'NAME', 'type' => 'sortby', 'sortname' => 'name', ]) @if (array_intersect([30, 31], app('userpermissions'))) @include('helper.tablehelper.tableheader', [ 'name' => 'ACTION', 'type' => 'normal', 'sortname' => '', ]) @endif @foreach ($role as $index => $eachrole) {{ $role->firstItem() + $index }} {{ $eachrole->name }} @if (array_intersect([30, 31], app('userpermissions'))) @if (array_intersect([30], app('userpermissions'))) @include('helper.tablehelper.actionhelper', [ 'show_id' => $eachrole->id, 'type' => 'show', ]) @endif {{-- @if ($index != 0) --}} @if (array_intersect([31], app('userpermissions'))) @include('helper.tablehelper.actionhelper', [ 'edit_id' => $eachrole->id, 'type' => 'edit', ]) @endif {{-- @endif --}} @endif @endforeach Showing {{ $role->firstItem() }} to {{ $role->lastItem() }} out of {{ $role->total() }} items {{ $role->links() }} @include('livewire.admin.user.role.createoredit') @include('livewire.admin.user.role.show')