promotion wip
This commit is contained in:
1 parent
61594777d7
commit
3c5698a550
17 files changed
+176
-303
No files matched your search
@@ -2,15 +2,15 @@
|
||||
|
||||
namespace App\Filament\Resources\Kontos\Schemas;
|
||||
|
||||
use Alkoumi\FilamentImageRadioButton\Forms\Components\ImageRadioGroup;
|
||||
use App\Models\Konto;
|
||||
use App\Models\Plan;
|
||||
use Danielebarbaro\LaravelVatEuValidator\Rules\VatNumber;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use ToneGabes\BetterOptions\Forms\Components\RadioCards;
|
||||
use ToneGabes\Filament\Icons\Enums\Phosphor;
|
||||
use Ysfkaya\FilamentPhoneInput\Forms\PhoneInput;
|
||||
|
||||
class KontoForm
|
||||
@@ -19,24 +19,13 @@ class KontoForm
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
RadioCards::make('plan_id')
|
||||
->label('Zahlungsplan')
|
||||
->columns(3)
|
||||
->options([
|
||||
1 => 'Einsteiger ',
|
||||
2 => 'Gelegentlich',
|
||||
3 => 'Viel in Verwendung',
|
||||
])
|
||||
->descriptions([
|
||||
1 => 'Bezahlung bei der Erstellung eines Gutachtens.',
|
||||
2 => 'Zahlung Monatlich ohne Begrenzung der Gutachten.',
|
||||
3 => 'Zahlung Jährlich, ohne Begrenzung der Mitarbeiter, Gutachter und Auftraggeber.',
|
||||
])
|
||||
->icons([
|
||||
1 => Phosphor::Airplane->thin(),
|
||||
2 => Phosphor::AirplaneTakeoff->thin(),
|
||||
3 => Phosphor::AirplaneInFlight->thin(),
|
||||
])->columnSpanFull(),
|
||||
ImageRadioGroup::make('plan_id')
|
||||
->animation(true)
|
||||
->disk('public')
|
||||
->label('Plan')
|
||||
->required()
|
||||
->columnSpanFull()
|
||||
->options(fn () => Plan::pluck('file', 'id')->toArray()),
|
||||
Section::make('Firma')
|
||||
->inlineLabel()
|
||||
->schema([
|
||||
|
||||
@@ -41,8 +41,10 @@ class KontosTable
|
||||
|
||||
])
|
||||
->recordActions([
|
||||
EditAction::make(),
|
||||
EditAction::make()->label('')->color('gray'),
|
||||
Action::make('Laden')
|
||||
->label('')
|
||||
->color('gray')
|
||||
->icon('heroicon-o-credit-card')
|
||||
->schema([
|
||||
TextInput::make('subject')->required(),
|
||||
|
||||
Reference in new issue
Block a user