Build & Deploy / build (push) Successful in 18s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
36 lines
1.0 KiB
PHP
36 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Streaks\Schemas;
|
|
|
|
use Filament\Forms\Components\DatePicker;
|
|
use Filament\Forms\Components\Select;
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class StreakForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
Select::make('user_id')
|
|
->relationship('user', 'name')
|
|
->required(),
|
|
TextInput::make('current_count')
|
|
->required()
|
|
->numeric()
|
|
->default(0),
|
|
TextInput::make('longest_count')
|
|
->required()
|
|
->numeric()
|
|
->default(0),
|
|
DatePicker::make('last_active_date'),
|
|
TextInput::make('freezes_available')
|
|
->required()
|
|
->numeric()
|
|
->default(0),
|
|
DatePicker::make('freeze_last_granted_on'),
|
|
]);
|
|
}
|
|
}
|