fix credits
This commit is contained in:
1 parent
9a355aa812
commit
3196e17116
9 files changed
+43
-18
No files matched your search
@@ -34,7 +34,7 @@ class EditProjekte extends EditRecord
|
||||
*/
|
||||
Action::make('freischalten')
|
||||
->hidden(fn ($record): bool => $record->bezahlt_am ? true : false)
|
||||
->color('warning')
|
||||
->color('success')
|
||||
->visible(fn (): bool => Auth::user()->konto->guthaben)
|
||||
->requiresConfirmation()
|
||||
->modalHeading('Gutachten freischalten?')
|
||||
@@ -56,16 +56,20 @@ class EditProjekte extends EditRecord
|
||||
}
|
||||
}),
|
||||
Action::make('bezahlen')
|
||||
->color('danger')
|
||||
->color('primary')
|
||||
->icon('phosphor-euro')
|
||||
->hidden(fn ($record): bool => $record->bezahlt_am ? true : false)
|
||||
->visible(fn (): bool => Auth::user()->konto->guthaben)
|
||||
->visible(fn (): bool => Auth::user()->konto->guthaben == 0)
|
||||
->label('Konto laden')
|
||||
->tooltip('Konto laden um Gutachten freizuschalten.')
|
||||
->requiresConfirmation()
|
||||
->modalHeading('Kein Guthaben')
|
||||
->modalIcon('heroicon-o-exclamation-triangle')
|
||||
->modalDescription('Bitte laden sie Ihr Konto auf')
|
||||
->modalSubmitActionLabel('Konto aufladen'),
|
||||
->tooltip('Konto laden (Dirket nur bei Büro AVF möglich).')
|
||||
->action(function () {
|
||||
Konto::where('id', Auth::user()->konto_id)->update(['guthaben' => 10]);
|
||||
}),
|
||||
// ->requiresConfirmation()
|
||||
// ->modalHeading('Kein Guthaben')
|
||||
// ->modalIcon('heroicon-o-exclamation-triangle')
|
||||
// ->modalDescription('Bitte laden sie Ihr Konto auf. (nicht aktive)')
|
||||
// ->modalSubmitActionLabel('Konto aufladen'),
|
||||
/**
|
||||
* EVALUATE
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user