feat: tambah role editor, workflow post, leaderboard, rekap kehadiran, kategori kas dengan type, seeder lengkap

This commit is contained in:
2026-04-05 06:21:16 +07:00
parent cde63da358
commit 6c23cc8660
40 changed files with 2432 additions and 129 deletions
@@ -2,6 +2,7 @@
namespace App\Filament\Resources\CashCategories\Schemas;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;
@@ -11,6 +12,9 @@ class CashCategoryForm
{
return $schema->components([
TextInput::make('name')->label('Nama')->required(),
Select::make('type')->label('Tipe')
->options(['pemasukan' => 'Pemasukan', 'pengeluaran' => 'Pengeluaran'])
->required(),
]);
}
}
@@ -15,6 +15,10 @@ class CashCategoriesTable
return $table
->columns([
TextColumn::make('name')->label('Nama')->searchable(),
TextColumn::make('type')->label('Tipe')
->badge()
->color(fn ($state) => $state === 'pemasukan' ? 'success' : 'danger')
->formatStateUsing(fn ($state) => ucfirst($state)),
TextColumn::make('records_count')->counts('records')->label('Transaksi'),
])
->recordActions([EditAction::make()])