refactor: remove redundant status message display logic and associated language strings from admin verification page
This commit is contained in:
parent
5f297ddf4c
commit
27a4ade00b
@ -7,7 +7,6 @@
|
||||
use App\Filament\Pages\AdminVerification\Concerns\HasVerificationFilters;
|
||||
use App\Filament\Pages\AdminVerification\Concerns\HasVerificationNotifications;
|
||||
use App\Filament\Resources\Manage\Partners\Pages\ViewPartner;
|
||||
use App\Filament\Support\CheerfulNotification;
|
||||
use App\Models\VerificationRequest;
|
||||
use BackedEnum;
|
||||
use BezhanSalleh\FilamentShield\Traits\HasPageShield;
|
||||
@ -153,13 +152,6 @@ public function verifications(): LengthAwarePaginator
|
||||
'createdAt' => $review->created_at->translatedFormat('l, d M Y H:i'),
|
||||
]),
|
||||
],
|
||||
|
||||
'messages' => [
|
||||
'detail' => CheerfulNotification::getByKey('verification.admin.messages.detail'),
|
||||
'revision' => CheerfulNotification::getByKey('verification.admin.messages.revision'),
|
||||
'approved' => CheerfulNotification::getByKey('verification.admin.messages.approved'),
|
||||
'rejected' => CheerfulNotification::getByKey('verification.admin.messages.rejected'),
|
||||
],
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
@ -336,18 +336,6 @@
|
||||
'cheerful' => 'Detail Data 🔍✨',
|
||||
'formal' => 'Detail',
|
||||
],
|
||||
'revision' => [
|
||||
'cheerful' => 'Sabar ya, pengguna lagi sibuk revisi data nih! ⏳✍️',
|
||||
'formal' => 'Menunggu revisi dari pengguna...',
|
||||
],
|
||||
'approved' => [
|
||||
'cheerful' => 'Yeay! Verifikasi sudah beres dan disetujui! ✅🚀',
|
||||
'formal' => 'Verifikasi selesai',
|
||||
],
|
||||
'rejected' => [
|
||||
'cheerful' => 'Yah, pengajuannya terpaksa belum bisa diterima. 🛑😔',
|
||||
'formal' => 'Pengajuan ditolak',
|
||||
],
|
||||
],
|
||||
'empty_state' => [
|
||||
'heading' => [
|
||||
|
||||
@ -267,24 +267,6 @@ class="w-4 h-4 text-gray-500 transition-transform duration-200"
|
||||
{{ ($this->rejectAction)(['id' => $verification['id']]) }}
|
||||
@endcan
|
||||
@endcanAny
|
||||
@elseif($verification['status']['isRevision'])
|
||||
<span
|
||||
class="flex items-center gap-1 text-xs text-warning-600 dark:text-warning-400 font-medium italic">
|
||||
<x-heroicon-s-clock class="w-3 h-3 animate-pulse" />
|
||||
{{ $verification['messages']['revision'] }}
|
||||
</span>
|
||||
@elseif($verification['status']['isApproved'])
|
||||
<span
|
||||
class="flex items-center gap-1 text-xs text-success-600 dark:text-success-400 font-medium">
|
||||
<x-heroicon-s-check-circle class="w-3 h-3" />
|
||||
{{ $verification['messages']['approved'] }}
|
||||
</span>
|
||||
@elseif($verification['status']['isRejected'])
|
||||
<span
|
||||
class="flex items-center gap-1 text-xs text-danger-600 dark:text-danger-400 font-medium">
|
||||
<x-heroicon-s-x-circle class="w-3 h-3" />
|
||||
{{ $verification['messages']['rejected'] }}
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</x-slot>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user