@php $canAction = $canUpdate || $canDelete; @endphp
| # | {{ __('Role') }} | {{ __('Total Permission') }} | {{ __('Created At') }} | {{ __('Updated At') }} | {{ __('Created By') }} | {{ __('Last Updated By') }} | @if ($canAction && $isExport === false){{ __('Aksi') }} | @endif
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $item->name }} | {{ $item->permissions_count }} | {{ $item->created_at }} | {{ $item->updated_at }} | {{ $item->createdBy->name ?? '-' }} | {{ $item->lastUpdatedBy->name ?? '-' }} | @if ($canAction && $isExport === false)@if ($canUpdate) {{-- @if ($item->name === 'superadmin') @include('stisla.includes.forms.buttons.btn-detail', ['link' => route($routePrefix . '.edit', [$item->id])]) @else --}} @include('stisla.includes.forms.buttons.btn-edit', ['link' => route($routePrefix . '.edit', [$item->id])]) {{-- @endif --}} @endif @if ($canDelete) @include('stisla.includes.forms.buttons.btn-delete', ['link' => route($routePrefix . '.destroy', [$item->id])]) @endif @if ($canDetail) @include('stisla.includes.forms.buttons.btn-detail', ['link' => route($routePrefix . '.show', [$item->id])]) @endif | @endif