$crewtype->getRouteKey(), 'key' => [ 'public' => $crewtype->getPublicKey(), 'route' => $crewtype->getRouteKey(), ], 'code' => $crewtype->code, 'name' => $crewtype->name, 'description' => $crewtype->description, 'slug' => $crewtype->slug, 'user_id' => $crewtype->user_id, 'user_type' => $crewtype->user_type, 'deleted_at' => $crewtype->deleted_at, 'url' => [ 'public' => trans_url('competency/'.$crewtype->getPublicKey()), 'user' => guard_url('competency/crewtype/'.$crewtype->getRouteKey()), ], 'status' => trans('app.'.$crewtype->status), 'created_at' => format_date($crewtype->created_at), 'updated_at' => format_date($crewtype->updated_at), ]; } }