DONE: sso into e-vote; WIP: feedback modules

This commit is contained in:
ISMAIL MASSERAN
2026-07-13 12:15:44 +08:00
parent a11b75729a
commit 324b7facf1
53 changed files with 1005 additions and 135 deletions
@@ -0,0 +1,30 @@
<?php
namespace Modules\ExternalSystem\Transformers;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class ExternalSystemResource extends JsonResource
{
public function toArray(Request $request): array
{
return [
'id' => $this->id,
'code' => $this->code,
'name' => $this->name,
'description' => $this->description,
'url' => $this->url,
'icon' => $this->icon,
'is_active' => $this->is_active,
'starts_at' => $this->starts_at?->toIso8601String(),
'ends_at' => $this->ends_at?->toIso8601String(),
'opens_in_new_tab' => $this->opens_in_new_tab,
'sso_enabled' => $this->sso_enabled,
'contact_email' => $this->contact_email,
'notes' => $this->notes,
'created_at' => $this->created_at?->toIso8601String(),
'updated_at' => $this->updated_at?->toIso8601String(),
];
}
}