$name->getRouteKey(), 'key' => [ 'public' => $name->getPublicKey(), 'route' => $name->getRouteKey(), ], 'first_name' => $name->first_name, 'middle_name' => $name->middle_name, 'last_name' => $name->last_name, 'family_name' => $name->family_name, 'nationality' => $name->nationality, 'dob' => $name->dob, 'passport_no' => $name->passport_no, 'passport_expiry' => $name->passport_expiry, 'emirates_id' => $name->emirates_id, 'description' => $name->description, 'user_id' => $name->user_id, 'user_type' => $name->user_type, 'deleted_at' => $name->deleted_at, 'url' => [ 'public' => trans_url('aml/'.$name->getPublicKey()), 'user' => guard_url('aml/name/'.$name->getRouteKey()), ], 'status' => trans('app.'.$name->status), 'created_at' => format_date($name->created_at), 'updated_at' => format_date($name->updated_at), ]; } }