This commit is contained in:
salam committed 2025-10-21 18:00:44 +02:00
1 parent 9881d8c37b
commit 6bf10b25bd
21 files changed
+245 -178

No files matched your search

@@ -80,7 +80,7 @@ class EditProjekte extends EditRecord
->disabled(fn ($record): bool => ! $record->pdf_gutachten_status)
->hidden(fn ($record): bool => $record->bezahlt_am ? false : true)
->color(fn ($record): string => match ($record->pdf_gutachten_status) {
1 => 'info',
1 => 'primary',
default => 'gray',
})
->label('Öffnen')
@@ -90,7 +90,7 @@ class EditProjekte extends EditRecord
Action::make('make_gutachten')
->hidden(fn ($record): bool => $record->bezahlt_am ? false : true)
->color(fn ($record): string => match ($record->evaluation_gutachten) {
1 => 'info',
1 => 'primary',
default => 'gray',
})
->disabled(fn ($record): bool => $record->evaluation_gutachten ? false : true)
@@ -110,7 +110,7 @@ class EditProjekte extends EditRecord
->disabled(fn ($record): bool => ! $record->pdf_nutzwerte_status)
->hidden(fn ($record): bool => $record->bezahlt_am ? false : true)
->color(fn ($record): string => match ($record->pdf_gutachten_status) {
1 => 'info',
1 => 'primary',
default => 'gray',
})
->label('Öffnen')
@@ -122,12 +122,16 @@ class EditProjekte extends EditRecord
->disabled(fn ($record): bool => $record->evaluation_gutachten ? false : true)
->label('Berechnen')
->icon('phosphor-calculator')
->color(fn ($record): string => match ($record->evaluation_gutachten) {
1 => 'primary',
default => 'gray',
})
->url(fn ($record) => route('nutzwerte.download', ['record' => $record, 'mode' => 'new']))
->openUrlInNewTab(),
])->label('Nutzwerte')
->icon('heroicon-m-ellipsis-vertical')
->button()
->color('primary'),
->color('warning'),
/**
* EXCEL
*/
@@ -149,7 +153,7 @@ class EditProjekte extends EditRecord
])->label('Spreadsheet')
->icon('heroicon-m-ellipsis-vertical')
->button()
->color('primary'),
->color('info'),
DeleteAction::make(),
];
}