Finanzverwaltung und Saison-System
Neues Einnahmen-/Ausgaben-Modul mit Kategorie-Filter, Monats-Charts und Saison-basierter Filterung. Saison-Verwaltung im Admin-Bereich mit Möglichkeit zum Wechsel der aktuellen Saison. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
27
app/Enums/FinanceCategory.php
Normal file
27
app/Enums/FinanceCategory.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum FinanceCategory: string
|
||||
{
|
||||
case Catering = 'catering';
|
||||
case Sponsoring = 'sponsoring';
|
||||
case Membership = 'membership';
|
||||
case TournamentFees = 'tournament_fees';
|
||||
case Equipment = 'equipment';
|
||||
case Transport = 'transport';
|
||||
case VenueRental = 'venue_rental';
|
||||
case TrainingMaterial = 'training_material';
|
||||
case Events = 'events';
|
||||
case Other = 'other';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return __("ui.enums.finance_category.{$this->value}");
|
||||
}
|
||||
|
||||
public static function values(): array
|
||||
{
|
||||
return array_column(self::cases(), 'value');
|
||||
}
|
||||
}
|
||||
19
app/Enums/FinanceType.php
Normal file
19
app/Enums/FinanceType.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum FinanceType: string
|
||||
{
|
||||
case Income = 'income';
|
||||
case Expense = 'expense';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return __("ui.enums.finance_type.{$this->value}");
|
||||
}
|
||||
|
||||
public static function values(): array
|
||||
{
|
||||
return array_column(self::cases(), 'value');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user