$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, 'purpose_of_journey' => $plan->purpose_of_journey, 'is_template' => $plan->is_template, 'template_name' => $plan->template_name, 'slug' => $plan->slug, 'user_type' => $plan->user_type, 'deleted_at' => $plan->deleted_at, 'current_latitude' => $plan->current_latitude, 'current_longitude' => $plan->current_longitude, 'url' => [ 'public' => trans_url('test/'.$plan->getPublicKey()), 'user' => guard_url('test/plan/'.$plan->getRouteKey()), ], 'status' => trans('app.'.$plan->status), 'created_at' => format_date($plan->created_at), 'updated_at' => format_date($plan->updated_at), ]; } }