pdf ok
This commit is contained in:
1 parent
28ca34fdb2
commit
b3e720983a
14 files changed
+73
-100
No files matched your search
@@ -34,7 +34,6 @@ class CreatePlatzhalter
|
||||
|
||||
Projekte::where('id', $record->id)->update([
|
||||
'evaluation_gutachten' => false,
|
||||
'pdf_nutzwerte_status' => false,
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -20,8 +20,6 @@ class ProjektAllgemeinflaechen extends Model
|
||||
self::updated(function ($model) {
|
||||
Projekte::where('id', $model['projekte_id'])->update([
|
||||
'evaluation_gutachten' => false,
|
||||
'pdf_nutzwerte_status' => false,
|
||||
'nutzwerte_startseite' => false,
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -21,8 +21,6 @@ class ProjektMethode extends Model
|
||||
self::updated(function ($model) {
|
||||
Projekte::where('id', $model['projekte_id'])->update([
|
||||
'evaluation_gutachten' => false,
|
||||
'pdf_nutzwerte_status' => false,
|
||||
'nutzwerte_startseite' => false,
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -35,8 +35,6 @@ class ProjektObjekte extends Model
|
||||
self::updated(function ($model) {
|
||||
Projekte::where('id', $model['projekte_id'])->update([
|
||||
'evaluation_gutachten' => false,
|
||||
'pdf_nutzwerte_status' => false,
|
||||
'nutzwerte_startseite' => false,
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -25,8 +25,6 @@ class ProjektObjekteImDetail extends Model
|
||||
self::updated(function ($model) {
|
||||
Projekte::where('id', $model['projekte_id'])->update([
|
||||
'evaluation_gutachten' => false,
|
||||
'pdf_nutzwerte_status' => false,
|
||||
'nutzwerte_startseite' => false,
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -17,8 +17,6 @@ class Projekte extends Model
|
||||
'beschreibung',
|
||||
'erstellung',
|
||||
'status',
|
||||
'pdf_nutzwerte_name',
|
||||
'pdf_nutzwerte_status',
|
||||
'evaluation_gutachten',
|
||||
'bezahlt_am',
|
||||
];
|
||||
@@ -32,7 +30,6 @@ class Projekte extends Model
|
||||
{
|
||||
return [
|
||||
'bezahlt_am' => 'datetime',
|
||||
'pdf_nutzwerte_status' => 'boolean',
|
||||
'evaluation_gutachten' => 'boolean',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user