diff --git a/app/Filament/Resources/Inhaltsverzeichnis/InhaltsverzeichnisResource.php b/app/Filament/Resources/Inhaltsverzeichnis/InhaltsverzeichnisResource.php index f1e3a5a..0fee22d 100644 --- a/app/Filament/Resources/Inhaltsverzeichnis/InhaltsverzeichnisResource.php +++ b/app/Filament/Resources/Inhaltsverzeichnis/InhaltsverzeichnisResource.php @@ -23,8 +23,6 @@ class InhaltsverzeichnisResource extends Resource protected static string|BackedEnum|null $navigationIcon = 'phosphor-list'; - protected static ?string $recordTitleAttribute = 'name'; - protected static ?string $navigationLabel = 'Inhaltsverzeichnis'; protected static ?string $modelLabel = 'Inhaltsverzeichnis'; diff --git a/app/Filament/Resources/Methodes/MethodeResource.php b/app/Filament/Resources/Methodes/MethodeResource.php index cdcccba..53f60e1 100644 --- a/app/Filament/Resources/Methodes/MethodeResource.php +++ b/app/Filament/Resources/Methodes/MethodeResource.php @@ -23,8 +23,6 @@ class MethodeResource extends Resource protected static string|BackedEnum|null $navigationIcon = 'lucide-calculator'; - protected static ?string $recordTitleAttribute = 'name'; - protected static ?string $navigationLabel = 'Methode'; protected static ?string $modelLabel = 'Methode'; diff --git a/app/Filament/Resources/Orientierungs/OrientierungResource.php b/app/Filament/Resources/Orientierungs/OrientierungResource.php index 58281ca..72ec709 100644 --- a/app/Filament/Resources/Orientierungs/OrientierungResource.php +++ b/app/Filament/Resources/Orientierungs/OrientierungResource.php @@ -23,8 +23,6 @@ class OrientierungResource extends Resource protected static string|BackedEnum|null $navigationIcon = 'lucide-compass'; - protected static ?string $recordTitleAttribute = 'name'; - protected static ?string $navigationLabel = 'Orientierung'; protected static ?string $modelLabel = 'Orientierung'; diff --git a/app/Filament/Resources/Projektes/RelationManagers/ProjekteImportsRelationManager.php b/app/Filament/Resources/Projektes/RelationManagers/ProjekteImportsRelationManager.php index b0e6574..970cefe 100644 --- a/app/Filament/Resources/Projektes/RelationManagers/ProjekteImportsRelationManager.php +++ b/app/Filament/Resources/Projektes/RelationManagers/ProjekteImportsRelationManager.php @@ -3,18 +3,18 @@ namespace App\Filament\Resources\Projektes\RelationManagers; use Filament\Actions\AssociateAction; -use Filament\Actions\BulkActionGroup; use Filament\Actions\CreateAction; use Filament\Actions\DeleteAction; -use Filament\Actions\DeleteBulkAction; -use Filament\Actions\DissociateAction; -use Filament\Actions\DissociateBulkAction; use Filament\Actions\EditAction; -use Filament\Forms\Components\TextInput; +use Filament\Forms\Components\FileUpload; +use Filament\Forms\Components\Select; +use Filament\Forms\Components\Textarea; use Filament\Resources\RelationManagers\RelationManager; use Filament\Schemas\Schema; use Filament\Tables\Columns\TextColumn; use Filament\Tables\Table; +use Illuminate\Support\Facades\Storage; +use Illuminate\Support\HtmlString; class ProjekteImportsRelationManager extends RelationManager { @@ -32,10 +32,24 @@ class ProjekteImportsRelationManager extends RelationManager { return $schema ->components([ - TextInput::make('name') + Select::make('filetype') + ->label('Dokument Type') ->required() + ->options([ + 'allgemein' => 'Allgemeinflächen', + 'nutzwerte' => 'Nutzwerte', + ]), + FileUpload::make('file') + ->required() + ->disabledOn('edit') + ->label('Datei (csv/txt) auswählen') + ->directory('projekt-data-files') + ->storeFileNamesIn('original_name') + ->moveFiles() + ->acceptedFileTypes(['text/csv', 'text/plain']), + Textarea::make('beschreibung') ->maxLength(255), - ]); + ])->columns(1); } public function table(Table $table): Table @@ -43,26 +57,42 @@ class ProjekteImportsRelationManager extends RelationManager return $table ->recordTitleAttribute('name') ->columns([ - TextColumn::make('name') - ->searchable(), + TextColumn::make('filetype') + ->badge() + ->color(fn (string $state): string => match ($state) { + 'allgemein' => 'success', + 'nutzwerte' => 'info', + }), + TextColumn::make('original_name') + ->label('name') + ->wrap() + ->description(function ($record) { + return new HtmlString($record->beschreibung); + }), ]) ->filters([ // ]) ->headerActions([ - CreateAction::make(), + // CreateAction::make(), // AssociateAction::make(), + CreateAction::make() + ->createAnother(false) + ->label('Hochladen') + ->color('primary') + ->icon('heroicon-o-document-arrow-up') + ->before(function (array $data) { + + $path = Storage::disk('private')->path($data['file']); + $contents = file_get_contents($path); + $arr = preg_split("/\r\n|\n|\r/", $contents); + dd($arr); + // Runs before the form fields are saved to the database. + }), ]) ->recordActions([ - EditAction::make(), - DissociateAction::make(), - DeleteAction::make(), - ]) - ->toolbarActions([ - BulkActionGroup::make([ - DissociateBulkAction::make(), - DeleteBulkAction::make(), - ]), + EditAction::make()->iconButton()->color('gray'), + DeleteAction::make()->iconButton(), ]); } } diff --git a/app/Filament/Resources/Projektes/Schemas/ProjekteForm.php b/app/Filament/Resources/Projektes/Schemas/ProjekteForm.php index beacb7c..18621f8 100644 --- a/app/Filament/Resources/Projektes/Schemas/ProjekteForm.php +++ b/app/Filament/Resources/Projektes/Schemas/ProjekteForm.php @@ -40,7 +40,7 @@ class ProjekteForm Select::make('gutachter_id')->relationship(name: 'gutachter', titleAttribute: 'name')->required(), Radio::make('status')->options(ProjektStatus::class)->required(), ]), - Tab::make('Beeschreibung') + Tab::make('Beschreibung') ->schema([ RichEditor::make('beschreibung') ->toolbarButtons([ diff --git a/app/Filament/Resources/Textblocks/TextblockResource.php b/app/Filament/Resources/Textblocks/TextblockResource.php index c5c538a..74804a5 100644 --- a/app/Filament/Resources/Textblocks/TextblockResource.php +++ b/app/Filament/Resources/Textblocks/TextblockResource.php @@ -23,8 +23,6 @@ class TextblockResource extends Resource protected static string|BackedEnum|null $navigationIcon = 'phosphor-article'; - protected static ?string $recordTitleAttribute = 'name'; - protected static ?string $navigationLabel = 'Textblock'; protected static ?string $modelLabel = 'Textblock'; diff --git a/app/Filament/Resources/Users/UserResource.php b/app/Filament/Resources/Users/UserResource.php index bccec43..cacce13 100644 --- a/app/Filament/Resources/Users/UserResource.php +++ b/app/Filament/Resources/Users/UserResource.php @@ -26,8 +26,6 @@ class UserResource extends Resource protected static string|BackedEnum|null $navigationIcon = 'lucide-user-pen'; - protected static ?string $recordTitleAttribute = 'name'; - protected static ?string $navigationLabel = 'Benutzer'; protected static ?string $modelLabel = 'Benutzer'; diff --git a/app/Models/ProjekteImport.php b/app/Models/ProjekteImport.php index d012a43..14bb3b7 100644 --- a/app/Models/ProjekteImport.php +++ b/app/Models/ProjekteImport.php @@ -6,5 +6,11 @@ use Illuminate\Database\Eloquent\Model; class ProjekteImport extends Model { - // + protected $fillable = [ + 'projekte_id', + 'file', + 'beschreibung', + 'filetype', + 'original_name', + ]; } diff --git a/app/Policies/KontoOptionPolicy.php b/app/Policies/KontoOptionPolicy.php deleted file mode 100644 index 79c1842..0000000 --- a/app/Policies/KontoOptionPolicy.php +++ /dev/null @@ -1,70 +0,0 @@ -can('ViewAny:KontoOption'); - } - - public function view(AuthUser $authUser, KontoOption $kontoOption): bool - { - return $authUser->can('View:KontoOption'); - } - - public function create(AuthUser $authUser): bool - { - return $authUser->can('Create:KontoOption'); - } - - public function update(AuthUser $authUser, KontoOption $kontoOption): bool - { - return $authUser->can('Update:KontoOption'); - } - - public function delete(AuthUser $authUser, KontoOption $kontoOption): bool - { - return $authUser->can('Delete:KontoOption'); - } - - public function restore(AuthUser $authUser, KontoOption $kontoOption): bool - { - return $authUser->can('Restore:KontoOption'); - } - - public function forceDelete(AuthUser $authUser, KontoOption $kontoOption): bool - { - return $authUser->can('ForceDelete:KontoOption'); - } - - public function forceDeleteAny(AuthUser $authUser): bool - { - return $authUser->can('ForceDeleteAny:KontoOption'); - } - - public function restoreAny(AuthUser $authUser): bool - { - return $authUser->can('RestoreAny:KontoOption'); - } - - public function replicate(AuthUser $authUser, KontoOption $kontoOption): bool - { - return $authUser->can('Replicate:KontoOption'); - } - - public function reorder(AuthUser $authUser): bool - { - return $authUser->can('Reorder:KontoOption'); - } - -} \ No newline at end of file diff --git a/app/Policies/KontooptionenPolicy.php b/app/Policies/KontooptionenPolicy.php deleted file mode 100644 index 7411ee6..0000000 --- a/app/Policies/KontooptionenPolicy.php +++ /dev/null @@ -1,69 +0,0 @@ -can('ViewAny:KontoOption'); - } - - public function view(AuthUser $authUser, KontoOption $kontooptionen): bool - { - return $authUser->can('View:KontoOption'); - } - - public function create(AuthUser $authUser): bool - { - return $authUser->can('Create:KontoOption'); - } - - public function update(AuthUser $authUser, KontoOption $kontooptionen): bool - { - return $authUser->can('Update:KontoOption'); - } - - public function delete(AuthUser $authUser, KontoOption $kontooptionen): bool - { - return $authUser->can('Delete:KontoOption'); - } - - public function restore(AuthUser $authUser, KontoOption $kontooptionen): bool - { - return $authUser->can('Restore:KontoOption'); - } - - public function forceDelete(AuthUser $authUser, KontoOption $kontooptionen): bool - { - return $authUser->can('ForceDelete:KontoOption'); - } - - public function forceDeleteAny(AuthUser $authUser): bool - { - return $authUser->can('ForceDeleteAny:KontoOption'); - } - - public function restoreAny(AuthUser $authUser): bool - { - return $authUser->can('RestoreAny:KontoOption'); - } - - public function replicate(AuthUser $authUser, KontoOption $kontooptionen): bool - { - return $authUser->can('Replicate:KontoOption'); - } - - public function reorder(AuthUser $authUser): bool - { - return $authUser->can('Reorder:KontoOption'); - } -} diff --git a/app/Providers/Filament/AdminPanelProvider.php b/app/Providers/Filament/AdminPanelProvider.php index 609c7fc..c86ba91 100644 --- a/app/Providers/Filament/AdminPanelProvider.php +++ b/app/Providers/Filament/AdminPanelProvider.php @@ -93,7 +93,8 @@ class AdminPanelProvider extends PanelProvider ])->plugins([ FilamentShieldPlugin::make() ->navigationSort(10) - ->navigationBadge('3'), + ->navigationBadge('3') + ->globallySearchable(false), FilamentBackgroundsPlugin::make() ->imageProvider( MyImages::make() diff --git a/bootstrap/cache/blade-icons.php b/bootstrap/cache/blade-icons.php index 3c5c682..b21f1c7 100755 --- a/bootstrap/cache/blade-icons.php +++ b/bootstrap/cache/blade-icons.php @@ -1,7 +1,7 @@ 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 ( 0 => 'c-academic-cap', 1 => 'c-adjustments-horizontal', @@ -1295,7 +1295,7 @@ ), 'phosphor-icons' => 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 ( 0 => 'acorn-bold', 1 => 'acorn-duotone', @@ -10373,7 +10373,7 @@ ), 'filament' => array ( - '/Users/hermanntelser/Sites/nutzwerte_fi4/vendor/filament/support/src/../resources/svg' => + '/Users/salam/Sites/nutzwerte_fi4/vendor/filament/support/src/../resources/svg' => array ( 0 => 'o-align-center', 1 => 'o-align-end', @@ -10410,7 +10410,7 @@ ), 'lucide' => 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 ( 0 => 'a-arrow-down', 1 => 'a-arrow-up', diff --git a/bootstrap/cache/config.php b/bootstrap/cache/config.php index b970f2e..bcff738 100644 --- a/bootstrap/cache/config.php +++ b/bootstrap/cache/config.php @@ -81,9 +81,9 @@ array ( 'paths' => 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' => array ( @@ -124,9 +124,9 @@ 'timezone' => 'UTC', 'locale' => 'de', 'fallback_locale' => 'en', - 'faker_locale' => 'at_AT', + 'faker_locale' => 'de_AT', 'cipher' => 'AES-256-CBC', - 'key' => 'base64:yRi9h21i7xAkGpeF7JoArovQJU1w6xwczQ6ijpYpJrs=', + 'key' => 'base64:zrVnUcBmUGjEV/EoAKnZCm/1FWplKu79kYBvevE2/ek=', 'previous_keys' => array ( ), @@ -274,8 +274,8 @@ 'file' => array ( 'driver' => 'file', - 'path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/framework/cache/data', - 'lock_path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/framework/cache/data', + 'path' => '/Users/salam/Sites/nutzwerte_fi4/storage/framework/cache/data', + 'lock_path' => '/Users/salam/Sites/nutzwerte_fi4/storage/framework/cache/data', ), 'memcached' => array ( @@ -486,7 +486,7 @@ ), 'policies' => array ( - 'path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Policies', + 'path' => '/Users/salam/Sites/nutzwerte_fi4/app/Policies', 'merge' => true, 'generate' => true, 'methods' => @@ -574,7 +574,7 @@ 'local' => array ( 'driver' => 'local', - 'root' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/app/private', + 'root' => '/Users/salam/Sites/nutzwerte_fi4/storage/app/private', 'serve' => true, 'throw' => false, 'report' => false, @@ -582,7 +582,7 @@ 'public' => array ( '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', 'visibility' => 'public', 'throw' => false, @@ -604,7 +604,7 @@ 'promotion' => array ( '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', 'visibility' => 'public', 'throw' => false, @@ -612,7 +612,7 @@ ), 'links' => 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' => @@ -637,14 +637,14 @@ 'single' => array ( 'driver' => 'single', - 'path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/logs/laravel.log', + 'path' => '/Users/salam/Sites/nutzwerte_fi4/storage/logs/laravel.log', 'level' => 'debug', 'replace_placeholders' => true, ), 'daily' => array ( 'driver' => 'daily', - 'path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/logs/laravel.log', + 'path' => '/Users/salam/Sites/nutzwerte_fi4/storage/logs/laravel.log', 'level' => 'debug', 'days' => 14, 'replace_placeholders' => true, @@ -709,7 +709,7 @@ ), 'emergency' => array ( - 'path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/logs/laravel.log', + 'path' => '/Users/salam/Sites/nutzwerte_fi4/storage/logs/laravel.log', ), ), ), @@ -808,7 +808,7 @@ 'theme' => 'default', 'paths' => array ( - 0 => '/Users/hermanntelser/Sites/nutzwerte_fi4/resources/views/vendor/mail', + 0 => '/Users/salam/Sites/nutzwerte_fi4/resources/views/vendor/mail', ), ), ), @@ -984,7 +984,7 @@ 'lifetime' => 120, 'expire_on_close' => false, 'encrypt' => false, - 'files' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/framework/sessions', + 'files' => '/Users/salam/Sites/nutzwerte_fi4/storage/framework/sessions', 'connection' => NULL, 'table' => 'sessions', 'store' => NULL, @@ -1048,7 +1048,7 @@ ), 'default_filesystem_disk' => 'local', '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', 'file_generation' => array ( @@ -1061,7 +1061,7 @@ 'livewire' => array ( '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', 'lazy_placeholder' => NULL, 'temporary_file_upload' => diff --git a/bootstrap/cache/filament/panels/admin.php b/bootstrap/cache/filament/panels/admin.php index e6d9e65..cc1813b 100644 --- a/bootstrap/cache/filament/panels/admin.php +++ b/bootstrap/cache/filament/panels/admin.php @@ -60,9 +60,9 @@ ), 'clusters' => array ( - '/Users/hermanntelser/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/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Clusters/Verwaltung/VerwaltungCluster.php' => 'App\\Filament\\Clusters\\Verwaltung\\VerwaltungCluster', + '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Administration/AdministrationCluster.php' => 'App\\Filament\\Clusters\\Administration\\AdministrationCluster', + '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Projekte/ProjekteCluster.php' => 'App\\Filament\\Clusters\\Projekte\\ProjekteCluster', + '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Verwaltung/VerwaltungCluster.php' => 'App\\Filament\\Clusters\\Verwaltung\\VerwaltungCluster', ), 'clusteredComponents' => array ( @@ -86,7 +86,7 @@ ), 'clusterDirectories' => array ( - 0 => '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Clusters', + 0 => '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters', ), 'clusterNamespaces' => array ( @@ -94,14 +94,14 @@ ), 'pages' => array ( - '/Users/hermanntelser/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/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Clusters/Verwaltung/VerwaltungCluster.php' => 'App\\Filament\\Clusters\\Verwaltung\\VerwaltungCluster', + '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Administration/AdministrationCluster.php' => 'App\\Filament\\Clusters\\Administration\\AdministrationCluster', + '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Projekte/ProjekteCluster.php' => 'App\\Filament\\Clusters\\Projekte\\ProjekteCluster', + '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Verwaltung/VerwaltungCluster.php' => 'App\\Filament\\Clusters\\Verwaltung\\VerwaltungCluster', 0 => 'Filament\\Pages\\Dashboard', ), 'pageDirectories' => array ( - 0 => '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Pages', + 0 => '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Pages', ), 'pageNamespaces' => array ( @@ -109,22 +109,22 @@ ), 'resources' => array ( - '/Users/hermanntelser/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/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Inhaltsverzeichnis/InhaltsverzeichnisResource.php' => 'App\\Filament\\Resources\\Inhaltsverzeichnis\\InhaltsverzeichnisResource', - '/Users/hermanntelser/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/hermanntelser/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/hermanntelser/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/hermanntelser/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/Auftraggebers/AuftraggeberResource.php' => 'App\\Filament\\Resources\\Auftraggebers\\AuftraggeberResource', + '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Gutachters/GutachterResource.php' => 'App\\Filament\\Resources\\Gutachters\\GutachterResource', + '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Inhaltsverzeichnis/InhaltsverzeichnisResource.php' => 'App\\Filament\\Resources\\Inhaltsverzeichnis\\InhaltsverzeichnisResource', + '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Kontos/KontoResource.php' => 'App\\Filament\\Resources\\Kontos\\KontoResource', + '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Methodes/MethodeResource.php' => 'App\\Filament\\Resources\\Methodes\\MethodeResource', + '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Orientierungs/OrientierungResource.php' => 'App\\Filament\\Resources\\Orientierungs\\OrientierungResource', + '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Permissions/PermissionResource.php' => 'App\\Filament\\Resources\\Permissions\\PermissionResource', + '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Plans/PlanResource.php' => 'App\\Filament\\Resources\\Plans\\PlanResource', + '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Projektes/ProjekteResource.php' => 'App\\Filament\\Resources\\Projektes\\ProjekteResource', + '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Textblocks/TextblockResource.php' => 'App\\Filament\\Resources\\Textblocks\\TextblockResource', + '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Users/UserResource.php' => 'App\\Filament\\Resources\\Users\\UserResource', 0 => 'BezhanSalleh\\FilamentShield\\Resources\\Roles\\RoleResource', ), 'resourceDirectories' => array ( - 0 => '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources', + 0 => '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources', ), 'resourceNamespaces' => array ( @@ -137,7 +137,7 @@ ), 'widgetDirectories' => array ( - 0 => '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Widgets', + 0 => '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Widgets', ), 'widgetNamespaces' => array ( diff --git a/bootstrap/cache/routes-v7.php b/bootstrap/cache/routes-v7.php index 02c928d..8048dd6 100644 --- a/bootstrap/cache/routes-v7.php +++ b/bootstrap/cache/routes-v7.php @@ -511,7 +511,7 @@ app('router')->setCompiledRoutes( array ( 0 => array ( - '_route' => 'generated::CoFWRaLlO7G255uN', + '_route' => 'generated::zqpbCvTHQoq5WxIY', ), 1 => NULL, 2 => @@ -531,7 +531,7 @@ app('router')->setCompiledRoutes( array ( 0 => array ( - '_route' => 'generated::3X1Qk2q0fGHyMZg5', + '_route' => 'generated::g4GN37DOWUCZHuyI', ), 1 => NULL, 2 => @@ -589,7 +589,7 @@ app('router')->setCompiledRoutes( array ( 0 => array ( - '_route' => 'generated::hCzu4xfx7cN0fVJF', + '_route' => 'generated::dlPEM3gdRiuQN3hD', ), 1 => NULL, 2 => @@ -609,7 +609,7 @@ app('router')->setCompiledRoutes( array ( 0 => array ( - '_route' => 'generated::9sUvCpWM3veOCh6S', + '_route' => 'generated::POapuQ1WmiUqo47Z', ), 1 => NULL, 2 => @@ -629,7 +629,7 @@ app('router')->setCompiledRoutes( array ( 0 => array ( - '_route' => 'generated::tuDXNs6Q3uMDHC2Y', + '_route' => 'generated::jWWTYVcaYTDh7eGh', ), 1 => NULL, 2 => @@ -649,7 +649,7 @@ app('router')->setCompiledRoutes( array ( 0 => array ( - '_route' => 'generated::rn93qZtUVnufwbsD', + '_route' => 'generated::pSOEU1x3jfHSGZlL', ), 1 => NULL, 2 => @@ -669,7 +669,7 @@ app('router')->setCompiledRoutes( array ( 0 => array ( - '_route' => 'generated::HGL7gGCkUHGvl0EY', + '_route' => 'generated::1myIUinqVKT2Vqiy', ), 1 => NULL, 2 => @@ -2595,7 +2595,7 @@ app('router')->setCompiledRoutes( 'waitSeconds' => NULL, 'withTrashed' => false, ), - 'generated::CoFWRaLlO7G255uN' => + 'generated::zqpbCvTHQoq5WxIY' => array ( 'methods' => array ( @@ -2607,7 +2607,7 @@ app('router')->setCompiledRoutes( array ( 'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile', 'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile', - 'as' => 'generated::CoFWRaLlO7G255uN', + 'as' => 'generated::zqpbCvTHQoq5WxIY', ), 'fallback' => false, 'defaults' => @@ -2623,7 +2623,7 @@ app('router')->setCompiledRoutes( 'waitSeconds' => NULL, 'withTrashed' => false, ), - 'generated::3X1Qk2q0fGHyMZg5' => + 'generated::g4GN37DOWUCZHuyI' => array ( 'methods' => array ( @@ -2635,7 +2635,7 @@ app('router')->setCompiledRoutes( array ( 'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps', 'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps', - 'as' => 'generated::3X1Qk2q0fGHyMZg5', + 'as' => 'generated::g4GN37DOWUCZHuyI', ), 'fallback' => false, 'defaults' => @@ -2737,7 +2737,7 @@ app('router')->setCompiledRoutes( 'waitSeconds' => NULL, 'withTrashed' => false, ), - 'generated::hCzu4xfx7cN0fVJF' => + 'generated::dlPEM3gdRiuQN3hD' => array ( 'methods' => array ( @@ -2747,7 +2747,7 @@ app('router')->setCompiledRoutes( 'uri' => 'up', 'action' => 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; try { @@ -2762,11 +2762,11 @@ app('router')->setCompiledRoutes( $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, ]), status: $exception ? 500 : 200); }";s:5:"scope";s:54:"Illuminate\\Foundation\\Configuration\\ApplicationBuilder";s:4:"this";N;s:4:"self";s:32:"0000000000000f2c0000000000000000";}}', - 'as' => 'generated::hCzu4xfx7cN0fVJF', + 'as' => 'generated::dlPEM3gdRiuQN3hD', ), 'fallback' => false, 'defaults' => @@ -2782,7 +2782,7 @@ app('router')->setCompiledRoutes( 'waitSeconds' => NULL, 'withTrashed' => false, ), - 'generated::9sUvCpWM3veOCh6S' => + 'generated::POapuQ1WmiUqo47Z' => array ( 'methods' => array ( @@ -2804,7 +2804,7 @@ app('router')->setCompiledRoutes( 'where' => array ( ), - 'as' => 'generated::9sUvCpWM3veOCh6S', + 'as' => 'generated::POapuQ1WmiUqo47Z', ), 'fallback' => false, 'defaults' => @@ -2820,7 +2820,7 @@ app('router')->setCompiledRoutes( 'waitSeconds' => NULL, 'withTrashed' => false, ), - 'generated::tuDXNs6Q3uMDHC2Y' => + 'generated::jWWTYVcaYTDh7eGh' => array ( 'methods' => array ( @@ -2842,7 +2842,7 @@ app('router')->setCompiledRoutes( 'where' => array ( ), - 'as' => 'generated::tuDXNs6Q3uMDHC2Y', + 'as' => 'generated::jWWTYVcaYTDh7eGh', ), 'fallback' => false, 'defaults' => @@ -2858,7 +2858,7 @@ app('router')->setCompiledRoutes( 'waitSeconds' => NULL, 'withTrashed' => false, ), - 'generated::rn93qZtUVnufwbsD' => + 'generated::pSOEU1x3jfHSGZlL' => array ( 'methods' => array ( @@ -2880,7 +2880,7 @@ app('router')->setCompiledRoutes( 'where' => array ( ), - 'as' => 'generated::rn93qZtUVnufwbsD', + 'as' => 'generated::pSOEU1x3jfHSGZlL', ), 'fallback' => false, 'defaults' => @@ -2896,7 +2896,7 @@ app('router')->setCompiledRoutes( 'waitSeconds' => NULL, 'withTrashed' => false, ), - 'generated::HGL7gGCkUHGvl0EY' => + 'generated::1myIUinqVKT2Vqiy' => array ( 'methods' => array ( @@ -2918,7 +2918,7 @@ app('router')->setCompiledRoutes( 'where' => array ( ), - 'as' => 'generated::HGL7gGCkUHGvl0EY', + 'as' => 'generated::1myIUinqVKT2Vqiy', ), 'fallback' => false, 'defaults' => @@ -2944,7 +2944,7 @@ app('router')->setCompiledRoutes( 'uri' => 'storage/{path}', 'action' => 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( $disk, $config, diff --git a/database/migrations/2025_11_23_131442_create_projekte_imports_table.php b/database/migrations/2025_11_23_131442_create_projekte_imports_table.php index c0ccccb..7dba3aa 100644 --- a/database/migrations/2025_11_23_131442_create_projekte_imports_table.php +++ b/database/migrations/2025_11_23_131442_create_projekte_imports_table.php @@ -15,7 +15,8 @@ return new class extends Migration $table->id(); $table->foreignId('projekte_id')->constrained()->cascadeOnDelete()->default(0); $table->string('file')->nullable(); - $table->string('file-type')->nullable(); + $table->text('beschreibung')->nullable(); + $table->string('filetype')->nullable(); $table->string('original_name')->nullable(); $table->timestamps(); }); diff --git a/storage/testdaten/allgemeineTabelle.txt b/storage/testdaten/allgemeineTabelle.txt new file mode 100644 index 0000000..0e30077 --- /dev/null +++ b/storage/testdaten/allgemeineTabelle.txt @@ -0,0 +1,26 @@ +Allgemein | EG | Dachfläche | 52,75 +Allgemein | EG | Freifläche | 116,21 +Allgemein | EG | Freifläche/ Gründach | 207,52 +Allgemein | EG | Gang | 10,09 +Allgemein | EG | Gang | 25,62 +Allgemein | EG | Stiegenhaus | 26,20 +Allgemein | OG1 | Gang | 30,25 +Allgemein | OG1 | Gang | 30,66 +Allgemein | OG1 | Stiegenhaus | 30,19 +Allgemein | OG2 | Lüftungszentrale | 20,19 +Allgemein | UG | Einsp. KFZ | 6,83 +Allgemein | UG | Einspurige Fahrzeuge | 16,74 +Allgemein | UG | Erschließung | 78,68 +Allgemein | UG | ET-Raum | 6,47 +Allgemein | UG | Fahrradraum | 20,58 +Allgemein | UG | Garage | 180,16 +Allgemein | UG | Hausmeisterr. | 5,83 +Allgemein | UG | Heizraum/HT | 11,69 +Allgemein | UG | Müllraum | 13,75 +Allgemein | UG | Stellplatz 22 | 12,04 +Allgemein | UG | Stellplatz 24 | 15,00 +Allgemein | UG | Stellplatz 25 | 15,00 +Allgemein | UG | Stellplatz 11 H | 18,88 +Allgemein | UG | Stiegenhaus | 36,12 +Allgemein | UG | VR | 44,88 +Allgemein | UG | Wasch/Trochenr. | 16,42 \ No newline at end of file diff --git a/storage/testdaten/basisTabelle.txt b/storage/testdaten/basisTabelle.txt new file mode 100644 index 0000000..b9ac887 --- /dev/null +++ b/storage/testdaten/basisTabelle.txt @@ -0,0 +1,144 @@ +APG 01 | UG | Stellplatz+ | 14,25 +APG 02 | UG | Stellplatz | 12,94 +APG 03 | UG | Stellplatz | 13,38 +APG 04 | UG | Stellplatz | 12,94 +APG 05 | UG | Stellplatz | 12,50 +APG 06 | UG | Stellplatz | 12,94 +APG 07 | UG | Stellplatz+ | 14,81 +APG 08 | UG | Stellplatz+ | 14,81 +APG 09 | UG | Stellplatz | 12,94 +APG 10 | UG | Stellplatz | 12,94 +APG 11 | UG | Stellplatz | 12,94 +APG 12 | UG | Stellplatz+ | 14,24 +APG 13 | UG | Stellplatz+ | 13,91 +APG 14 | UG | Stellplatz+ | 14,78 +APG 15 | UG | Stellplatz | 13,02 +APG 16 | UG | Stellplatz | 13,02 +APG 17 | UG | Stellplatz | 13,02 +APG 18 | UG | Stellplatz | 12,59 +APG 19 | UG | Stellplatz+ | 14,59 +W01 | EG | Abstellraum | 3,85 +W01 | EG | Bad | 5,92 +W01 | EG | Gang | 7,97 +W01 | EG | Garten G01_1 | 147,72 +W01 | EG | Garten G01_2 | 7,72 +W01 | EG | Terrasse | 18,16 +W01 | EG | WC | 2,46 +W01 | EG | Wohnen | 25,00 +W01 | EG | Wohnküche | 33,94 +W01 | EG | Zimmer 1 | 13,40 +W01 | EG | Zimmer 2 | 10,66 +W01 | UG | KA01 | 5,01 +W02 | EG | Bad | 3,86 +W02 | EG | Bad | 5,54 +W02 | EG | Gang | 10,42 +W02 | EG | Garten G02 | 37,27 +W02 | EG | Terrasse | 16,25 +W02 | EG | WC | 2,13 +W02 | EG | Wohnküche | 27,43 +W02 | EG | Zimmer 1 | 10,82 +W02 | EG | Zimmer 2 | 11,69 +W02 | UG | KA02 | 5,01 +W03 | EG | Abstellraum | 3,22 +W03 | EG | Bad | 6,51 +W03 | EG | Gang | 11,73 +W03 | EG | Garten G03 | 232,99 +W03 | EG | Terrasse | 22,64 +W03 | EG | WC | 2,46 +W03 | EG | Wohnküche | 35,69 +W03 | EG | Zimmer 1 | 14,70 +W03 | EG | Zimmer 2 | 10,89 +W03 | EG | Zimmer 3 | 11,52 +W03 | UG | KA03 | 5,01 +W04 | OG1 | Abstellraum | 3,09 +W04 | OG1 | Bad | 5,92 +W04 | OG1 | Balkon | 21,98 +W04 | OG1 | Gang | 11,50 +W04 | OG1 | WC | 2,46 +W04 | OG1 | Wohnküche | 33,93 +W04 | OG1 | Zimmer 1 | 10,88 +W04 | OG1 | Zimmer 2 | 10,86 +W04 | OG1 | Zimmer 3 | 14,67 +W04 | UG | KA04 | 5,01 +W05 | OG1 | Bad | 7,19 +W05 | OG1 | Balkon | 11,34 +W05 | OG1 | Wohnküche | 27,83 +W05 | OG1 | Zimmer | 13,62 +W05 | UG | KA05 | 5,01 +W06 | OG1 | Abstellraum | 4,11 +W06 | OG1 | Bad | 5,54 +W06 | OG1 | Balkon | 16,71 +W06 | OG1 | Gang | 10,42 +W06 | OG1 | WC | 2,13 +W06 | OG1 | Wohnküche | 27,43 +W06 | OG1 | Zimmer 1 | 10,97 +W06 | OG1 | Zimmer 2 | 12,08 +W06 | UG | KA06 | 5,13 +W07 | OG1 | Abstellraum | 3,22 +W07 | OG1 | Bad | 6,51 +W07 | OG1 | Balkon | 22,46 +W07 | OG1 | Gang | 11,73 +W07 | OG1 | WC | 2,46 +W07 | OG1 | Wohnküche | 35,68 +W07 | OG1 | Zimmer 1 | 14,70 +W07 | OG1 | Zimmer 2 | 10,89 +W07 | OG1 | Zimmer 3 | 11,52 +W07 | UG | KA07 | 5,13 +W08 | OG2 | Abstellraum | 3,09 +W08 | OG2 | Bad | 5,92 +W08 | OG2 | Balkon | 21,98 +W08 | OG2 | Gang | 11,50 +W08 | OG2 | WC | 2,46 +W08 | OG2 | Wohnküche | 33,93 +W08 | OG2 | Zimmer 1 | 10,88 +W08 | OG2 | Zimmer 2 | 10,86 +W08 | OG2 | Zimmer 3 | 14,67 +W08 | UG | KA08 | 5,13 +W09 | OG2 | Bad | 7,19 +W09 | OG2 | Balkon | 11,34 +W09 | OG2 | Wohnküche | 27,83 +W09 | OG2 | Zimmer | 13,62 +W09 | UG | KA09 | 5,13 +W10 | OG2 | Abstellraum | 4,11 +W10 | OG2 | Bad | 5,54 +W10 | OG2 | Balkon | 16,70 +W10 | OG2 | Gang | 10,42 +W10 | OG2 | WC | 2,13 +W10 | OG2 | Wohnküche | 27,43 +W10 | OG2 | Zimmer 1 | 10,97 +W10 | OG2 | Zimmer 2 | 12,08 +W10 | UG | KA10 | 5,13 +W11 | OG2 | Abstellraum | 3,22 +W11 | OG2 | Bad | 6,51 +W11 | OG2 | Balkon | 22,46 +W11 | OG2 | Gang | 11,73 +W11 | OG2 | WC | 2,46 +W11 | OG2 | Wohnküche | 35,68 +W11 | OG2 | Zimmer 1 | 14,70 +W11 | OG2 | Zimmer 2 | 10,89 +W11 | OG2 | Zimmer 3 | 11,52 +W11 | UG | KA11 | 4,06 +W12 | OG3 | Abstellraum | 3,09 +W12 | OG3 | Bad | 5,92 +W12 | OG3 | Balkon | 21,97 +W12 | OG3 | Gang | 11,50 +W12 | OG3 | WC | 2,46 +W12 | OG3 | Wohnküche | 33,93 +W12 | OG3 | Zimmer 1 | 10,88 +W12 | OG3 | Zimmer 2 | 10,86 +W12 | OG3 | Zimmer 3 | 14,67 +W12 | UG | KA12 | 4,06 +W13 | OG3 | Bad | 7,19 +W13 | OG3 | Balkon | 11,34 +W13 | OG3 | Wohnküche | 27,83 +W13 | OG3 | Zimmer | 13,62 +W13 | UG | KA13 | 4,06 +W14 | OG3 | Abstellraum | 4,11 +W14 | OG3 | Bad | 5,54 +W14 | OG3 | Balkon | 17,20 +W14 | OG3 | Gang | 10,42 +W14 | OG3 | WC | 2,13 +W14 | OG3 | Wohnküche | 27,08 +W14 | OG3 | Zimmer 1 | 10,97 +W14 | OG3 | Zimmer 2 | 12,08 +W14 | UG | KA14 | 4,06 \ No newline at end of file