mirror of
https://github.com/anna-sara/vbytes_lan.git
synced 2026-09-03 10:25:22 +02:00
33 lines
964 B
PHP
33 lines
964 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Smstemplates\Schemas;
|
|
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Forms\Components\Toggle;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Forms\Components\Textarea;
|
|
use DiscoveryDesign\FilamentGaze\Forms\Components\GazeBanner;
|
|
|
|
class SmstemplatesForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
GazeBanner::make()
|
|
->pollTimer(10)
|
|
->hideOnCreate(),
|
|
TextInput::make('title')
|
|
->required()
|
|
->columnSpanFull(),
|
|
Textarea::make('content')
|
|
->required()
|
|
->rows(5)
|
|
->columnSpanFull(),
|
|
Toggle::make('draft')
|
|
->default(false)
|
|
->onColor('warning')
|
|
->columnSpanFull(),
|
|
]);
|
|
}
|
|
}
|