plan options
This commit is contained in:
1 parent
8463f50f6b
commit
ecb66a76b5
14 files changed
+277
-303
No files matched your search
@@ -2,13 +2,14 @@
|
||||
|
||||
namespace App\Filament\Resources\Kontos\Tables;
|
||||
|
||||
use App\Forms\Components\PlanRadioGroup;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Forms\Components\RichEditor;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Support\Enums\FontWeight;
|
||||
use Filament\Support\Enums\IconSize;
|
||||
use Filament\Support\Enums\TextSize;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
@@ -20,6 +21,13 @@ class KontosTable
|
||||
->columns([
|
||||
TextColumn::make('company')->label('Firma')
|
||||
->description(fn ($record): string => $record->address),
|
||||
IconColumn::make('plan.icon')
|
||||
->width('30px')
|
||||
->label('')
|
||||
->size(IconSize::TwoExtraLarge)
|
||||
->color('primary')
|
||||
->icon(fn (string $state): string => $state)
|
||||
->extraAttributes(['class' => 'rounded-xl border border-gray-200 dark:border-gray-700 drop-shadow-xl']),
|
||||
|
||||
TextColumn::make('plan.name')
|
||||
->label('Zahlungs Plan')
|
||||
@@ -28,7 +36,7 @@ class KontosTable
|
||||
TextColumn::make('guthaben')
|
||||
->size(TextSize::Large)
|
||||
->weight(FontWeight::Bold)
|
||||
->label('Fertig')
|
||||
->label('Erstellt')
|
||||
->color('primary')
|
||||
->description('Gutachten')
|
||||
->alignCenter(),
|
||||
@@ -43,20 +51,6 @@ class KontosTable
|
||||
])
|
||||
->recordActions([
|
||||
EditAction::make()->iconButton()->color('gray'),
|
||||
Action::make('Konto')
|
||||
->iconButton()
|
||||
->color('gray')
|
||||
->icon('lucide-plane-takeoff')
|
||||
->schema([
|
||||
PlanRadioGroup::make('plan_id')
|
||||
->label('Plan')
|
||||
->options(fn () => Plan::pluck('name', 'id')->toArray()),
|
||||
// ->options([
|
||||
// '1' => 'Basic',
|
||||
// '2' => 'Smart',
|
||||
// '3' => 'Premium',
|
||||
// ]),
|
||||
]),
|
||||
Action::make('Bezahlen')
|
||||
->iconButton()
|
||||
->color('gray')
|
||||
|
||||
Reference in new issue
Block a user