bezahlung wip

This commit is contained in:
salam committed 2025-10-14 08:18:52 +02:00
1 parent f676ec5a51
commit 48af0fd6c8
9 files changed
+197 -115

No files matched your search

@@ -35,14 +35,12 @@ class KontosTable
TextColumn::make('guthaben') TextColumn::make('guthaben')
->size(TextSize::Large) ->size(TextSize::Large)
->weight(FontWeight::Bold) ->weight(FontWeight::Bold)
->label('Erstellt')
->color('primary') ->color('primary')
->description('Gutachten') ->description('Gutachten')
->alignCenter(), ->alignCenter(),
TextColumn::make('abgeschlossen') TextColumn::make('abgeschlossen')
->size(TextSize::Large) ->size(TextSize::Large)
->weight(FontWeight::Bold) ->weight(FontWeight::Bold)
->label('Kredit')
->color('success') ->color('success')
->description('Gutachten') ->description('Gutachten')
->alignCenter(), ->alignCenter(),
@@ -3,9 +3,12 @@
namespace App\Filament\Resources\Projektes\Pages; namespace App\Filament\Resources\Projektes\Pages;
use App\Filament\Resources\Projektes\ProjekteResource; use App\Filament\Resources\Projektes\ProjekteResource;
use App\Models\Konto;
use App\Models\Projekte;
use Filament\Actions\Action; use Filament\Actions\Action;
use Filament\Actions\ActionGroup; use Filament\Actions\ActionGroup;
use Filament\Actions\DeleteAction; use Filament\Actions\DeleteAction;
use Filament\Notifications\Notification;
use Filament\Resources\Pages\EditRecord; use Filament\Resources\Pages\EditRecord;
class EditProjekte extends EditRecord class EditProjekte extends EditRecord
@@ -15,48 +18,109 @@ class EditProjekte extends EditRecord
protected function getHeaderActions(): array protected function getHeaderActions(): array
{ {
return [ return [
Action::make('gutachten') /**
->disabled(fn ($record): bool => ! $record->pdf_gutachten_status) * FREISCHALTEN
->color(fn ($record): string => match ($record->pdf_gutachten_status) { * auth()->user()->konto->guthaben
1 => 'info', */
default => 'gray', Action::make('freischalten')
}) ->hidden(fn ($record): bool => $record->bezahlt_am ? true : false)
->label('Gutachten') ->visible(fn (): bool => auth()->user()->konto->guthaben)
->icon('icon-pdf') ->requiresConfirmation()
->url(fn ($record) => route('standard.download', ['record' => $record, 'mode' => 'file'])) ->modalHeading('Gutachten freischalten?')
->openUrlInNewTab(), ->tooltip('Von Ihrem Guthaben wird ein Punkt abgezogen.')
Action::make('nutzwerte') ->modalIcon('phosphor-coins')
->color('gray') ->modalDescription('Von Ihrem Guthaben wird ein Punkt abgezogen.')
->label('Nutzwerte') ->modalSubmitActionLabel('Bezahlen')
->icon('icon-pdf') ->action(function ($record) {
->url(fn ($record) => route('nutzwerte.download', ['record' => $record, 'mode' => 'file'])) if (Konto::where('id', $record['konto_id'])->where('guthaben', '>', 0)->get()) {
->openUrlInNewTab(), Konto::where('id', $record['konto_id'])->decrement('guthaben', 1);
Action::make('excel') Projekte::where('id', $record['id'])->update(['bezahlt_am' => \Carbon\Carbon::now()]);
->color('gray')
->label('Nutzdaten') $this->record->refresh();
->icon('icon-excel')
->url(fn ($record) => route('excel.download', ['record' => $record, 'mode' => 'file'])) Notification::make()
->openUrlInNewTab(), ->title('Gutachten freischaltet')
->success()
->send();
}
}),
Action::make('bezahlen')
->color('danger')
->hidden(fn ($record): bool => $record->bezahlt_am ? true : false)
->visible(fn (): bool => ! auth()->user()->konto->guthaben)
->label('Konto laden')
->tooltip('Konto laden um Gutachten freizuschalten.')
->requiresConfirmation()
->modalHeading('Kein Guthaben')
->modalIcon('heroicon-o-exclamation-triangle')
->modalDescription('Bitte laden sie Ihr Konto auf')
->modalSubmitActionLabel('Konto aufladen'),
/**
* GUTACHTEN
*/
ActionGroup::make([ ActionGroup::make([
Action::make('gutachten')
->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',
default => 'gray',
})
->label('Herunterladen')
->icon('icon-pdf')
->url(fn ($record) => route('standard.download', ['record' => $record, 'mode' => 'file']))
->openUrlInNewTab(),
Action::make('make_gutachten') Action::make('make_gutachten')
->label('Gutachten Erstellen') ->hidden(fn ($record): bool => $record->bezahlt_am ? false : true)
->icon('heroicon-o-cog-8-tooth') ->label('Neu Berechnen')
->url(fn ($record) => route('standard.download', ['record' => $record, 'mode' => 'new'])) ->icon('phosphor-calculator')
->openUrlInNewTab(), ->url(fn ($record) => route('standard.download', ['record' => $record, 'mode' => 'new']))
Action::make('make_nutzwerte') ->openUrlInNewTab(),
->label('Nutzwerte Erstellen') ])->label('Gutachten')
->icon('heroicon-o-cog-8-tooth')
->url(fn ($record) => route('nutzwerte.download', ['record' => $record, 'mode' => 'new']))
->openUrlInNewTab(),
Action::make('make_excel')
->label('Datenblatt Erstellen')
->icon('heroicon-o-cog-8-tooth')
->url(fn ($record) => route('excel.download', ['record' => $record, 'mode' => 'new']))
->openUrlInNewTab(),
DeleteAction::make()->label('Projekt löschen'),
])->label('Berechnen')
->icon('heroicon-m-ellipsis-vertical') ->icon('heroicon-m-ellipsis-vertical')
->button()
->color('primary'), ->color('primary'),
/**
* NUTZWERTE
*/
ActionGroup::make([
Action::make('nutzwerte')
->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',
default => 'gray',
})
->label('Herunterladen')
->icon('icon-pdf')
->url(fn ($record) => route('nutzwerte.download', ['record' => $record, 'mode' => 'file']))
->openUrlInNewTab(),
Action::make('make_nutzwerte')
->hidden(fn ($record): bool => $record->bezahlt_am ? false : true)
->label('Neu Berechnen')
->icon('phosphor-calculator')
->url(fn ($record) => route('nutzwerte.download', ['record' => $record, 'mode' => 'new']))
->openUrlInNewTab(),
])->label('Nutzwerte')
->icon('heroicon-m-ellipsis-vertical')
->button()
->color('primary'),
/**
* EXCEL
*/
ActionGroup::make([
Action::make('excel')
->hidden(fn ($record): bool => $record->bezahlt_am ? false : true)
->color('gray')
->label('Excel Spreadsheet')
->icon('icon-excel')
->url(fn ($record) => route('excel.download', ['record' => $record, 'mode' => 'file']))
->openUrlInNewTab(),
])->label('Nutzdaten')
->icon('heroicon-m-ellipsis-vertical')
->button()
->color('primary'),
DeleteAction::make(),
]; ];
} }
+19
View File
@@ -17,8 +17,27 @@ class Projekte extends Model
'beschreibung', 'beschreibung',
'erstellung', 'erstellung',
'status', 'status',
'pdf_gutachten_name',
'pdf_nutzwerte_name',
'excel_nutzwerte_name',
'bezahlt_am',
]; ];
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'bezahlt_am' => 'datetime',
'pdf_nutzwerte_status' => 'boolean',
'pdf_gutachten_status' => 'boolean',
'excel_nutzwerte_status' => 'boolean',
];
}
protected static function booted(): void protected static function booted(): void
{ {
static::addGlobalScope(new KontoScope); static::addGlobalScope(new KontoScope);
+2 -2
View File
@@ -27,8 +27,8 @@ class AppServiceProvider extends ServiceProvider
FilamentColor::register([ FilamentColor::register([
'danger' => Color::Red, 'danger' => Color::Red,
'gray' => Color::Zinc, 'gray' => Color::Zinc,
'info' => Color::Blue, 'info' => Color::Amber,
'primary' => Color::Red, 'primary' => Color::Blue,
'success' => Color::Green, 'success' => Color::Green,
'warning' => Color::Amber, 'warning' => Color::Amber,
]); ]);
+5 -5
View File
@@ -1,7 +1,7 @@
<?php return array ( <?php return array (
'default' => 'default' =>
array ( array (
'/Users/hermanntelser/Sites/nutzwerte_fi4/resources/svg' => '/Users/salam/Sites/nutzwerte_fi4/resources/svg' =>
array ( array (
0 => 'excel', 0 => 'excel',
1 => 'logo', 1 => 'logo',
@@ -10,7 +10,7 @@
), ),
'heroicons' => 'heroicons' =>
array ( array (
'/Users/hermanntelser/Sites/nutzwerte_fi4/vendor/blade-ui-kit/blade-heroicons/src/../resources/svg' => '/Users/salam/Sites/nutzwerte_fi4/vendor/blade-ui-kit/blade-heroicons/src/../resources/svg' =>
array ( array (
0 => 'c-academic-cap', 0 => 'c-academic-cap',
1 => 'c-adjustments-horizontal', 1 => 'c-adjustments-horizontal',
@@ -1304,7 +1304,7 @@
), ),
'phosphor-icons' => 'phosphor-icons' =>
array ( array (
'/Users/hermanntelser/Sites/nutzwerte_fi4/vendor/codeat3/blade-phosphor-icons/src/../resources/svg' => '/Users/salam/Sites/nutzwerte_fi4/vendor/codeat3/blade-phosphor-icons/src/../resources/svg' =>
array ( array (
0 => 'acorn-bold', 0 => 'acorn-bold',
1 => 'acorn-duotone', 1 => 'acorn-duotone',
@@ -10382,7 +10382,7 @@
), ),
'filament' => 'filament' =>
array ( array (
'/Users/hermanntelser/Sites/nutzwerte_fi4/vendor/filament/support/src/../resources/svg' => '/Users/salam/Sites/nutzwerte_fi4/vendor/filament/support/src/../resources/svg' =>
array ( array (
0 => 'o-align-center', 0 => 'o-align-center',
1 => 'o-align-end', 1 => 'o-align-end',
@@ -10419,7 +10419,7 @@
), ),
'lucide' => 'lucide' =>
array ( array (
'/Users/hermanntelser/Sites/nutzwerte_fi4/vendor/mallardduck/blade-lucide-icons/src/../resources/svg' => '/Users/salam/Sites/nutzwerte_fi4/vendor/mallardduck/blade-lucide-icons/src/../resources/svg' =>
array ( array (
0 => 'a-arrow-down', 0 => 'a-arrow-down',
1 => 'a-arrow-up', 1 => 'a-arrow-up',
+17 -17
View File
@@ -81,9 +81,9 @@
array ( array (
'paths' => 'paths' =>
array ( array (
0 => '/Users/hermanntelser/Sites/nutzwerte_fi4/resources/views', 0 => '/Users/salam/Sites/nutzwerte_fi4/resources/views',
), ),
'compiled' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/framework/views', 'compiled' => '/Users/salam/Sites/nutzwerte_fi4/storage/framework/views',
), ),
'cors' => 'cors' =>
array ( array (
@@ -126,7 +126,7 @@
'fallback_locale' => 'en', 'fallback_locale' => 'en',
'faker_locale' => 'de_AT', 'faker_locale' => 'de_AT',
'cipher' => 'AES-256-CBC', 'cipher' => 'AES-256-CBC',
'key' => 'base64:3uv/ppXplpqmYtiZ5ZyILnoOTmKfZAz27bfsnR1qmaE=', 'key' => 'base64:zrVnUcBmUGjEV/EoAKnZCm/1FWplKu79kYBvevE2/ek=',
'previous_keys' => 'previous_keys' =>
array ( array (
), ),
@@ -301,8 +301,8 @@
'file' => 'file' =>
array ( array (
'driver' => 'file', 'driver' => 'file',
'path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/framework/cache/data', 'path' => '/Users/salam/Sites/nutzwerte_fi4/storage/framework/cache/data',
'lock_path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/framework/cache/data', 'lock_path' => '/Users/salam/Sites/nutzwerte_fi4/storage/framework/cache/data',
), ),
'memcached' => 'memcached' =>
array ( array (
@@ -513,7 +513,7 @@
), ),
'policies' => 'policies' =>
array ( array (
'path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Policies', 'path' => '/Users/salam/Sites/nutzwerte_fi4/app/Policies',
'merge' => true, 'merge' => true,
'generate' => true, 'generate' => true,
'methods' => 'methods' =>
@@ -601,7 +601,7 @@
'local' => 'local' =>
array ( array (
'driver' => 'local', 'driver' => 'local',
'root' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/app/private', 'root' => '/Users/salam/Sites/nutzwerte_fi4/storage/app/private',
'serve' => true, 'serve' => true,
'throw' => false, 'throw' => false,
'report' => false, 'report' => false,
@@ -609,7 +609,7 @@
'public' => 'public' =>
array ( array (
'driver' => 'local', 'driver' => 'local',
'root' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/app/public', 'root' => '/Users/salam/Sites/nutzwerte_fi4/storage/app/public',
'url' => 'http://nutzwerte_fi4.test/storage', 'url' => 'http://nutzwerte_fi4.test/storage',
'visibility' => 'public', 'visibility' => 'public',
'throw' => false, 'throw' => false,
@@ -631,7 +631,7 @@
'promotion' => 'promotion' =>
array ( array (
'driver' => 'local', 'driver' => 'local',
'root' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/app/public/promotion', 'root' => '/Users/salam/Sites/nutzwerte_fi4/storage/app/public/promotion',
'url' => 'http://nutzwerte_fi4.test/storage/promotion', 'url' => 'http://nutzwerte_fi4.test/storage/promotion',
'visibility' => 'public', 'visibility' => 'public',
'throw' => false, 'throw' => false,
@@ -639,7 +639,7 @@
), ),
'links' => 'links' =>
array ( array (
'/Users/hermanntelser/Sites/nutzwerte_fi4/public/storage' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/app/public', '/Users/salam/Sites/nutzwerte_fi4/public/storage' => '/Users/salam/Sites/nutzwerte_fi4/storage/app/public',
), ),
), ),
'logging' => 'logging' =>
@@ -664,14 +664,14 @@
'single' => 'single' =>
array ( array (
'driver' => 'single', 'driver' => 'single',
'path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/logs/laravel.log', 'path' => '/Users/salam/Sites/nutzwerte_fi4/storage/logs/laravel.log',
'level' => 'debug', 'level' => 'debug',
'replace_placeholders' => true, 'replace_placeholders' => true,
), ),
'daily' => 'daily' =>
array ( array (
'driver' => 'daily', 'driver' => 'daily',
'path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/logs/laravel.log', 'path' => '/Users/salam/Sites/nutzwerte_fi4/storage/logs/laravel.log',
'level' => 'debug', 'level' => 'debug',
'days' => 14, 'days' => 14,
'replace_placeholders' => true, 'replace_placeholders' => true,
@@ -736,7 +736,7 @@
), ),
'emergency' => 'emergency' =>
array ( array (
'path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/logs/laravel.log', 'path' => '/Users/salam/Sites/nutzwerte_fi4/storage/logs/laravel.log',
), ),
), ),
), ),
@@ -835,7 +835,7 @@
'theme' => 'default', 'theme' => 'default',
'paths' => 'paths' =>
array ( array (
0 => '/Users/hermanntelser/Sites/nutzwerte_fi4/resources/views/vendor/mail', 0 => '/Users/salam/Sites/nutzwerte_fi4/resources/views/vendor/mail',
), ),
), ),
), ),
@@ -1011,7 +1011,7 @@
'lifetime' => 120, 'lifetime' => 120,
'expire_on_close' => false, 'expire_on_close' => false,
'encrypt' => false, 'encrypt' => false,
'files' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/framework/sessions', 'files' => '/Users/salam/Sites/nutzwerte_fi4/storage/framework/sessions',
'connection' => NULL, 'connection' => NULL,
'table' => 'sessions', 'table' => 'sessions',
'store' => NULL, 'store' => NULL,
@@ -1059,7 +1059,7 @@
), ),
'default_filesystem_disk' => 'local', 'default_filesystem_disk' => 'local',
'assets_path' => NULL, 'assets_path' => NULL,
'cache_path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/bootstrap/cache/filament', 'cache_path' => '/Users/salam/Sites/nutzwerte_fi4/bootstrap/cache/filament',
'livewire_loading_delay' => 'default', 'livewire_loading_delay' => 'default',
'file_generation' => 'file_generation' =>
array ( array (
@@ -1072,7 +1072,7 @@
'livewire' => 'livewire' =>
array ( array (
'class_namespace' => 'App\\Livewire', 'class_namespace' => 'App\\Livewire',
'view_path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/resources/views/livewire', 'view_path' => '/Users/salam/Sites/nutzwerte_fi4/resources/views/livewire',
'layout' => 'components.layouts.app', 'layout' => 'components.layouts.app',
'lazy_placeholder' => NULL, 'lazy_placeholder' => NULL,
'temporary_file_upload' => 'temporary_file_upload' =>
+22 -22
View File
@@ -68,9 +68,9 @@
), ),
'clusters' => 'clusters' =>
array ( array (
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Clusters/Administration/AdministrationCluster.php' => 'App\\Filament\\Clusters\\Administration\\AdministrationCluster', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Administration/AdministrationCluster.php' => 'App\\Filament\\Clusters\\Administration\\AdministrationCluster',
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Clusters/Projekte/ProjekteCluster.php' => 'App\\Filament\\Clusters\\Projekte\\ProjekteCluster', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Projekte/ProjekteCluster.php' => 'App\\Filament\\Clusters\\Projekte\\ProjekteCluster',
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Clusters/Verwaltung/VerwaltungCluster.php' => 'App\\Filament\\Clusters\\Verwaltung\\VerwaltungCluster', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Verwaltung/VerwaltungCluster.php' => 'App\\Filament\\Clusters\\Verwaltung\\VerwaltungCluster',
), ),
'clusteredComponents' => 'clusteredComponents' =>
array ( array (
@@ -95,7 +95,7 @@
), ),
'clusterDirectories' => 'clusterDirectories' =>
array ( array (
0 => '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Clusters', 0 => '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters',
), ),
'clusterNamespaces' => 'clusterNamespaces' =>
array ( array (
@@ -103,14 +103,14 @@
), ),
'pages' => 'pages' =>
array ( array (
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Clusters/Administration/AdministrationCluster.php' => 'App\\Filament\\Clusters\\Administration\\AdministrationCluster', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Administration/AdministrationCluster.php' => 'App\\Filament\\Clusters\\Administration\\AdministrationCluster',
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Clusters/Projekte/ProjekteCluster.php' => 'App\\Filament\\Clusters\\Projekte\\ProjekteCluster', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Projekte/ProjekteCluster.php' => 'App\\Filament\\Clusters\\Projekte\\ProjekteCluster',
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Clusters/Verwaltung/VerwaltungCluster.php' => 'App\\Filament\\Clusters\\Verwaltung\\VerwaltungCluster', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Verwaltung/VerwaltungCluster.php' => 'App\\Filament\\Clusters\\Verwaltung\\VerwaltungCluster',
0 => 'Filament\\Pages\\Dashboard', 0 => 'Filament\\Pages\\Dashboard',
), ),
'pageDirectories' => 'pageDirectories' =>
array ( array (
0 => '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Pages', 0 => '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Pages',
), ),
'pageNamespaces' => 'pageNamespaces' =>
array ( array (
@@ -118,23 +118,23 @@
), ),
'resources' => 'resources' =>
array ( array (
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Auftraggebers/AuftraggeberResource.php' => 'App\\Filament\\Resources\\Auftraggebers\\AuftraggeberResource', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Auftraggebers/AuftraggeberResource.php' => 'App\\Filament\\Resources\\Auftraggebers\\AuftraggeberResource',
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Gutachters/GutachterResource.php' => 'App\\Filament\\Resources\\Gutachters\\GutachterResource', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Gutachters/GutachterResource.php' => 'App\\Filament\\Resources\\Gutachters\\GutachterResource',
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Inhaltsverzeichnis/InhaltsverzeichnisResource.php' => 'App\\Filament\\Resources\\Inhaltsverzeichnis\\InhaltsverzeichnisResource', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Inhaltsverzeichnis/InhaltsverzeichnisResource.php' => 'App\\Filament\\Resources\\Inhaltsverzeichnis\\InhaltsverzeichnisResource',
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/KontoTextblocks/KontoTextblockResource.php' => 'App\\Filament\\Resources\\KontoTextblocks\\KontoTextblockResource', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/KontoTextblocks/KontoTextblockResource.php' => 'App\\Filament\\Resources\\KontoTextblocks\\KontoTextblockResource',
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Kontos/KontoResource.php' => 'App\\Filament\\Resources\\Kontos\\KontoResource', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Kontos/KontoResource.php' => 'App\\Filament\\Resources\\Kontos\\KontoResource',
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Methodes/MethodeResource.php' => 'App\\Filament\\Resources\\Methodes\\MethodeResource', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Methodes/MethodeResource.php' => 'App\\Filament\\Resources\\Methodes\\MethodeResource',
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Orientierungs/OrientierungResource.php' => 'App\\Filament\\Resources\\Orientierungs\\OrientierungResource', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Orientierungs/OrientierungResource.php' => 'App\\Filament\\Resources\\Orientierungs\\OrientierungResource',
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Permissions/PermissionResource.php' => 'App\\Filament\\Resources\\Permissions\\PermissionResource', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Permissions/PermissionResource.php' => 'App\\Filament\\Resources\\Permissions\\PermissionResource',
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Plans/PlanResource.php' => 'App\\Filament\\Resources\\Plans\\PlanResource', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Plans/PlanResource.php' => 'App\\Filament\\Resources\\Plans\\PlanResource',
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Projektes/ProjekteResource.php' => 'App\\Filament\\Resources\\Projektes\\ProjekteResource', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Projektes/ProjekteResource.php' => 'App\\Filament\\Resources\\Projektes\\ProjekteResource',
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Textblocks/TextblockResource.php' => 'App\\Filament\\Resources\\Textblocks\\TextblockResource', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Textblocks/TextblockResource.php' => 'App\\Filament\\Resources\\Textblocks\\TextblockResource',
'/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Users/UserResource.php' => 'App\\Filament\\Resources\\Users\\UserResource', '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Users/UserResource.php' => 'App\\Filament\\Resources\\Users\\UserResource',
0 => 'BezhanSalleh\\FilamentShield\\Resources\\Roles\\RoleResource', 0 => 'BezhanSalleh\\FilamentShield\\Resources\\Roles\\RoleResource',
), ),
'resourceDirectories' => 'resourceDirectories' =>
array ( array (
0 => '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources', 0 => '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources',
), ),
'resourceNamespaces' => 'resourceNamespaces' =>
array ( array (
@@ -147,7 +147,7 @@
), ),
'widgetDirectories' => 'widgetDirectories' =>
array ( array (
0 => '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Widgets', 0 => '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Widgets',
), ),
'widgetNamespaces' => 'widgetNamespaces' =>
array ( array (
+24 -24
View File
@@ -531,7 +531,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::veIjWBrdBWrIMC8t', '_route' => 'generated::u4vcRtJ3hEj5hCNe',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -551,7 +551,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::muSK0SQhbdwIoCYo', '_route' => 'generated::GfWZuZO5VJuCoiJ2',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -609,7 +609,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::0bUCD3kvi7kZPEzz', '_route' => 'generated::h7pyq4odODYNGif1',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -629,7 +629,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::4mvgzXznCYOJRrHd', '_route' => 'generated::tNw97Ap4bhdXBOxp',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -649,7 +649,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::vN8kq9ib2yxLbjiy', '_route' => 'generated::zTr6dq0rMqI9FFnv',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -669,7 +669,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::TYNHx7Avrc44zPUT', '_route' => 'generated::vcFb59BTWylMqK7r',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -689,7 +689,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::xtVGH3JdXqIkaMQk', '_route' => 'generated::AK4j8I5fuvOGbvCw',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -2740,7 +2740,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::veIjWBrdBWrIMC8t' => 'generated::u4vcRtJ3hEj5hCNe' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -2752,7 +2752,7 @@ app('router')->setCompiledRoutes(
array ( array (
'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile', 'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile',
'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile', 'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile',
'as' => 'generated::veIjWBrdBWrIMC8t', 'as' => 'generated::u4vcRtJ3hEj5hCNe',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -2768,7 +2768,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::muSK0SQhbdwIoCYo' => 'generated::GfWZuZO5VJuCoiJ2' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -2780,7 +2780,7 @@ app('router')->setCompiledRoutes(
array ( array (
'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps', 'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps',
'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps', 'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps',
'as' => 'generated::muSK0SQhbdwIoCYo', 'as' => 'generated::GfWZuZO5VJuCoiJ2',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -2882,7 +2882,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::0bUCD3kvi7kZPEzz' => 'generated::h7pyq4odODYNGif1' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -2892,7 +2892,7 @@ app('router')->setCompiledRoutes(
'uri' => 'up', 'uri' => 'up',
'action' => 'action' =>
array ( array (
'uses' => 'O:55:"Laravel\\SerializableClosure\\UnsignedSerializableClosure":1:{s:12:"serializable";O:46:"Laravel\\SerializableClosure\\Serializers\\Native":5:{s:3:"use";a:0:{}s:8:"function";s:834:"function () { 'uses' => 'O:55:"Laravel\\SerializableClosure\\UnsignedSerializableClosure":1:{s:12:"serializable";O:46:"Laravel\\SerializableClosure\\Serializers\\Native":5:{s:3:"use";a:0:{}s:8:"function";s:826:"function () {
$exception = null; $exception = null;
try { try {
@@ -2907,11 +2907,11 @@ app('router')->setCompiledRoutes(
$exception = $e->getMessage(); $exception = $e->getMessage();
} }
return response(\\Illuminate\\Support\\Facades\\View::file(\'/Users/hermanntelser/Sites/nutzwerte_fi4/vendor/laravel/framework/src/Illuminate/Foundation/Configuration\'.\'/../resources/health-up.blade.php\', [ return response(\\Illuminate\\Support\\Facades\\View::file(\'/Users/salam/Sites/nutzwerte_fi4/vendor/laravel/framework/src/Illuminate/Foundation/Configuration\'.\'/../resources/health-up.blade.php\', [
\'exception\' => $exception, \'exception\' => $exception,
]), status: $exception ? 500 : 200); ]), status: $exception ? 500 : 200);
}";s:5:"scope";s:54:"Illuminate\\Foundation\\Configuration\\ApplicationBuilder";s:4:"this";N;s:4:"self";s:32:"0000000000000f360000000000000000";}}', }";s:5:"scope";s:54:"Illuminate\\Foundation\\Configuration\\ApplicationBuilder";s:4:"this";N;s:4:"self";s:32:"0000000000000f360000000000000000";}}',
'as' => 'generated::0bUCD3kvi7kZPEzz', 'as' => 'generated::h7pyq4odODYNGif1',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -2927,7 +2927,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::4mvgzXznCYOJRrHd' => 'generated::tNw97Ap4bhdXBOxp' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -2949,7 +2949,7 @@ app('router')->setCompiledRoutes(
'where' => 'where' =>
array ( array (
), ),
'as' => 'generated::4mvgzXznCYOJRrHd', 'as' => 'generated::tNw97Ap4bhdXBOxp',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -2965,7 +2965,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::vN8kq9ib2yxLbjiy' => 'generated::zTr6dq0rMqI9FFnv' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -2987,7 +2987,7 @@ app('router')->setCompiledRoutes(
'where' => 'where' =>
array ( array (
), ),
'as' => 'generated::vN8kq9ib2yxLbjiy', 'as' => 'generated::zTr6dq0rMqI9FFnv',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -3003,7 +3003,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::TYNHx7Avrc44zPUT' => 'generated::vcFb59BTWylMqK7r' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -3025,7 +3025,7 @@ app('router')->setCompiledRoutes(
'where' => 'where' =>
array ( array (
), ),
'as' => 'generated::TYNHx7Avrc44zPUT', 'as' => 'generated::vcFb59BTWylMqK7r',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -3041,7 +3041,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::xtVGH3JdXqIkaMQk' => 'generated::AK4j8I5fuvOGbvCw' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -3063,7 +3063,7 @@ app('router')->setCompiledRoutes(
'where' => 'where' =>
array ( array (
), ),
'as' => 'generated::xtVGH3JdXqIkaMQk', 'as' => 'generated::AK4j8I5fuvOGbvCw',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -3203,7 +3203,7 @@ app('router')->setCompiledRoutes(
'uri' => 'storage/{path}', 'uri' => 'storage/{path}',
'action' => 'action' =>
array ( array (
'uses' => 'O:55:"Laravel\\SerializableClosure\\UnsignedSerializableClosure":1:{s:12:"serializable";O:46:"Laravel\\SerializableClosure\\Serializers\\Native":5:{s:3:"use";a:3:{s:4:"disk";s:5:"local";s:6:"config";a:5:{s:6:"driver";s:5:"local";s:4:"root";s:60:"/Users/hermanntelser/Sites/nutzwerte_fi4/storage/app/private";s:5:"serve";b:1;s:5:"throw";b:0;s:6:"report";b:0;}s:12:"isProduction";b:0;}s:8:"function";s:323:"function (\\Illuminate\\Http\\Request $request, string $path) use ($disk, $config, $isProduction) { 'uses' => 'O:55:"Laravel\\SerializableClosure\\UnsignedSerializableClosure":1:{s:12:"serializable";O:46:"Laravel\\SerializableClosure\\Serializers\\Native":5:{s:3:"use";a:3:{s:4:"disk";s:5:"local";s:6:"config";a:5:{s:6:"driver";s:5:"local";s:4:"root";s:52:"/Users/salam/Sites/nutzwerte_fi4/storage/app/private";s:5:"serve";b:1;s:5:"throw";b:0;s:6:"report";b:0;}s:12:"isProduction";b:0;}s:8:"function";s:323:"function (\\Illuminate\\Http\\Request $request, string $path) use ($disk, $config, $isProduction) {
return (new \\Illuminate\\Filesystem\\ServeFile( return (new \\Illuminate\\Filesystem\\ServeFile(
$disk, $disk,
$config, $config,
@@ -17,17 +17,18 @@ return new class extends Migration
$table->foreignId('auftraggeber_id')->constrained(); $table->foreignId('auftraggeber_id')->constrained();
$table->foreignId('gutachter_id')->constrained(); $table->foreignId('gutachter_id')->constrained();
$table->string('interner_name'); $table->string('interner_name');
$table->string('offizieller_name'); $table->string('offizieller_name')->nullable();
$table->string('ort'); $table->string('ort')->nullable();
$table->text('beschreibung')->nullable(); $table->text('beschreibung')->nullable();
$table->string('erstellung')->nullable(); $table->string('erstellung')->nullable();
$table->string('status')->default('entwurf'); $table->string('status')->default('entwurf');
$table->string('pdf_gutachten_name'); $table->string('pdf_gutachten_name')->nullable();
$table->string('pdf_nutzwerte_name'); $table->string('pdf_nutzwerte_name')->nullable();
$table->string('excel_nutzwerte_name'); $table->string('excel_nutzwerte_name')->nullable();
$table->boolean('pdf_nutzwerte_status')->default(0); $table->boolean('pdf_nutzwerte_status')->default(0);
$table->boolean('pdf_gutachten_status')->default(0); $table->boolean('pdf_gutachten_status')->default(0);
$table->boolean('excel_nutzwerte_status')->default(0); $table->boolean('excel_nutzwerte_status')->default(0);
$table->timestamp('bezahlt_am')->nullable();
$table->timestamps(); $table->timestamps();
$table->softDeletes(); $table->softDeletes();
}); });