feat: tambah Filament 5 resources dengan schemas dan tables

This commit is contained in:
2026-04-03 04:22:34 +07:00
parent 401aa30ce8
commit aef6978b2a
48 changed files with 1211 additions and 0 deletions
@@ -0,0 +1,25 @@
<?php
namespace App\Filament\Resources\CashRecords\Schemas;
use App\Models\CashCategory;
use Filament\Forms\Components\DatePicker;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;
class CashRecordForm
{
public static function configure(Schema $schema): Schema
{
return $schema->components([
Select::make('category_id')->label('Kategori')
->options(CashCategory::pluck('name', 'id'))
->required(),
TextInput::make('amount')->label('Jumlah (Rp)')->numeric()->required(),
Textarea::make('description')->label('Keterangan')->required()->columnSpanFull(),
DatePicker::make('date')->label('Tanggal')->required(),
]);
}
}