WIP on CArd Orders
This commit is contained in:
1 parent
63e264805a
commit
ee4d71cff0
14 files changed
+632
-7
No files matched your search
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repos\Order\Card;
|
||||
|
||||
use App\Models\Order\Card\CardState;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
class CardStateRepo
|
||||
{
|
||||
/**
|
||||
* Card state values
|
||||
*/
|
||||
public static function values(): Collection|array
|
||||
{
|
||||
return CardState::where('active', true)->pluck('name', 'id');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repos\Order\Card;
|
||||
|
||||
use App\Models\Order\Card\CardType;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
class CardTypeRepo
|
||||
{
|
||||
/**
|
||||
* Card type values
|
||||
*/
|
||||
public static function values(): Collection|array
|
||||
{
|
||||
return CardType::where('active', true)->pluck('name', 'id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user