pdf ok
This commit is contained in:
1 parent
28ca34fdb2
commit
b3e720983a
14 files changed
+73
-100
No files matched your search
@@ -172,19 +172,7 @@ class EditProjekte extends EditRecord
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->evaluation_gutachten) ? true : false)
|
||||
->label('Nutzwertberechnung')
|
||||
->icon('icon-pdf')
|
||||
->action(function ($record) {
|
||||
if (! $record->nutzwerte_startseite) {
|
||||
Notification::make()
|
||||
->title('Nutzwerte Download')
|
||||
->info()
|
||||
->icon('heroicon-o-exclamation-triangle')
|
||||
->duration(10000)
|
||||
->body('Um die aktuelle Seitenzahl zu generieren bitte zuerst "Standart Texte" laden.')
|
||||
->send();
|
||||
} else {
|
||||
return redirect()->route('pdf', ['record' => $record, 'part' => 'nutzwerte']);
|
||||
}
|
||||
})
|
||||
->url(fn ($record) => route('pdf', ['record' => $record, 'part' => 'nutzwerte']))
|
||||
->openUrlInNewTab(),
|
||||
/**
|
||||
* PARAGRAPH 6
|
||||
|
||||
Reference in new issue
Block a user