diff --git a/app/Filament/Resources/Projektes/Pages/EditProjekte.php b/app/Filament/Resources/Projektes/Pages/EditProjekte.php index 9033bba..77f0905 100644 --- a/app/Filament/Resources/Projektes/Pages/EditProjekte.php +++ b/app/Filament/Resources/Projektes/Pages/EditProjekte.php @@ -2,7 +2,6 @@ namespace App\Filament\Resources\Projektes\Pages; -use App\Actions\Helper\LineEndings; use App\Actions\Validation\GutachtenValidation; use App\Filament\Imports\ProjektAllgemeinflaechenImporter; use App\Filament\Imports\ProjektObjekteImDetailImporter; @@ -17,10 +16,10 @@ use Filament\Actions\Action; use Filament\Actions\ActionGroup; use Filament\Actions\DeleteAction; use Filament\Actions\ImportAction; +use Filament\Forms\Components\Radio; use Filament\Forms\Components\Textarea; use Filament\Notifications\Notification; use Filament\Resources\Pages\EditRecord; -use Filament\Schemas\Components\Utilities\Set; use Illuminate\Support\Facades\Auth; use Illuminate\Validation\Rules\File; use Livewire\Attributes\On; @@ -42,27 +41,29 @@ class EditProjekte extends EditRecord */ ActionGroup::make([ Action::make('fix_line_endings') - ->icon('phosphor-pencil') + ->icon('phosphor-file-text') ->modalIcon('phosphor-file-csv') - ->label('Zeilenumbrüche korrigieren') + ->label('Daten direkt hochladen') ->schema([ - Textarea::make('text_in') - ->label('CSV Text in') - ->live() - ->afterStateUpdated(fn (Set $set, $state) => $set('text_out', LineEndings::convert($state))) - ->rows(2), - Textarea::make('text_out') - ->label('CSV Text Out') + Radio::make('tabel_mode') + ->label('Tabellen Art') + ->inline() + ->options([ + 'allgemein' => 'Allgemeinflächen', + 'objekte_in_detail' => 'Objekte im Detail', + ]), + Textarea::make('upload_data') + ->label('Daten hier einfügen') ->extraInputAttributes(['onClick' => 'this.select()']) ->rows(5), - ])->modalSubmitAction(false), + ]), ImportAction::make('import_allgemeinflaechen') ->hidden(fn ($record): bool => $record->bezahlt_am ? false : true) ->importer(ProjektAllgemeinflaechenImporter::class) ->csvDelimiter('|') ->modalIcon('phosphor-file-csv') - ->modalHeading('Allgemeinflächen Import') + ->modalHeading('Dokument Allgemeinflächen Import') ->modalContent(view('filament.pages.actions.import-allgemeinflaechen')) ->modalContentFooter(view('filament.pages.actions.footer-allgemeinflaechen')) ->label('Allgemeinflächen') @@ -107,7 +108,7 @@ class EditProjekte extends EditRecord ->importer(ProjektObjekteImDetailImporter::class) ->csvDelimiter('|') ->modalIcon('phosphor-file-csv') - ->modalHeading('Objekte im Detail Import') + ->modalHeading('Dokument Objekte im Detail Import') ->modalContent(view('filament.pages.actions.import-objektemitraeumen')) ->modalContentFooter(view('filament.pages.actions.footer-allgemeinflaechen')) ->label('Objekte') diff --git a/bootstrap/cache/routes-v7.php b/bootstrap/cache/routes-v7.php index 5d93d7f..f85b3eb 100644 --- a/bootstrap/cache/routes-v7.php +++ b/bootstrap/cache/routes-v7.php @@ -531,7 +531,7 @@ app('router')->setCompiledRoutes( array ( 0 => array ( - '_route' => 'generated::WNjcwX2VFgjs4kja', + '_route' => 'generated::rKcYFYxq66iyTy6k', ), 1 => NULL, 2 => @@ -551,7 +551,7 @@ app('router')->setCompiledRoutes( array ( 0 => array ( - '_route' => 'generated::UlBxQfEwAj7ScGOG', + '_route' => 'generated::yK5CVRfU8mVGKJ7y', ), 1 => NULL, 2 => @@ -609,7 +609,7 @@ app('router')->setCompiledRoutes( array ( 0 => array ( - '_route' => 'generated::PEFi2rK95kWPDG5T', + '_route' => 'generated::OMFkFNUUPqJbGghK', ), 1 => NULL, 2 => @@ -629,7 +629,7 @@ app('router')->setCompiledRoutes( array ( 0 => array ( - '_route' => 'generated::seesHDjYbxvq1j23', + '_route' => 'generated::T2CBeTJ3Y5au3fTB', ), 1 => NULL, 2 => @@ -649,7 +649,7 @@ app('router')->setCompiledRoutes( array ( 0 => array ( - '_route' => 'generated::D5cyzO1IRwQq8Xb7', + '_route' => 'generated::q0ucPBmJRhhJdWJu', ), 1 => NULL, 2 => @@ -669,7 +669,7 @@ app('router')->setCompiledRoutes( array ( 0 => array ( - '_route' => 'generated::SZbqiestpY9Pxa6D', + '_route' => 'generated::W3VAdnMOWclqaIzO', ), 1 => NULL, 2 => @@ -689,7 +689,7 @@ app('router')->setCompiledRoutes( array ( 0 => array ( - '_route' => 'generated::7M9OJZGdWxBN76q5', + '_route' => 'generated::MSyQneC8KkRUCozm', ), 1 => NULL, 2 => @@ -2757,7 +2757,7 @@ app('router')->setCompiledRoutes( 'waitSeconds' => NULL, 'withTrashed' => false, ), - 'generated::WNjcwX2VFgjs4kja' => + 'generated::rKcYFYxq66iyTy6k' => array ( 'methods' => array ( @@ -2769,7 +2769,7 @@ app('router')->setCompiledRoutes( array ( 'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile', 'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile', - 'as' => 'generated::WNjcwX2VFgjs4kja', + 'as' => 'generated::rKcYFYxq66iyTy6k', ), 'fallback' => false, 'defaults' => @@ -2785,7 +2785,7 @@ app('router')->setCompiledRoutes( 'waitSeconds' => NULL, 'withTrashed' => false, ), - 'generated::UlBxQfEwAj7ScGOG' => + 'generated::yK5CVRfU8mVGKJ7y' => array ( 'methods' => array ( @@ -2797,7 +2797,7 @@ app('router')->setCompiledRoutes( array ( 'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps', 'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps', - 'as' => 'generated::UlBxQfEwAj7ScGOG', + 'as' => 'generated::yK5CVRfU8mVGKJ7y', ), 'fallback' => false, 'defaults' => @@ -2899,7 +2899,7 @@ app('router')->setCompiledRoutes( 'waitSeconds' => NULL, 'withTrashed' => false, ), - 'generated::PEFi2rK95kWPDG5T' => + 'generated::OMFkFNUUPqJbGghK' => array ( 'methods' => array ( @@ -2928,7 +2928,7 @@ app('router')->setCompiledRoutes( \'exception\' => $exception, ]), status: $exception ? 500 : 200); }";s:5:"scope";s:54:"Illuminate\\Foundation\\Configuration\\ApplicationBuilder";s:4:"this";N;s:4:"self";s:32:"000000000000103e0000000000000000";}}', - 'as' => 'generated::PEFi2rK95kWPDG5T', + 'as' => 'generated::OMFkFNUUPqJbGghK', ), 'fallback' => false, 'defaults' => @@ -2944,7 +2944,7 @@ app('router')->setCompiledRoutes( 'waitSeconds' => NULL, 'withTrashed' => false, ), - 'generated::seesHDjYbxvq1j23' => + 'generated::T2CBeTJ3Y5au3fTB' => array ( 'methods' => array ( @@ -2966,7 +2966,7 @@ app('router')->setCompiledRoutes( 'where' => array ( ), - 'as' => 'generated::seesHDjYbxvq1j23', + 'as' => 'generated::T2CBeTJ3Y5au3fTB', ), 'fallback' => false, 'defaults' => @@ -2982,7 +2982,7 @@ app('router')->setCompiledRoutes( 'waitSeconds' => NULL, 'withTrashed' => false, ), - 'generated::D5cyzO1IRwQq8Xb7' => + 'generated::q0ucPBmJRhhJdWJu' => array ( 'methods' => array ( @@ -3004,7 +3004,7 @@ app('router')->setCompiledRoutes( 'where' => array ( ), - 'as' => 'generated::D5cyzO1IRwQq8Xb7', + 'as' => 'generated::q0ucPBmJRhhJdWJu', ), 'fallback' => false, 'defaults' => @@ -3020,7 +3020,7 @@ app('router')->setCompiledRoutes( 'waitSeconds' => NULL, 'withTrashed' => false, ), - 'generated::SZbqiestpY9Pxa6D' => + 'generated::W3VAdnMOWclqaIzO' => array ( 'methods' => array ( @@ -3042,7 +3042,7 @@ app('router')->setCompiledRoutes( 'where' => array ( ), - 'as' => 'generated::SZbqiestpY9Pxa6D', + 'as' => 'generated::W3VAdnMOWclqaIzO', ), 'fallback' => false, 'defaults' => @@ -3058,7 +3058,7 @@ app('router')->setCompiledRoutes( 'waitSeconds' => NULL, 'withTrashed' => false, ), - 'generated::7M9OJZGdWxBN76q5' => + 'generated::MSyQneC8KkRUCozm' => array ( 'methods' => array ( @@ -3080,7 +3080,7 @@ app('router')->setCompiledRoutes( 'where' => array ( ), - 'as' => 'generated::7M9OJZGdWxBN76q5', + 'as' => 'generated::MSyQneC8KkRUCozm', ), 'fallback' => false, 'defaults' => diff --git a/composer.lock b/composer.lock index 35a0da7..b735693 100644 --- a/composer.lock +++ b/composer.lock @@ -10750,16 +10750,16 @@ }, { "name": "pestphp/pest", - "version": "v4.5.0", + "version": "v4.6.0", "source": { "type": "git", "url": "https://github.com/pestphp/pest.git", - "reference": "13c322bab3ac4496f89279c0b6ac31b89ce8aa95" + "reference": "4e03cd3edbae9bb9e024660a6380ebb5832a6df9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest/zipball/13c322bab3ac4496f89279c0b6ac31b89ce8aa95", - "reference": "13c322bab3ac4496f89279c0b6ac31b89ce8aa95", + "url": "https://api.github.com/repos/pestphp/pest/zipball/4e03cd3edbae9bb9e024660a6380ebb5832a6df9", + "reference": "4e03cd3edbae9bb9e024660a6380ebb5832a6df9", "shasum": "" }, "require": { @@ -10851,7 +10851,7 @@ ], "support": { "issues": "https://github.com/pestphp/pest/issues", - "source": "https://github.com/pestphp/pest/tree/v4.5.0" + "source": "https://github.com/pestphp/pest/tree/v4.6.0" }, "funding": [ { @@ -10863,7 +10863,7 @@ "type": "github" } ], - "time": "2026-04-10T19:51:40+00:00" + "time": "2026-04-14T17:23:26+00:00" }, { "name": "pestphp/pest-plugin",