This commit is contained in:
salam committed 2025-11-19 07:37:25 +01:00
1 parent 003b2c7372
commit 717a993bd6
9 files changed
+37 -58

No files matched your search

+7 -1
View File
@@ -6,7 +6,13 @@ LARVEL
2. https://tenancy-v4.pages.dev/introduction/
3.
FILAMENT 7. https://filamentphp.com/plugins/ysfkaya-phone-input 2. https://github.com/awcodes/light-switch 3. https://github.com/bezhanSalleh/filament-shield 4. https://github.com/mallardduck/blade-lucide-icons 5. https://github.com/spatie/laravel-login-link 6. https://packagist.org/packages/swisnl/filament-backgrounds
FILAMENT
7. https://filamentphp.com/plugins/ysfkaya-phone-input
2. https://github.com/awcodes/light-switch
3. https://github.com/bezhanSalleh/filament-shield
4. https://github.com/mallardduck/blade-lucide-icons
5. https://github.com/spatie/laravel-login-link
6. https://packagist.org/packages/swisnl/filament-backgrounds
1. https://filamentphp.com/plugins/maartenpaauw-cashier-billing-provider
@@ -14,6 +14,8 @@ class Platzhalter
$platzhalter['###OFFIZIELLER_NAME###'] = PdfGenerator::$projekt->offizieller_name;
$platzhalter['###ORT###'] = PdfGenerator::$projekt->ort;
$platzhalter['###DATUM###'] = PdfGenerator::$projekt->erstellung;
$platzhalter['###GUTACHTER###'] = PdfGenerator::$gutachter->company;
$platzhalter['###AUFTRAGGEBER###'] = PdfGenerator::$auftraggeber->company;
return $platzhalter;
}
@@ -27,6 +27,9 @@ class AuftraggeberForm
->schema([
TextInput::make('company')
->label('Firma')
->belowContent([
'Kann als Platzhalter "###AUFTRAGGEBER###" im Gutachten verwendet werden.',
])
->required(),
TextInput::make('title')
->label('Titel'),
@@ -30,7 +30,7 @@ class GutachterForm
->schema([
TextInput::make('company')
->belowContent([
'Kann mit "###FIRMA###" im Gutachten verwendet werden.',
'Kann als Platzhalter "###GUTACHTER###" im Gutachten verwendet werden.',
])
->label('Firma')
->required(),
@@ -118,10 +118,8 @@ class GutachterForm
'#e12afb' => 'Fuchisa',
'#f6339a' => 'Rosa',
'#ff2056' => 'Rose',
'#a6a09b' => 'Steingrau Hell',
'#44403b' => 'Steingrau Dunkel',
'#cad5e2' => 'Schiefer Hell',
'#314158' => 'Schiefer Dunkel',
'#a6a09b' => 'Hellgrau',
'#314158' => 'Dunkelgrau',
])
->label('Gutachter am Deckblatt')
->afterLabel([ShowHelp::show('gutachter_am_deckblatt')])
@@ -23,11 +23,11 @@ class HelpResource extends Resource
protected static string|BackedEnum|null $navigationIcon = 'phosphor-question';
protected static ?string $navigationLabel = 'Allgemein';
protected static ?string $navigationLabel = 'Hilfe';
protected static ?string $modelLabel = 'Allgemein';
protected static ?string $modelLabel = 'Hilfe';
protected static ?string $pluralModelLabel = 'Allgemein';
protected static ?string $pluralModelLabel = 'Hilfen';
protected static ?int $navigationSort = 5;
+12
View File
@@ -2,6 +2,8 @@
namespace App\Providers;
use BezhanSalleh\FilamentShield\Commands;
use BezhanSalleh\FilamentShield\Facades\FilamentShield;
use Carbon\Carbon;
use Filament\Support\Colors\Color;
use Filament\Support\Facades\FilamentColor;
@@ -27,6 +29,16 @@ class AppServiceProvider extends ServiceProvider
{
Carbon::setLocale(app()->getLocale());
// individually prohibit commands
// Commands\GenerateCommand::prohibit($this->app->isProduction());
// Commands\InstallCommand::prohibit($this->app->isProduction());
// Commands\PublishCommand::prohibit($this->app->isProduction());
// Commands\SetupCommand::prohibit($this->app->isProduction());
// Commands\SeederCommand::prohibit($this->app->isProduction());
// Commands\SuperAdminCommand::prohibit($this->app->isProduction());
// or prohibit the above commands all at once
FilamentShield::prohibitDestructiveCommands($this->app->isProduction());
FilamentColor::register([
'danger' => Color::Red,
'gray' => Color::Zinc,
+6 -21
View File
@@ -2,17 +2,10 @@
namespace Database\Seeders;
use App\Models\Auftraggeber;
use App\Models\Gutachter;
use App\Models\Konto;
use App\Models\User;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
$this->call([
@@ -25,22 +18,14 @@ class DatabaseSeeder extends Seeder
KontoSeeder::class,
GutachterSeeder::class,
AuftraggeberSeeder::class,
RolesAndPermissionsSeeder::class,
HelperSeeder::class,
TestProjektSeeder::class,
RolesAndPermissionsSeeder::class,
]);
// if (app()->isLocal()) {
// Konto::factory()->count(10)->create();
// Gutachter::factory()->count(30)->create();
// Auftraggeber::factory()->count(30)->create();
// }
// if (app()->isLocal()) {
// $this->call([
// TestProjektSeeder::class,
// ]);
// User::factory()->count(40)->create();
// }
if (app()->isLocal()) {
$this->call([
TestProjektSeeder::class,
]);
}
}
}
+1 -25
View File
@@ -16,6 +16,7 @@ class RolesAndPermissionsSeeder extends Seeder
['name' => 'gutachter', 'guard_name' => 'web'],
['name' => 'super_admin', 'guard_name' => 'web'],
['name' => 'konto_switch', 'guard_name' => 'web'],
['name' => 'admin', 'guard_name' => 'web'],
],
['name']
);
@@ -33,30 +34,5 @@ class RolesAndPermissionsSeeder extends Seeder
$user->assignRole('super_admin');
$user->assignRole('konto_switch');
if (app()->isLocal()) {
$user = User::factory()->create([
'konto_id' => '1',
'gender' => 'Frau',
'name' => 'Yvonne Bormes',
'email' => 'yvonne.bormes@ztkammer.at',
'password' => Hash::make('yvonne'),
'agb_akzeptiert' => true,
'app_verified_at' => now(),
'email_verified_at' => now(),
]);
$user->assignRole('gutachter');
$user = User::factory()->create([
'konto_id' => '2',
'gender' => 'Frau',
'name' => 'Daniela Mandlez',
'email' => 'daniela.mandkez@kammerwest.at',
'password' => Hash::make('daniela'),
'agb_akzeptiert' => true,
'app_verified_at' => now(),
'email_verified_at' => now(),
]);
$user->assignRole('gutachter');
}
}
}
-3
View File
@@ -61,16 +61,13 @@
.tiptap {
white-space: pre-wrap;
white-space: -moz-pre-wrap;
/* For Firefox compatibility */
}
.tiptap p {
padding: 0.5mm 1mm;
margin: 1em 0;
font-family: Verdana, Tahoma, sans-serif;
font-size: 10pt;
font-weight: normal;
line-height: 17pt !important;
}
.tiptap a {