added missing translations
This commit is contained in:
@@ -8,6 +8,8 @@ use Illuminate\Http\Resources\Json\JsonResource;
|
||||
use Illuminate\Http\Resources\MissingValue;
|
||||
use Illuminate\Support\Arr;
|
||||
|
||||
use function app;
|
||||
|
||||
class EventResource extends JsonResource
|
||||
{
|
||||
public function toArray(Request $request): array
|
||||
@@ -54,6 +56,9 @@ class EventResource extends JsonResource
|
||||
'engagement_mode' => $settings['engagement_mode'] ?? 'tasks',
|
||||
'settings' => $settings,
|
||||
'event_type_id' => $this->event_type_id,
|
||||
'event_type' => $this->whenLoaded('eventType', function () {
|
||||
return new EventTypeResource($this->eventType);
|
||||
}),
|
||||
'created_at' => $this->created_at?->toISOString(),
|
||||
'updated_at' => $this->updated_at?->toISOString(),
|
||||
'photo_count' => (int) ($this->photos_count ?? 0),
|
||||
|
||||
Reference in New Issue
Block a user