refactor: enhance ViewPartner back navigation and update PartnerTable column labels for improved clarity and consistency
This commit is contained in:
parent
aac2ff6719
commit
2d2ef77a94
@ -14,9 +14,17 @@ class ViewPartner extends ViewRecord
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
$previousUrl = url()->previous();
|
||||
$currentUrl = url()->current();
|
||||
$indexUrl = PartnerResource::getUrl('index');
|
||||
|
||||
// If previous URL is same as current or empty, fallback to index
|
||||
$targetUrl = ($previousUrl && $previousUrl !== $currentUrl && $previousUrl !== $indexUrl)
|
||||
? $previousUrl
|
||||
: $indexUrl;
|
||||
|
||||
return [
|
||||
BackAction::make()
|
||||
->url(url()->previous()),
|
||||
BackAction::make()->url($targetUrl),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@ -78,11 +78,34 @@ public static function configure(Table $table): Table
|
||||
}),
|
||||
|
||||
TextColumn::make('created_at')
|
||||
->label('Tgl Daftar')
|
||||
->label('Tanggal Daftar')
|
||||
->date()
|
||||
->sortable()
|
||||
->dateTime('l, d F Y H:i:s')
|
||||
->dateTime('l, d F Y H:i')
|
||||
->wrap(),
|
||||
|
||||
TextColumn::make('company.verificationRequest.created_at')
|
||||
->label('Tanggal Pengajuan Verifikasi')
|
||||
->dateTime('l, d F Y H:i')
|
||||
->sortable()
|
||||
->wrap(),
|
||||
|
||||
TextColumn::make('company.verificationRequest.latestReview.created_at')
|
||||
->label('Tanggal Verifikasi')
|
||||
->dateTime('l, d F Y H:i')
|
||||
->sortable()
|
||||
->wrap(),
|
||||
|
||||
TextColumn::make('company.verificationRequest.latestReview.created_at')
|
||||
->label('Tanggal Verifikasi')
|
||||
->dateTime('l, d F Y H:i')
|
||||
->sortable()
|
||||
->wrap(),
|
||||
|
||||
TextColumn::make('company.verificationRequest.latestReview.note')
|
||||
->label('Alasan Penolakan')
|
||||
->wrap(),
|
||||
|
||||
])
|
||||
->filters([
|
||||
SelectFilter::make('media_type')
|
||||
|
||||
@ -573,6 +573,87 @@
|
||||
'cheerful' => 'Belum Ada Data Rekanan! 🤝✨',
|
||||
'formal' => 'Tidak Ada Data Rekanan',
|
||||
],
|
||||
// Used by Partner module infolists
|
||||
'account_title' => [
|
||||
'cheerful' => 'Info Akun Pengguna 👤✨',
|
||||
'formal' => 'Informasi Akun',
|
||||
],
|
||||
'account_desc' => [
|
||||
'cheerful' => 'Cek dan kelola data akun yang terhubung ke perusahaanmu. Pastikan selalu up-to-date ya! 🚀',
|
||||
'formal' => 'Detail akun pengguna yang terhubung dengan perusahaan.',
|
||||
],
|
||||
'company_title' => [
|
||||
'cheerful' => 'Profil Perusahaan 🏗️✨',
|
||||
'formal' => 'Detail Perusahaan',
|
||||
],
|
||||
'company_desc' => [
|
||||
'cheerful' => 'Lengkapi profil perusahaanmu dan pantau status verifikasinya di sini. Semangat! 💪',
|
||||
'formal' => 'Informasi umum perusahaan serta status verifikasinya.',
|
||||
],
|
||||
'director_nik' => [
|
||||
'cheerful' => 'NIK Direktur 👤✨',
|
||||
'formal' => 'NIK Direktur',
|
||||
],
|
||||
'establishment_deed' => [
|
||||
'cheerful' => 'Akta Pendirian Perusahaan 📄✨',
|
||||
'formal' => 'Akta Pendirian',
|
||||
],
|
||||
'siup_nib' => [
|
||||
'cheerful' => 'SIUP/NIB Perusahaan 📄✨',
|
||||
'formal' => 'SIUP/NIB',
|
||||
],
|
||||
'npwp' => [
|
||||
'cheerful' => 'NPWP Perusahaan 🧾✨',
|
||||
'formal' => 'NPWP',
|
||||
],
|
||||
'pkp' => [
|
||||
'cheerful' => 'PKP (Pengusaha Kena Pajak) 🧾✨',
|
||||
'formal' => 'PKP (Pengusaha Kena Pajak)',
|
||||
],
|
||||
'annual_tax' => [
|
||||
'cheerful' => 'SPT Tahunan Perusahaan 📑✨',
|
||||
'formal' => 'SPT Tahunan',
|
||||
],
|
||||
'domicile' => [
|
||||
'cheerful' => 'Surat Keterangan Domisili 🏠✨',
|
||||
'formal' => 'Surat Keterangan Domisili',
|
||||
],
|
||||
'company_profile' => [
|
||||
'cheerful' => 'Profil Perusahaan 🏗️✨',
|
||||
'formal' => 'Profil Perusahaan',
|
||||
],
|
||||
'media_title' => [
|
||||
'cheerful' => 'Profil Media Rekanan 📰✨',
|
||||
'formal' => 'Informasi Media',
|
||||
],
|
||||
'media_desc' => [
|
||||
'cheerful' => 'Detail media rekanan perusahaanmu. Lengkapi datanya biar makin kredibel! 🤝✨',
|
||||
'formal' => 'Detail media rekanan yang terhubung dengan perusahaan.',
|
||||
],
|
||||
'journalism_org_cert' => [
|
||||
'cheerful' => 'Keanggotaan Organisasi Wartawan 🪪✨',
|
||||
'formal' => 'Keanggotaan Organisasi Wartawan',
|
||||
],
|
||||
'press_council_cert' => [
|
||||
'cheerful' => 'Sertifikat Dewan Pers 🧾✨',
|
||||
'formal' => 'Sertifikat Dewan Pers',
|
||||
],
|
||||
'journalist_title' => [
|
||||
'cheerful' => 'Jurnalis Pendukung 📝✨',
|
||||
'formal' => 'Daftar Jurnalis',
|
||||
],
|
||||
'journalist_desc' => [
|
||||
'cheerful' => 'Daftar jurnalis pada media rekananmu. Pastikan informasinya valid dan terkini ya! ✍️',
|
||||
'formal' => 'Informasi jurnalis yang berafiliasi dengan media perusahaan.',
|
||||
],
|
||||
'press_card' => [
|
||||
'cheerful' => 'Kartu Pers 🪪✨',
|
||||
'formal' => 'Kartu Pers',
|
||||
],
|
||||
'ukw_cert' => [
|
||||
'cheerful' => 'Sertifikat UKW 🧾✨',
|
||||
'formal' => 'Sertifikat UKW',
|
||||
],
|
||||
],
|
||||
'data_change' => [
|
||||
'existing' => [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user