|
- <?php
-
- declare(strict_types=1);
-
- namespace App\ViewModels;
-
- class JobViewModel
- {
- public string $title = 'Jobs';
- public bool $saved = false;
- public bool $deleted = false;
-
- public array $form = [
- 'campaign_id' => 0,
- 'job_type_id' => 0,
- 'attribute_values' => [],
- ];
-
- /** @var array<string, list<string>> */
- public array $errors = [];
-
- /** @var array<string, mixed>|null */
- public ?array $job = null;
-
- /**
- * Campaigns with campaign_type_name for the dropdown.
- * @var list<array<string, mixed>>
- */
- public array $campaigns = [];
-
- /**
- * Job types with attributes decoded, for the type dropdown and dynamic fields.
- * @var list<array{id: int, name: string, attributes: list<array{name: string, type: string}>}>
- */
- public array $jobTypes = [];
- }
|