@php $canAction = $canUpdate || $canDelete; @endphp @if ($canAction && $isExport === false) @endif @foreach ($data as $item) @if ($canAction && $isExport === false) @endif @endforeach
# {{ __('Role') }} {{ __('Total Permission') }} {{ __('Created At') }} {{ __('Updated At') }} {{ __('Created By') }} {{ __('Last Updated By') }}{{ __('Aksi') }}
{{ $loop->iteration }} {{ $item->name }} {{ $item->permissions_count }} {{ $item->created_at }} {{ $item->updated_at }} {{ $item->createdBy->name ?? '-' }} {{ $item->lastUpdatedBy->name ?? '-' }} @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