$plan->getRouteKey(), 'key' => [ 'public' => $plan->getPublicKey(), 'route' => $plan->getRouteKey(), ], 'user_id' => $plan->user_id, 'asset_id' => $plan->asset_id, 'name' => $plan->name, 'departure_location_id' => $plan->departure_location_id, 'arrival_location_id' => $plan->arrival_location_id, 'waypoint' => $plan->waypoint, 'schedule_time' => $plan->schedule_time, 'deleted_at' => $plan->deleted_at, 'url' => [ 'public' => trans_url('plan/'.$plan->getPublicKey()), 'user' => guard_url('plan/plan/'.$plan->getRouteKey()), ], 'status' => trans('app.'.$plan->status), 'created_at' => format_date($plan->created_at), 'updated_at' => format_date($plan->updated_at), ]; } }