auftraggeber resource

This commit is contained in:
salam committed 2025-09-23 22:54:56 +02:00
1 parent 527739b996
commit 11cb9b03f5
13 files changed
+190 -26

No files matched your search

@@ -0,0 +1,65 @@
<?php
namespace App\Filament\Resources\Auftraggebers;
use App\Filament\Clusters\Verwaltung\VerwaltungCluster;
use App\Filament\Resources\Auftraggebers\Pages\CreateAuftraggeber;
use App\Filament\Resources\Auftraggebers\Pages\EditAuftraggeber;
use App\Filament\Resources\Auftraggebers\Pages\ListAuftraggebers;
use App\Filament\Resources\Auftraggebers\Schemas\AuftraggeberForm;
use App\Filament\Resources\Auftraggebers\Tables\AuftraggebersTable;
use App\Models\Auftraggeber;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Tables\Table;
class AuftraggeberResource extends Resource
{
protected static ?string $model = Auftraggeber::class;
protected static ?string $cluster = VerwaltungCluster::class;
protected static ?int $navigationSort = 3;
protected static string|BackedEnum|null $navigationIcon = 'lucide-square-user';
protected static ?string $recordTitleAttribute = 'name';
protected static ?string $navigationLabel = 'Auftraggeber';
protected static ?string $modelLabel = 'Auftraggeber';
protected static ?string $pluralModelLabel = 'Auftraggeber';
public static function form(Schema $schema): Schema
{
return AuftraggeberForm::configure($schema);
}
public static function table(Table $table): Table
{
return AuftraggebersTable::configure($table);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => ListAuftraggebers::route('/'),
'create' => CreateAuftraggeber::route('/create'),
'edit' => EditAuftraggeber::route('/{record}/edit'),
];
}
public static function getNavigationBadge(): ?string
{
return parent::getEloquentQuery()->count();
}
}
@@ -0,0 +1,11 @@
<?php
namespace App\Filament\Resources\Auftraggebers\Pages;
use App\Filament\Resources\Auftraggebers\AuftraggeberResource;
use Filament\Resources\Pages\CreateRecord;
class CreateAuftraggeber extends CreateRecord
{
protected static string $resource = AuftraggeberResource::class;
}
@@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\Auftraggebers\Pages;
use App\Filament\Resources\Auftraggebers\AuftraggeberResource;
use Filament\Actions\DeleteAction;
use Filament\Resources\Pages\EditRecord;
class EditAuftraggeber extends EditRecord
{
protected static string $resource = AuftraggeberResource::class;
protected function getHeaderActions(): array
{
return [
DeleteAction::make(),
];
}
}
@@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\Auftraggebers\Pages;
use App\Filament\Resources\Auftraggebers\AuftraggeberResource;
use Filament\Actions\CreateAction;
use Filament\Resources\Pages\ListRecords;
class ListAuftraggebers extends ListRecords
{
protected static string $resource = AuftraggeberResource::class;
protected function getHeaderActions(): array
{
return [
CreateAction::make(),
];
}
}
@@ -0,0 +1,16 @@
<?php
namespace App\Filament\Resources\Auftraggebers\Schemas;
use Filament\Schemas\Schema;
class AuftraggeberForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
//
]);
}
}
@@ -0,0 +1,30 @@
<?php
namespace App\Filament\Resources\Auftraggebers\Tables;
use Filament\Actions\BulkActionGroup;
use Filament\Actions\DeleteBulkAction;
use Filament\Actions\EditAction;
use Filament\Tables\Table;
class AuftraggebersTable
{
public static function configure(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->recordActions([
EditAction::make(),
])
->toolbarActions([
BulkActionGroup::make([
DeleteBulkAction::make(),
]),
]);
}
}
@@ -24,7 +24,7 @@ class GutachterResource extends Resource
protected static ?string $cluster = VerwaltungCluster::class; protected static ?string $cluster = VerwaltungCluster::class;
protected static string|BackedEnum|null $navigationIcon = 'lucide-square-user'; protected static string|BackedEnum|null $navigationIcon = 'lucide-stamp';
protected static ?string $recordTitleAttribute = 'name'; protected static ?string $recordTitleAttribute = 'name';
@@ -19,7 +19,7 @@ class KontoResource extends Resource
protected static ?int $navigationSort = 1; protected static ?int $navigationSort = 1;
protected static string|BackedEnum|null $navigationIcon = 'lucide-circle-user-round'; protected static string|BackedEnum|null $navigationIcon = 'lucide-landmark';
protected static ?string $cluster = VerwaltungCluster::class; protected static ?string $cluster = VerwaltungCluster::class;
@@ -70,7 +70,7 @@ class KontosTable
->recordActions([ ->recordActions([
EditAction::make(), EditAction::make(),
Action::make('Laden') Action::make('Laden')
->icon('heroicon-m-bolt') ->icon('heroicon-o-credit-card')
->color('warning') ->color('warning')
->schema([ ->schema([
TextInput::make('subject')->required(), TextInput::make('subject')->required(),
@@ -12,15 +12,16 @@ use App\Models\Projekte;
use BackedEnum; use BackedEnum;
use Filament\Resources\Resource; use Filament\Resources\Resource;
use Filament\Schemas\Schema; use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Table; use Filament\Tables\Table;
class ProjekteResource extends Resource class ProjekteResource extends Resource
{ {
protected static ?string $model = Projekte::class; protected static ?string $model = Projekte::class;
protected static string|BackedEnum|null $navigationIcon = 'lucide-drafting-compass'; protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
protected static ?string $cluster = ProjekteCluster::class; // protected static ?string $cluster = ProjekteCluster::class;
protected static ?string $recordTitleAttribute = 'interner_name'; protected static ?string $recordTitleAttribute = 'interner_name';
@@ -20,13 +20,13 @@ class UserResource extends Resource
{ {
protected static ?string $model = User::class; protected static ?string $model = User::class;
protected static ?int $navigationSort = 3; protected static ?int $navigationSort = 4;
protected static ?string $cluster = VerwaltungCluster::class; protected static ?string $cluster = VerwaltungCluster::class;
// protected static bool $shouldSkipAuthorization = true; // protected static bool $shouldSkipAuthorization = true;
protected static string|BackedEnum|null $navigationIcon = 'lucide-user'; protected static string|BackedEnum|null $navigationIcon = 'lucide-user-pen';
protected static ?string $recordTitleAttribute = 'name'; protected static ?string $recordTitleAttribute = 'name';
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Auftraggeber extends Model
{
//
}
+12 -19
View File
@@ -14,34 +14,27 @@
<x-slot name="description"> <x-slot name="description">
ist ein Gutachten im österreichischen Wohnungseigentumsrecht ist ein Gutachten im österreichischen Wohnungseigentumsrecht
</x-slot> </x-slot>
<p class="indent-5"> <p class="indent-5 pb-3">
Es wird das Verhältnis der einzelnen Eigentumsanteile innerhalb eines Gebäudes bestimmt. Es wird das Verhältnis der einzelnen Eigentumsanteile innerhalb eines Gebäudes bestimmt.
</p>
<p class="indent-5 pb-3">
Sie bildet die Grundlage für die Berechnung der Betriebs- und Instandhaltungskosten sowie für Sie bildet die Grundlage für die Berechnung der Betriebs- und Instandhaltungskosten sowie für
das das
Stimmrecht der Miteigentümer und ist für die Begründung von Wohnungseigentum notwendig. Stimmrecht der Miteigentümer und ist für die Begründung von Wohnungseigentum notwendig.
<x-filament::link href="/nutzwerte" icon-position="after" icon="lucide-external-link">
Lesen Sie mehr über die Nutzwertberechnung.
</x-filament::link>
</p> </p>
</x-filament::section> <x-filament::link href="/nutzwerte" icon-position="after" icon="lucide-external-link">
Über die Nutzwertberechnung.
<x-filament::section icon="heroicon-m-calendar-date-range"> </x-filament::link>
<x-slot name="heading"> <p class="indent-5 py-3">
<x-title> Wie Ihnen dieses Programm bei der Nutzwertberechnung zur Hand gehen kann, erfahren sie hier.
Dieses Programm </p>
</x-title>
</x-slot>
<x-slot name="description">
importiert die Daten aus einem Zeichenprogramm als Grundlage.
</x-slot>
Wie Ihnen dieses Programm bei der Nutzwertberechnung zur Hand gehen kann, erfahren sie hier.
<x-filament::link href="/dieses-programm" icon-position="after" icon="lucide-external-link"> <x-filament::link href="/dieses-programm" icon-position="after" icon="lucide-external-link">
Über dieses Programm Über dieses Programm
</x-filament::link> </x-filament::link>
<br>
</x-filament::section> <br>
<x-filament::section>
@include('components.login') @include('components.login')
<br>
</x-filament::section> </x-filament::section>
</div> </div>