initial commit

This commit is contained in:
I-Fun
2026-04-01 08:04:56 +07:00
commit e09c8a5fa9
111 changed files with 18022 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
declare(strict_types=1);
namespace App\Enums;
enum ClientStatus: string
{
case Active = 'active';
case Inactive = 'inactive';
case Prospect = 'prospect';
public function label(): string
{
return match($this) {
self::Active => 'Active',
self::Inactive => 'Inactive',
self::Prospect => 'Prospect',
};
}
public function badgeClass(): string
{
return match($this) {
self::Active => 'badge-success',
self::Inactive => 'badge-error',
self::Prospect => 'badge-warning',
};
}
}

View File

@@ -0,0 +1,63 @@
<?php
declare(strict_types=1);
namespace App\Enums;
enum ContentStatus: string
{
case Drafting = 'drafting';
case Filming = 'filming';
case Editing = 'editing';
case Review = 'review';
case Posted = 'posted';
case Archived = 'archived';
public function label(): string
{
return match($this) {
self::Drafting => 'Drafting',
self::Filming => 'Filming',
self::Editing => 'Editing',
self::Review => 'Review',
self::Posted => 'Posted',
self::Archived => 'Archived',
};
}
public function icon(): string
{
return match($this) {
self::Drafting => '✏️',
self::Filming => '🎬',
self::Editing => '✂️',
self::Review => '👁️',
self::Posted => '✅',
self::Archived => '📦',
};
}
public function colorClass(): string
{
return match($this) {
self::Drafting => 'bg-base-200',
self::Filming => 'bg-warning/20',
self::Editing => 'bg-info/20',
self::Review => 'bg-secondary/20',
self::Posted => 'bg-success/20',
self::Archived => 'bg-neutral/20',
};
}
public function badgeClass(): string
{
return match($this) {
self::Drafting => 'badge-ghost',
self::Filming => 'badge-warning',
self::Editing => 'badge-info',
self::Review => 'badge-secondary',
self::Posted => 'badge-success',
self::Archived => 'badge-neutral',
};
}
}

33
app/Enums/EventStatus.php Normal file
View File

@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
namespace App\Enums;
enum EventStatus: string
{
case Pending = 'pending';
case InProgress = 'in_progress';
case Completed = 'completed';
case Cancelled = 'cancelled';
public function label(): string
{
return match($this) {
self::Pending => 'Pending',
self::InProgress => 'In Progress',
self::Completed => 'Completed',
self::Cancelled => 'Cancelled',
};
}
public function badgeClass(): string
{
return match($this) {
self::Pending => 'badge-warning',
self::InProgress => 'badge-info',
self::Completed => 'badge-success',
self::Cancelled => 'badge-error',
};
}
}

View File

@@ -0,0 +1,36 @@
<?php
declare(strict_types=1);
namespace App\Enums;
enum InvoiceStatus: string
{
case Draft = 'draft';
case Sent = 'sent';
case Paid = 'paid';
case Overdue = 'overdue';
case Cancelled = 'cancelled';
public function label(): string
{
return match($this) {
self::Draft => 'Draft',
self::Sent => 'Sent',
self::Paid => 'Paid',
self::Overdue => 'Overdue',
self::Cancelled => 'Cancelled',
};
}
public function badgeClass(): string
{
return match($this) {
self::Draft => 'badge-ghost',
self::Sent => 'badge-info',
self::Paid => 'badge-success',
self::Overdue => 'badge-error',
self::Cancelled => 'badge-neutral',
};
}
}