@php $isExport = $isExport ?? false; $isAjax = $isAjax ?? false; $isYajra = $isYajra ?? false; $isAjaxYajra = $isAjaxYajra ?? false; @endphp
| # | {{ __('Nama') }} | {{ __('No HP') }} | {{ __('Tanggal Lahir') }} | {{ __('Alamat') }} | {{ __('Email') }} | @if ($roleCount > 1){{ __('Role') }} | @endif{{ __('Status') }} | {{ __('Alasan Diblokir') }} | {{ __('Terakhir Masuk') }} | @if ($_is_login_must_verified){{ __('Waktu Verifikasi') }} | @endif{{ __('Deleted At') }} | {{-- wajib --}}{{ __('Created At') }} | {{ __('Updated At') }} | {{ __('Created By') }} | {{ __('Last Updated By') }} | @if (($canUpdate || $canDelete || ($canForceLogin && $item->id != auth()->id())) && $isExport === false){{ __('Aksi') }} | @endif
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $item->name }} | {{ $item->phone_number }} | {{ $item->birth_date }} | {{ $item->address }} | {{ $item->email }} | @if ($roleCount > 1)@foreach ($item->roles as $role) @if (auth_user()->can('Role Ubah')) {{ $role->name }} @else {{ $role->name }} @endif @endforeach | @endif{{ $item->deleted_at !== null ? 'Dihapus' : ($item->is_active == 1 ? 'Aktif' : 'Tidak Aktif') }} | {{ $item->blocked_reason }} | {{ $item->last_login ?? '-' }} | @if ($_is_login_must_verified){{ $item->email_verified_at ?? '-' }} | @endif{{ $item->deleted_at ?? '-' }} | {{-- wajib --}}{{ $item->created_at ?? '-' }} | {{ $item->updated_at ?? '-' }} | {{ $item->createdBy->name ?? '-' }} | {{ $item->lastUpdatedBy->name ?? '-' }} | @if (($canUpdate || $canDelete || ($canForceLogin && $item->id != auth()->id())) && $isExport === false)@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 | @endif