pdf wip
This commit is contained in:
1 parent
c64634b3a1
commit
523e395064
36 files changed
+431
-635
No files matched your search
@@ -95,7 +95,7 @@ class EditProjekte extends EditRecord
|
||||
->fileRules([
|
||||
File::types(['csv', 'txt'])->max(1024),
|
||||
]),
|
||||
])->label('Importieren')
|
||||
])->label('Import')
|
||||
->icon('phosphor-upload')
|
||||
->color('info')
|
||||
->button(),
|
||||
@@ -141,7 +141,6 @@ class EditProjekte extends EditRecord
|
||||
*/
|
||||
Action::make('evaluate_gutachten')
|
||||
->hidden(fn ($record): bool => $record->bezahlt_am && ! $record->evaluation_gutachten ? false : true)
|
||||
->color('success')
|
||||
->label('Evaluieren')
|
||||
->icon('phosphor-eye')
|
||||
->action(function ($record): void {
|
||||
@@ -150,69 +149,64 @@ class EditProjekte extends EditRecord
|
||||
}),
|
||||
|
||||
/**
|
||||
* BERECHNEN
|
||||
* PDF
|
||||
*/
|
||||
ActionGroup::make([
|
||||
Action::make('make_gutachten')
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || $record->pdf_gutachten_status || ! $record->evaluation_gutachten) ? true : false)
|
||||
/**
|
||||
* STANDART TEXT
|
||||
*/
|
||||
Action::make('make-standard')
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->evaluation_gutachten) ? true : false)
|
||||
->label('Standard Texte')
|
||||
->icon('phosphor-calculator')
|
||||
->url(fn ($record) => route('standard.download', ['record' => $record, 'mode' => 'new']))
|
||||
->icon('icon-pdf')
|
||||
->url(fn ($record) => route('pdf', ['record' => $record, 'type' => 'standard', 'mode' => 'new']))
|
||||
->openUrlInNewTab(),
|
||||
/**
|
||||
* NUTZWERTE
|
||||
*/
|
||||
Action::make('make_nutzwerte')
|
||||
Action::make('make-nutzwerte')
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || $record->pdf_nutzwerte_status || ! $record->evaluation_gutachten) ? true : false)
|
||||
->label('Nutzwerte')
|
||||
->label('Nutzwerte Berechnen')
|
||||
->icon('phosphor-calculator')
|
||||
->url(fn ($record) => route('nutzwerte.download', ['record' => $record, 'mode' => 'new']))
|
||||
->url(fn ($record) => route('pdf', ['record' => $record, 'type' => 'nutzwerte', 'mode' => 'new']))
|
||||
->openUrlInNewTab(),
|
||||
])->label('Berechnen')
|
||||
->icon('phosphor-calculator')
|
||||
Action::make('make-nutzwerte')
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->pdf_nutzwerte_status || ! $record->evaluation_gutachten) ? true : false)
|
||||
->label('Nutzwerte')
|
||||
->icon('icon-pdf')
|
||||
->url(fn ($record) => route('pdf', ['record' => $record, 'type' => 'nutzwerte', 'mode' => 'file']))
|
||||
->openUrlInNewTab(),
|
||||
/**
|
||||
* PARAGRAPH 6
|
||||
*/
|
||||
Action::make('make-paragraph')
|
||||
->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']))
|
||||
->openUrlInNewTab(),
|
||||
])->label('Pdf')
|
||||
->icon('phosphor-download')
|
||||
->color('info')
|
||||
->button(),
|
||||
|
||||
/**
|
||||
* DOWNLOAD
|
||||
* EXCEL
|
||||
*/
|
||||
ActionGroup::make([
|
||||
/**
|
||||
* GUTACHTEN
|
||||
*/
|
||||
Action::make('download-gutachten')
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->pdf_gutachten_status) ? true : false)
|
||||
->color('success')
|
||||
->label('Download Gutachten')
|
||||
->icon('icon-pdf')
|
||||
->url(fn ($record) => route('standard.download', ['record' => $record, 'mode' => 'file']))
|
||||
->openUrlInNewTab(),
|
||||
/**
|
||||
* NUTZWERTE
|
||||
*/
|
||||
Action::make('download-nutzwerte')
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->pdf_nutzwerte_status) ? true : false)
|
||||
->color('success')
|
||||
->label('Download Nutzwerte')
|
||||
->icon('icon-pdf')
|
||||
->url(fn ($record) => route('nutzwerte.download', ['record' => $record, 'mode' => 'file']))
|
||||
->openUrlInNewTab(),
|
||||
/**
|
||||
* EXCEL
|
||||
*/
|
||||
Action::make('excel-nutzflaeche-nutzwerte')
|
||||
Action::make('excel-nutzwerte')
|
||||
->label('Nutzfläche & Nutzwerte')
|
||||
->icon('icon-excel')
|
||||
->url(fn ($record) => route('excel.download', ['record' => $record, 'mode' => 'file']))
|
||||
->url(fn ($record) => route('excel', ['record' => $record, 'type' => 'excel-nutzwerte']))
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->evaluation_gutachten) ? true : false)
|
||||
->openUrlInNewTab(),
|
||||
Action::make('excel-nutzflaechen-aufstellung')
|
||||
Action::make('excel-aufstellung')
|
||||
->label('Nutzflächen Aufstellung')
|
||||
->icon('icon-excel')
|
||||
->url(fn ($record) => route('excel.download', ['record' => $record, 'mode' => 'file']))
|
||||
->url(fn ($record) => route('excel', ['record' => $record, 'type' => 'excel-aufstellung']))
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->evaluation_gutachten) ? true : false)
|
||||
->openUrlInNewTab(),
|
||||
])->label('Export')
|
||||
])->label('Excel')
|
||||
->icon('phosphor-download')
|
||||
->color('info')
|
||||
->button(),
|
||||
|
||||
Reference in new issue
Block a user