fix apply the plan docs/alrahma_api_fix_plan_school_year_only_v7
API CI/CD / Validate (composer + pint) (push) Successful in 3m10s
API CI/CD / Test (PHPUnit) (push) Failing after 6m49s
API CI/CD / Build frontend assets (push) Successful in 1m3s
API CI/CD / Security audit (push) Failing after 1m0s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
API CI/CD / Validate (composer + pint) (push) Successful in 3m10s
API CI/CD / Test (PHPUnit) (push) Failing after 6m49s
API CI/CD / Build frontend assets (push) Successful in 1m3s
API CI/CD / Security audit (push) Failing after 1m0s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
This commit is contained in:
@@ -16,6 +16,12 @@ class StaffResource extends JsonResource
|
||||
'lastname' => $this->lastname ?? null,
|
||||
'email' => $this->email ?? null,
|
||||
'phone' => $this->phone ?? null,
|
||||
'full_name' => trim((string) ($this->firstname ?? '').' '.(string) ($this->lastname ?? '')),
|
||||
'role' => [
|
||||
'name' => $this->role_name ?? $this->active_role ?? null,
|
||||
'label' => $this->role_name ?? $this->active_role ?? null,
|
||||
],
|
||||
'status' => strtolower((string) ($this->active_role ?? '')) === 'inactive' ? 'inactive' : 'active',
|
||||
'role_name' => $this->role_name ?? null,
|
||||
'active_role' => $this->active_role ?? null,
|
||||
'school_year' => $this->school_year ?? null,
|
||||
|
||||
Reference in New Issue
Block a user