-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Families * wip * Add /admin prefix to routes * rename memberships to members * de-dupe tables across surfaces * wip * wip * detail card redesign (im getting off topic) * wip * wip * wip * wip * start tests * wip * Apply fixes from StyleCI (#65) Co-authored-by: StyleCI Bot <[email protected]> * fix ? * fix * fix tests * update deps * add tests * add tests * add testz * wip - stripe payouts, user password changes * change enums to string backed for DB * wip - filament enum badges * fix long descriptions * wip * wip * wip * wip * wip * wip * wip * wip * wip --------- Co-authored-by: StyleCI Bot <[email protected]>
- Loading branch information
1 parent
8441703
commit 1f67358
Showing
255 changed files
with
4,197 additions
and
2,172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace App\Enums; | ||
use Filament\Support\Contracts\HasColor; | ||
use Filament\Support\Contracts\HasLabel; | ||
|
||
enum ActivityStatus implements HasLabel, HasColor | ||
{ | ||
case InProgress; | ||
case Ended; | ||
case Upcoming; | ||
|
||
public function getLabel(): string | ||
{ | ||
return match ($this) { | ||
self::InProgress => 'In Progress', | ||
self::Ended => 'Ended', | ||
self::Upcoming => 'Upcoming', | ||
}; | ||
} | ||
|
||
public function getColor(): string | ||
{ | ||
return match ($this) { | ||
self::InProgress => 'success', | ||
default => 'gray', | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
namespace App\Enums; | ||
|
||
enum FamilyMemberRole: string | ||
{ | ||
case Admin = 'admin'; | ||
case Member = 'member'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace App\Enums; | ||
use Filament\Support\Contracts\HasColor; | ||
use Filament\Support\Contracts\HasLabel; | ||
|
||
enum GiftCardStatus implements HasLabel, HasColor | ||
{ | ||
case Active; | ||
case Expired; | ||
|
||
public function getLabel(): string | ||
{ | ||
return match ($this) { | ||
self::Active => 'Active', | ||
self::Expired => 'Expired', | ||
}; | ||
} | ||
|
||
public function getColor(): string | ||
{ | ||
return match ($this) { | ||
self::Active => 'success', | ||
self::Expired => 'danger', | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
<?php | ||
|
||
namespace App\Enums; | ||
use Filament\Support\Contracts\HasColor; | ||
use Filament\Support\Contracts\HasLabel; | ||
|
||
enum OrderStatus: int | ||
enum OrderStatus: string implements HasLabel, HasColor | ||
{ | ||
case NotReturned = 0; | ||
case PartiallyReturned = 1; | ||
case FullyReturned = 2; | ||
case NotReturned = 'not_returned'; | ||
case PartiallyReturned = 'partially_returned'; | ||
case FullyReturned = 'fully_returned'; | ||
|
||
public function getWord(): string | ||
public function getLabel(): string | ||
{ | ||
return match ($this) { | ||
self::NotReturned => 'Not Returned', | ||
self::PartiallyReturned => 'Partially Returned', | ||
self::FullyReturned => 'Fully Returned', | ||
}; | ||
} | ||
|
||
public function getColor(): string | ||
{ | ||
return match ($this) { | ||
self::NotReturned => 'gray', | ||
self::PartiallyReturned => 'warning', | ||
self::FullyReturned => 'danger', | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace App\Enums; | ||
use Filament\Support\Contracts\HasColor; | ||
use Filament\Support\Contracts\HasLabel; | ||
|
||
enum PayoutStatus: string implements HasLabel, HasColor | ||
{ | ||
case Pending = 'pending'; | ||
case Paid = 'paid'; | ||
case Cancelled = 'cancelled'; | ||
|
||
public function getLabel(): string | ||
{ | ||
return match ($this) { | ||
self::Pending => 'Pending', | ||
self::Paid => 'Paid', | ||
self::Cancelled => 'Cancelled', | ||
}; | ||
} | ||
|
||
public function getColor(): string | ||
{ | ||
return match ($this) { | ||
self::Pending => 'warning', | ||
self::Paid => 'success', | ||
self::Cancelled => 'danger', | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,28 @@ | ||
<?php | ||
|
||
namespace App\Enums; | ||
use Filament\Support\Contracts\HasColor; | ||
use Filament\Support\Contracts\HasLabel; | ||
|
||
enum ProductStatus: int | ||
enum ProductStatus: string implements HasLabel, HasColor | ||
{ | ||
case Active = 1; | ||
case Active = 'active'; | ||
|
||
case Draft = 0; | ||
case Draft = 'draft'; | ||
|
||
public function getWord(): string | ||
public function getLabel(): string | ||
{ | ||
return match ($this) { | ||
self::Active => 'Active', | ||
self::Draft => 'Draft', | ||
}; | ||
} | ||
|
||
public function getColor(): string | ||
{ | ||
return match ($this) { | ||
self::Active => 'success', | ||
self::Draft => 'gray', | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,29 @@ | ||
<?php | ||
|
||
namespace App\Enums; | ||
use Filament\Support\Contracts\HasColor; | ||
use Filament\Support\Contracts\HasLabel; | ||
|
||
enum RotationStatus | ||
enum RotationStatus implements HasLabel, HasColor | ||
{ | ||
case Past; | ||
case Present; | ||
case Future; | ||
|
||
public function getLabel(): string | ||
{ | ||
return match ($this) { | ||
self::Past => 'Past', | ||
self::Present => 'Present', | ||
self::Future => 'Future', | ||
}; | ||
} | ||
|
||
public function getColor(): string | ||
{ | ||
return match ($this) { | ||
self::Present => 'success', | ||
default => 'gray', | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.