feat: implement team standby status, helper persistence, and store portal foundations
This commit is contained in:
@@ -20,11 +20,15 @@ class CollectionTeamResource extends JsonResource
|
||||
'truck' => TruckResource::make($this->whenLoaded('truck')),
|
||||
'helpers' => $this->whenLoaded('helpers', fn () => $this->helpers->map(fn ($m) => [
|
||||
'id' => $m->user?->uuid,
|
||||
'db_id' => $m->user?->id,
|
||||
'name' => $m->user?->full_name,
|
||||
'assigned_from' => $m->assigned_from?->toDateString(),
|
||||
'assigned_until' => $m->assigned_until?->toDateString(),
|
||||
'status' => $m->status,
|
||||
])),
|
||||
'is_full' => $this->is_full,
|
||||
'performance_stats' => $this->getPerformanceStats(),
|
||||
'current_trip' => TripResource::make($this->whenLoaded('currentTrip')),
|
||||
'notes' => $this->notes,
|
||||
'created_at' => $this->created_at?->toIso8601String(),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user