ldc-supportweb/app/Enums/Planning/TableRow.php
Jérémy Munsch 7cc4303f03
Add Planning functionnality
- bump kwaadpepper/crud-policies
- npm i vue-select moment --save-dev
- Add Planning components
- csrf_token to axios
- Add Model WeekendPlanning
- Add Enums CellModel, CellType, TableRow
2021-10-02 13:57:00 +02:00

36 lines
808 B
PHP

<?php
namespace App\Enums\Planning;
use Kwaadpepper\Enum\BaseEnumRoutable;
/**
* Décrit à quel moment de la journée appartient la cellule
*
* @method static self matin1()
* @method static self matin2()
* @method static self apresmidi1()
* @method static self apresmidi2()
*/
class TableRow extends BaseEnumRoutable
{
protected static function values(): array
{
return [
'matin1' => 1,
'matin2' => 2,
'apresmidi1' => 3,
'apresmidi2' => 4,
];
}
protected static function labels(): array
{
return [
'matin1' => trans('Matin 1'),
'matin2' => trans('Matin 2'),
'apresmidi1' => trans('Après-midi 1'),
'apresmidi2' => trans('Après-midi 2')
];
}
}