refactor: update admin verification view action to use company hashId instead of record ID

This commit is contained in:
Yoga Pangestu 2026-04-13 10:45:39 +07:00
parent 535fe76197
commit 5f297ddf4c
2 changed files with 3 additions and 2 deletions

View File

@ -95,8 +95,9 @@ public function verifications(): LengthAwarePaginator
return [
'id' => $verification->id,
'company' => [
'hashId' => $company?->user?->getHashid(),
'name' => $company?->name ?? 'Data tidak ditemukan',
'detailUrl' => ($company && $company->user_id) ? ViewPartner::getUrl(['record' => $company->user_id]) : null,
'detailUrl' => ($company && $company->user_id) ? ViewPartner::getUrl(['record' => $company?->user?->getHashid()]) : null,
],
'submittedBy' => $verification->submittedBy?->name ?? 'Unknown',

View File

@ -247,7 +247,7 @@ class="w-4 h-4 text-gray-500 transition-transform duration-200"
{{-- View Detail Button --}}
@can('View:AdminVerification')
@if ($verification['company']['detailUrl'])
{{ ($this->viewAction)(['id' => $verification['id']]) }}
{{ ($this->viewAction)(['id' => $verification['company']['hashId']]) }}
@endif
@endcan