@php $isExport = $isExport ?? false; $isAjax = $isAjax ?? false; $isYajra = $isYajra ?? false; $isAjaxYajra = $isAjaxYajra ?? false; @endphp @if ($roleCount > 1) @endif @if ($_is_login_must_verified) @endif {{-- wajib --}} @if (($canUpdate || $canDelete || ($canForceLogin && $item->id != auth()->id())) && $isExport === false) @endif @foreach ($data as $item) @if ($roleCount > 1) @endif @if ($_is_login_must_verified) @endif {{-- wajib --}} @if (($canUpdate || $canDelete || ($canForceLogin && $item->id != auth()->id())) && $isExport === false) @endif @endforeach
# {{ __('Nama') }} {{ __('No HP') }} {{ __('Tanggal Lahir') }} {{ __('Alamat') }} {{ __('Email') }}{{ __('Role') }}{{ __('Status') }} {{ __('Alasan Diblokir') }} {{ __('Terakhir Masuk') }}{{ __('Waktu Verifikasi') }}{{ __('Deleted At') }}{{ __('Created At') }} {{ __('Updated At') }} {{ __('Created By') }} {{ __('Last Updated By') }}{{ __('Aksi') }}
{{ $loop->iteration }} {{ $item->name }} {{ $item->phone_number }} {{ $item->birth_date }} {{ $item->address }} {{ $item->email }} @foreach ($item->roles as $role) @if (auth_user()->can('Role Ubah')) {{ $role->name }} @else {{ $role->name }} @endif @endforeach {{ $item->deleted_at !== null ? 'Dihapus' : ($item->is_active == 1 ? 'Aktif' : 'Tidak Aktif') }} {{ $item->blocked_reason }} {{ $item->last_login ?? '-' }}{{ $item->email_verified_at ?? '-' }}{{ $item->deleted_at ?? '-' }}{{ $item->created_at ?? '-' }} {{ $item->updated_at ?? '-' }} {{ $item->createdBy->name ?? '-' }} {{ $item->lastUpdatedBy->name ?? '-' }} @if ($canUpdate && $item->deleted_at === null) @include('stisla.includes.forms.buttons.btn-edit', ['link' => route($routePrefix . '.edit', [$item->id])]) @endif @if ($canDelete && $item->deleted_at === null) @include('stisla.includes.forms.buttons.btn-delete', ['link' => route($routePrefix . '.destroy', [$item->id])]) @endif @if ($canBlock && $item->deleted_at === null) @if ($item->is_active == 1) @include('stisla.includes.forms.buttons.btn-warning', [ 'link' => route($routePrefix . '.block', [$item->id]), 'icon' => 'fa fa-ban', 'title' => 'Blokir Pengguna', 'onclick' => 'blockUser(event, \'' . route('user-management.users.block', [$item->id]) . '\')', ]) @else @include('stisla.includes.forms.buttons.btn-success', [ 'link' => route($routePrefix . '.unblock', [$item->id]), 'icon' => 'fa fa-check', 'title' => 'Buka Blokir Pengguna', 'onclick' => 'unblockUser(event, \'' . route('user-management.users.unblock', [$item->id]) . '\')', 'size' => 'sm', ]) @endif @endif @if ($canDetail) @include('stisla.includes.forms.buttons.btn-detail', ['link' => route($routePrefix . '.show', [$item->id])]) @endif @if ($canForceLogin && $item->id != auth()->id()) @include('stisla.includes.forms.buttons.btn-success', [ 'link' => route($routePrefix . '.force-login', [$item->id]), 'icon' => 'fa fa-door-open', 'title' => 'Force Login', 'size' => 'sm', ]) @endif