wip
This commit is contained in:
1 parent
3a35ccd69d
commit
261fb0916d
38 files changed
+348
-258
No files matched your search
@@ -67,7 +67,7 @@ class EditProjekte extends EditRecord
|
||||
1 => 'info',
|
||||
default => 'gray',
|
||||
})
|
||||
->label('Herunterladen')
|
||||
->label('3) Herunterladen')
|
||||
->icon('phosphor-file-pdf')
|
||||
->url(fn ($record) => route('standard.download', ['record' => $record, 'mode' => 'file']))
|
||||
->openUrlInNewTab(),
|
||||
@@ -78,20 +78,24 @@ class EditProjekte extends EditRecord
|
||||
default => 'gray',
|
||||
})
|
||||
->disabled(fn ($record): bool => $record->evaluation ? false : true)
|
||||
->label('Neu Berechnen')
|
||||
->icon('phosphor-calculator')
|
||||
->label('2) Generieren')
|
||||
->icon('phosphor-math-operations')
|
||||
->url(fn ($record) => route('standard.download', ['record' => $record, 'mode' => 'new']))
|
||||
->openUrlInNewTab(),
|
||||
Action::make('evaluate_gutachten')
|
||||
->hidden(fn ($record): bool => $record->bezahlt_am ? false : true)
|
||||
->color(fn ($record): string => match ($record->evaluation) {
|
||||
1 => 'gray',
|
||||
default => 'info',
|
||||
1 => 'success',
|
||||
default => 'primary',
|
||||
})
|
||||
->label('1) Evaluieren')
|
||||
->icon(fn ($record): string => match ($record->evaluation) {
|
||||
1 => 'phosphor-check',
|
||||
default => 'phosphor-eye',
|
||||
})
|
||||
->label('Daten Evaluieren')
|
||||
->icon('phosphor-seal-check')
|
||||
->action(function ($record): void {
|
||||
GutachtenValidation::controll($record);
|
||||
$this->record->refresh();
|
||||
}),
|
||||
])->label('Gutachten')
|
||||
->icon('heroicon-m-ellipsis-vertical')
|
||||
|
||||
Reference in new issue
Block a user