removed all references to credits. now credits are completely replaced by addons.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
TextInput::make('name')->required()->maxLength(255),
|
||||
TextInput::make('slug')->required()->unique()->maxLength(255),
|
||||
TextInput::make('contact_email')->email()->required()->maxLength(255),
|
||||
TextInput::make('event_credits_balance')->numeric()->default(1), // Free tier
|
||||
// Legacy credits removed; use packages/add-ons
|
||||
Select::make('subscription_tier')
|
||||
->options([
|
||||
'free' => 'Free',
|
||||
@@ -31,7 +31,7 @@ Toggle::make('is_suspended')->label('Suspended')->default(false),
|
||||
Tables\Columns\TextColumn::make('name')->searchable()->sortable(),
|
||||
Tables\Columns\TextColumn::make('slug')->badge()->color('primary'),
|
||||
Tables\Columns\TextColumn::make('contact_email')->copyable(),
|
||||
Tables\Columns\TextColumn::make('event_credits_balance')
|
||||
// Legacy credits column removed
|
||||
->label('Credits')
|
||||
->badge()
|
||||
->color(fn ($state) => $state < 5 ? 'warning' : 'success'),
|
||||
@@ -69,7 +69,7 @@ public static function table(Table $table): Table
|
||||
->recordTitleAttribute('package_id')
|
||||
->columns([
|
||||
Tables\Columns\TextColumn::make('package_id')->badge(),
|
||||
Tables\Columns\TextColumn::make('credits_added')->badge(),
|
||||
// credits_added removed
|
||||
Tables\Columns\TextColumn::make('price')->money('EUR'),
|
||||
Tables\Columns\TextColumn::make('platform')->badge(),
|
||||
Tables\Columns\TextColumn::make('purchased_at')->dateTime(),
|
||||
@@ -93,11 +93,11 @@ public static function table(Table $table): Table
|
||||
->actions([
|
||||
Actions\ViewAction::make(),
|
||||
Actions\EditAction::make(),
|
||||
Actions\Action::make('add_credits')
|
||||
// add_credits removed (legacy)
|
||||
->label('Credits hinzufügen')
|
||||
->icon('heroicon-o-plus')
|
||||
->form([
|
||||
Forms\Components\TextInput::make('credits')->numeric()->required()->minValue(1),
|
||||
// credits input removed
|
||||
Forms\Components\Textarea::make('reason')->label('Grund')->rows(3),
|
||||
])
|
||||
->action(function (Tenant $record, array $data) {
|
||||
@@ -631,4 +631,4 @@ class SuperAdminMiddleware
|
||||
6. **Policies & Middleware:** Security für SuperAdmin-Funktionen
|
||||
7. **Tests:** Feature-Tests für Credit-Management, Permissions
|
||||
|
||||
Dieser Plan erweitert den SuperAdmin-Bereich um umfassende Billing- und Security-Management-Funktionen.
|
||||
Dieser Plan erweitert den SuperAdmin-Bereich um umfassende Billing- und Security-Management-Funktionen.
|
||||
|
||||
Reference in New Issue
Block a user