diff --git a/app/Filament/Pages/AdminVerification/Index.php b/app/Filament/Pages/AdminVerification/Index.php index e15b77b..1f54927 100644 --- a/app/Filament/Pages/AdminVerification/Index.php +++ b/app/Filament/Pages/AdminVerification/Index.php @@ -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', diff --git a/resources/views/filament/pages/admin-verification.blade.php b/resources/views/filament/pages/admin-verification.blade.php index 75ecc09..2e7c35f 100644 --- a/resources/views/filament/pages/admin-verification.blade.php +++ b/resources/views/filament/pages/admin-verification.blade.php @@ -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