wip
This commit is contained in:
1 parent
17ed7b7f8f
commit
c9cac0903a
24 files changed
+122
-4431
No files matched your search
@@ -163,22 +163,28 @@ class EditProjekte extends EditRecord
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->evaluation_gutachten) ? true : false)
|
||||
->label('Standard Texte')
|
||||
->icon('icon-pdf')
|
||||
->url(fn ($record) => route('pdf', ['record' => $record, 'type' => 'standard', 'mode' => 'new']))
|
||||
->url(fn ($record) => route('pdf', ['record' => $record, 'part' => 'standard']))
|
||||
->openUrlInNewTab(),
|
||||
/**
|
||||
* NUTZWERTE
|
||||
*/
|
||||
Action::make('make-nutzwerte')
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || $record->pdf_nutzwerte_status || ! $record->evaluation_gutachten) ? true : false)
|
||||
->label('Nutzwerte Berechnen')
|
||||
->icon('phosphor-calculator')
|
||||
->url(fn ($record) => route('pdf', ['record' => $record, 'type' => 'nutzwerte', 'mode' => 'new']))
|
||||
->openUrlInNewTab(),
|
||||
Action::make('make-nutzwerte')
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->pdf_nutzwerte_status || ! $record->evaluation_gutachten) ? true : false)
|
||||
->label('Nutzwerte')
|
||||
Action::make('make-nutzwerte-file')
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->evaluation_gutachten) ? true : false)
|
||||
->label('Nutzwertberechnung')
|
||||
->icon('icon-pdf')
|
||||
->url(fn ($record) => route('pdf', ['record' => $record, 'type' => 'nutzwerte', 'mode' => 'file']))
|
||||
->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']);
|
||||
}
|
||||
})
|
||||
->openUrlInNewTab(),
|
||||
/**
|
||||
* PARAGRAPH 6
|
||||
@@ -187,7 +193,7 @@ class EditProjekte extends EditRecord
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->evaluation_gutachten) ? true : false)
|
||||
->label('Auszug gem. §6 ')
|
||||
->icon('icon-pdf')
|
||||
->url(fn ($record) => route('pdf', ['record' => $record, 'type' => 'paragraph', 'mode' => 'new']))
|
||||
->url(fn ($record) => route('pdf', ['record' => $record, 'part' => 'paragraph']))
|
||||
->openUrlInNewTab(),
|
||||
])->label('Pdf')
|
||||
->icon('phosphor-download')
|
||||
@@ -201,13 +207,13 @@ class EditProjekte extends EditRecord
|
||||
Action::make('excel-nutzwerte')
|
||||
->label('Nutzfläche & Nutzwerte')
|
||||
->icon('icon-excel')
|
||||
->url(fn ($record) => route('excel', ['record' => $record, 'type' => 'excel-nutzwerte']))
|
||||
->url(fn ($record) => route('excel', ['record' => $record, 'part' => 'excel-nutzwerte']))
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->evaluation_gutachten) ? true : false)
|
||||
->openUrlInNewTab(),
|
||||
Action::make('excel-aufstellung')
|
||||
->label('Nutzflächen Aufstellung')
|
||||
->icon('icon-excel')
|
||||
->url(fn ($record) => route('excel', ['record' => $record, 'type' => 'excel-aufstellung']))
|
||||
->url(fn ($record) => route('excel', ['record' => $record, 'part' => 'excel-aufstellung']))
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->evaluation_gutachten) ? true : false)
|
||||
->openUrlInNewTab(),
|
||||
])->label('Excel')
|
||||
|
||||
Reference in new issue
Block a user