feat: tambah role editor, workflow post, leaderboard, rekap kehadiran, kategori kas dengan type, seeder lengkap
This commit is contained in:
@@ -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()])
|
||||
|
||||
Reference in New Issue
Block a user