$location->getRouteKey(), 'key' => [ 'public' => $location->getPublicKey(), 'route' => $location->getRouteKey(), ], 'parent_id' => $location->parent_id, 'type' => $location->type, 'place' => $location->place, 'gst_type' => $location->gst_type, 'slug' => $location->slug, 'name' => $location->name, 'postal_code' => $location->postal_code, 'state_code' => $location->state_code, 'has_delivery' => $location->has_delivery, 'sort_code' => $location->sort_code, 'COD' => $location->COD, 'dispatch' => $location->dispatch, 'deleted_at' => $location->deleted_at, 'url' => [ 'public' => trans_url('location/'.$location->getPublicKey()), 'user' => guard_url('location/location/'.$location->getRouteKey()), ], 'status' => trans('app.'.$location->status), 'created_at' => format_date($location->created_at), 'updated_at' => format_date($location->updated_at), ]; } }