feat: tambah widget statistik kas dan perbaikan alur verifikasi transaksi
- Tambah CashStatsWidget: total saldo, pemasukan/pengeluaran bulan ini, saldo bulan lalu - Widget hanya tampil di halaman transaksi kas (bukan dashboard) - Hanya transaksi yang sudah diverifikasi masuk ke perhitungan total kas - Perbaiki namespace Action notifikasi (Filament v5) - Perbaiki observer: hapus throw Exception yang menyebabkan widget hilang - Tambah redirect setelah aksi setujui/tolak/verifikasi agar halaman refresh otomatis - Tambah file DOKUMENTASI.md
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Filament\Resources\CashRecords\Pages;
|
||||
|
||||
use App\Filament\Resources\CashRecords\CashRecordResource;
|
||||
use App\Filament\Widgets\CashStatsWidget;
|
||||
use Filament\Actions\CreateAction;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
|
||||
@@ -12,8 +13,11 @@ class ListCashRecords extends ListRecords
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
CreateAction::make(),
|
||||
];
|
||||
return [CreateAction::make()];
|
||||
}
|
||||
|
||||
protected function getHeaderWidgets(): array
|
||||
{
|
||||
return [CashStatsWidget::class];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user