wip
This commit is contained in:
1 parent
003b2c7372
commit
717a993bd6
9 files changed
+37
-58
No files matched your search
+7
-1
@@ -6,7 +6,13 @@ LARVEL
|
|||||||
2. https://tenancy-v4.pages.dev/introduction/
|
2. https://tenancy-v4.pages.dev/introduction/
|
||||||
3.
|
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
|
1. https://filamentphp.com/plugins/maartenpaauw-cashier-billing-provider
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ class Platzhalter
|
|||||||
$platzhalter['###OFFIZIELLER_NAME###'] = PdfGenerator::$projekt->offizieller_name;
|
$platzhalter['###OFFIZIELLER_NAME###'] = PdfGenerator::$projekt->offizieller_name;
|
||||||
$platzhalter['###ORT###'] = PdfGenerator::$projekt->ort;
|
$platzhalter['###ORT###'] = PdfGenerator::$projekt->ort;
|
||||||
$platzhalter['###DATUM###'] = PdfGenerator::$projekt->erstellung;
|
$platzhalter['###DATUM###'] = PdfGenerator::$projekt->erstellung;
|
||||||
|
$platzhalter['###GUTACHTER###'] = PdfGenerator::$gutachter->company;
|
||||||
|
$platzhalter['###AUFTRAGGEBER###'] = PdfGenerator::$auftraggeber->company;
|
||||||
|
|
||||||
return $platzhalter;
|
return $platzhalter;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,9 @@ class AuftraggeberForm
|
|||||||
->schema([
|
->schema([
|
||||||
TextInput::make('company')
|
TextInput::make('company')
|
||||||
->label('Firma')
|
->label('Firma')
|
||||||
|
->belowContent([
|
||||||
|
'Kann als Platzhalter "###AUFTRAGGEBER###" im Gutachten verwendet werden.',
|
||||||
|
])
|
||||||
->required(),
|
->required(),
|
||||||
TextInput::make('title')
|
TextInput::make('title')
|
||||||
->label('Titel'),
|
->label('Titel'),
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ class GutachterForm
|
|||||||
->schema([
|
->schema([
|
||||||
TextInput::make('company')
|
TextInput::make('company')
|
||||||
->belowContent([
|
->belowContent([
|
||||||
'Kann mit "###FIRMA###" im Gutachten verwendet werden.',
|
'Kann als Platzhalter "###GUTACHTER###" im Gutachten verwendet werden.',
|
||||||
])
|
])
|
||||||
->label('Firma')
|
->label('Firma')
|
||||||
->required(),
|
->required(),
|
||||||
@@ -118,10 +118,8 @@ class GutachterForm
|
|||||||
'#e12afb' => 'Fuchisa',
|
'#e12afb' => 'Fuchisa',
|
||||||
'#f6339a' => 'Rosa',
|
'#f6339a' => 'Rosa',
|
||||||
'#ff2056' => 'Rose',
|
'#ff2056' => 'Rose',
|
||||||
'#a6a09b' => 'Steingrau Hell',
|
'#a6a09b' => 'Hellgrau',
|
||||||
'#44403b' => 'Steingrau Dunkel',
|
'#314158' => 'Dunkelgrau',
|
||||||
'#cad5e2' => 'Schiefer Hell',
|
|
||||||
'#314158' => 'Schiefer Dunkel',
|
|
||||||
])
|
])
|
||||||
->label('Gutachter am Deckblatt')
|
->label('Gutachter am Deckblatt')
|
||||||
->afterLabel([ShowHelp::show('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|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;
|
protected static ?int $navigationSort = 5;
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace App\Providers;
|
namespace App\Providers;
|
||||||
|
|
||||||
|
use BezhanSalleh\FilamentShield\Commands;
|
||||||
|
use BezhanSalleh\FilamentShield\Facades\FilamentShield;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use Filament\Support\Colors\Color;
|
use Filament\Support\Colors\Color;
|
||||||
use Filament\Support\Facades\FilamentColor;
|
use Filament\Support\Facades\FilamentColor;
|
||||||
@@ -27,6 +29,16 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
{
|
{
|
||||||
Carbon::setLocale(app()->getLocale());
|
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([
|
FilamentColor::register([
|
||||||
'danger' => Color::Red,
|
'danger' => Color::Red,
|
||||||
'gray' => Color::Zinc,
|
'gray' => Color::Zinc,
|
||||||
|
|||||||
@@ -2,17 +2,10 @@
|
|||||||
|
|
||||||
namespace Database\Seeders;
|
namespace Database\Seeders;
|
||||||
|
|
||||||
use App\Models\Auftraggeber;
|
|
||||||
use App\Models\Gutachter;
|
|
||||||
use App\Models\Konto;
|
|
||||||
use App\Models\User;
|
|
||||||
use Illuminate\Database\Seeder;
|
use Illuminate\Database\Seeder;
|
||||||
|
|
||||||
class DatabaseSeeder extends Seeder
|
class DatabaseSeeder extends Seeder
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* Seed the application's database.
|
|
||||||
*/
|
|
||||||
public function run(): void
|
public function run(): void
|
||||||
{
|
{
|
||||||
$this->call([
|
$this->call([
|
||||||
@@ -25,22 +18,14 @@ class DatabaseSeeder extends Seeder
|
|||||||
KontoSeeder::class,
|
KontoSeeder::class,
|
||||||
GutachterSeeder::class,
|
GutachterSeeder::class,
|
||||||
AuftraggeberSeeder::class,
|
AuftraggeberSeeder::class,
|
||||||
RolesAndPermissionsSeeder::class,
|
|
||||||
HelperSeeder::class,
|
HelperSeeder::class,
|
||||||
TestProjektSeeder::class,
|
RolesAndPermissionsSeeder::class,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// if (app()->isLocal()) {
|
if (app()->isLocal()) {
|
||||||
// Konto::factory()->count(10)->create();
|
$this->call([
|
||||||
// Gutachter::factory()->count(30)->create();
|
TestProjektSeeder::class,
|
||||||
// Auftraggeber::factory()->count(30)->create();
|
]);
|
||||||
// }
|
}
|
||||||
|
|
||||||
// if (app()->isLocal()) {
|
|
||||||
// $this->call([
|
|
||||||
// TestProjektSeeder::class,
|
|
||||||
// ]);
|
|
||||||
// User::factory()->count(40)->create();
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -16,6 +16,7 @@ class RolesAndPermissionsSeeder extends Seeder
|
|||||||
['name' => 'gutachter', 'guard_name' => 'web'],
|
['name' => 'gutachter', 'guard_name' => 'web'],
|
||||||
['name' => 'super_admin', 'guard_name' => 'web'],
|
['name' => 'super_admin', 'guard_name' => 'web'],
|
||||||
['name' => 'konto_switch', 'guard_name' => 'web'],
|
['name' => 'konto_switch', 'guard_name' => 'web'],
|
||||||
|
['name' => 'admin', 'guard_name' => 'web'],
|
||||||
],
|
],
|
||||||
['name']
|
['name']
|
||||||
);
|
);
|
||||||
@@ -33,30 +34,5 @@ class RolesAndPermissionsSeeder extends Seeder
|
|||||||
$user->assignRole('super_admin');
|
$user->assignRole('super_admin');
|
||||||
$user->assignRole('konto_switch');
|
$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');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -61,16 +61,13 @@
|
|||||||
.tiptap {
|
.tiptap {
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
white-space: -moz-pre-wrap;
|
white-space: -moz-pre-wrap;
|
||||||
/* For Firefox compatibility */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tiptap p {
|
.tiptap p {
|
||||||
padding: 0.5mm 1mm;
|
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
font-family: Verdana, Tahoma, sans-serif;
|
font-family: Verdana, Tahoma, sans-serif;
|
||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
line-height: 17pt !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tiptap a {
|
.tiptap a {
|
||||||
|
|||||||
Reference in new issue
Block a user