help wip
This commit is contained in:
1 parent
3791379c41
commit
ec5a56a9b1
27 files changed
+514
-143
No files matched your search
@@ -3,7 +3,6 @@
|
||||
namespace App\Filament\Resources\Kontos\Schemas;
|
||||
|
||||
use App\Models\Konto;
|
||||
use App\Models\Plan;
|
||||
use Danielebarbaro\LaravelVatEuValidator\Rules\VatNumber;
|
||||
use Filament\Forms\Components\RichEditor;
|
||||
use Filament\Forms\Components\Select;
|
||||
@@ -11,11 +10,7 @@ use Filament\Forms\Components\TextInput;
|
||||
use Filament\Schemas\Components\Tabs;
|
||||
use Filament\Schemas\Components\Tabs\Tab;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Enums\Alignment;
|
||||
use Filament\Support\Enums\IconPosition;
|
||||
use Filament\Support\Enums\IconSize;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use JaOcero\RadioDeck\Forms\Components\RadioDeck;
|
||||
use Ysfkaya\FilamentPhoneInput\Forms\PhoneInput;
|
||||
|
||||
class KontoForm
|
||||
@@ -72,34 +67,7 @@ class KontoForm
|
||||
->label('Telefon')
|
||||
->defaultCountry('AT'),
|
||||
])->columnSpanFull(),
|
||||
|
||||
Tab::make('Zahlungsplan')
|
||||
->icon('phosphor-coins')
|
||||
->schema([
|
||||
RadioDeck::make('plan_id')
|
||||
// ->label('Wählen sie eine Option')
|
||||
->label('Zur Zeit bieten wie nur den Basic Plan als Zahlungvariante an.')
|
||||
->options(fn () => Plan::pluck('name', 'id')->toArray())
|
||||
->descriptions(Plan::options())
|
||||
->icons(fn () => Plan::pluck('icon', 'id')->toArray())
|
||||
->required()
|
||||
->iconPosition(IconPosition::Before) // Before | After
|
||||
->iconSize(IconSize::TwoExtraLarge)
|
||||
->alignment(Alignment::Center) // Start | Center | End
|
||||
->padding('px-4 py-6') // Padding around the deck
|
||||
->extraCardsAttributes([
|
||||
'class' => 'rounded-xl drop-shadow-xl mt-1',
|
||||
])
|
||||
->extraOptionsAttributes([
|
||||
'class' => 'text-2xl font-black tracking-tight lg:text-3xl',
|
||||
])
|
||||
->colors('primary')
|
||||
->disabled()
|
||||
->columns(3)
|
||||
->columnSpanFull(),
|
||||
])->columnSpanFull(),
|
||||
])->columnSpanFull(),
|
||||
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user