refactor: update admin verification view action to use company hashId instead of record ID
This commit is contained in:
parent
535fe76197
commit
5f297ddf4c
@ -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',
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user