initial
This commit is contained in:
10
app/Enums/ApprovalStatus.php
Normal file
10
app/Enums/ApprovalStatus.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum ApprovalStatus: string
|
||||
{
|
||||
case Pending = 'Pending';
|
||||
case Approved = 'Approved';
|
||||
case Rejected = 'Rejected';
|
||||
}
|
||||
21
app/Enums/EventType.php
Normal file
21
app/Enums/EventType.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum EventType: string
|
||||
{
|
||||
case AnnualInPersonMeeting = 'AnnualInPersonMeeting';
|
||||
case Conference = 'Conference';
|
||||
case Osces = 'Osces';
|
||||
case ResearchRetreat = 'ResearchRetreat';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match($this) {
|
||||
self::AnnualInPersonMeeting => 'Annual In-Person Meeting',
|
||||
self::Conference => 'Conference',
|
||||
self::Osces => 'OSCEs',
|
||||
self::ResearchRetreat => 'Research Retreat',
|
||||
};
|
||||
}
|
||||
}
|
||||
25
app/Enums/GeneralType.php
Normal file
25
app/Enums/GeneralType.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum GeneralType: string
|
||||
{
|
||||
case Aso = 'Aso';
|
||||
case Hubs = 'Hubs';
|
||||
case Management = 'Management';
|
||||
case Mc = 'Mc';
|
||||
case Other = 'Other';
|
||||
case Research = 'Research';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match($this) {
|
||||
self::Aso => 'ASO',
|
||||
self::Hubs => 'Hubs',
|
||||
self::Management => 'Management',
|
||||
self::Mc => 'MC',
|
||||
self::Other => 'Other',
|
||||
self::Research => 'Research',
|
||||
};
|
||||
}
|
||||
}
|
||||
23
app/Enums/JourneyMethod.php
Normal file
23
app/Enums/JourneyMethod.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum JourneyMethod: string
|
||||
{
|
||||
case Air = 'Air';
|
||||
case Bus = 'Bus';
|
||||
case PersonalVehicle = 'PersonalVehicle';
|
||||
case RcswaVehicle = 'RcswaVehicle';
|
||||
case Train = 'Train';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match($this) {
|
||||
self::Air => 'Air',
|
||||
self::Bus => 'Bus',
|
||||
self::PersonalVehicle => 'Personal Vehicle',
|
||||
self::RcswaVehicle => 'RCSWA Vehicle',
|
||||
self::Train => 'Train',
|
||||
};
|
||||
}
|
||||
}
|
||||
11
app/Enums/TravelStatus.php
Normal file
11
app/Enums/TravelStatus.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum TravelStatus: string
|
||||
{
|
||||
case Draft = 'Draft';
|
||||
case Pending = 'Pending';
|
||||
case Approved = 'Approved';
|
||||
case Rejected = 'Rejected';
|
||||
}
|
||||
Reference in New Issue
Block a user