'Name', 'street' => 'Address', 'zip_city' => 'Zip / City' ]; foreach ( $fields as $field => $field_title ): ?> 'Name', 'company_street' => 'Address', 'company_zip_city' => 'Zip / City', 'company_purpose' => ( \FQP\FQP::ENTRY_TYPE_AG == $submission['entry_type_ID'] ) ? 'EN Gegenstand des Unternehmens' : 'EN Zweck', ]; foreach ( $fields as $field => $field_title ): ?> 'Name', 'street' => 'Address', 'zip_city' => 'Zip / City', 'nationality' => 'Nationality', 'hometown' => 'Hometown', 'birth_date' => 'Birth date', 'vr_function_in_company' => ( \FQP\FQP::ENTRY_TYPE_AG == $submission['entry_type_ID'] ) ? 'EN Funktion im Unternehmen' : 'EN VR-Funktion in der Firma', 'function_in_company' => 'Function in the company', 'signature_authorization' => 'EN Zeichnungsberechtigung', 'shares_number' => ( \FQP\FQP::ENTRY_TYPE_AG == $submission['entry_type_ID'] ) ? 'EN Anzahl Aktien' : 'EN Anzahl Stammanteile', ]; if ( 'company' == $person['type'] ): // company fields $fields = [ 'company_name' => 'Company name', 'company_street' => 'Company address', 'company_zip_city' => 'Company Zip / City', 'company_country' => 'Company country', 'company_number' => 'EN Handelsregisternummer', ] + $fields; endif; foreach ( $fields as $field => $field_title ): if ( ! empty( $person[$field] ) ): ?> ( \FQP\FQP::ENTRY_TYPE_AG == $submission['entry_type_ID'] ) ? 'EN Anzahl Aktien' : 'EN Anzahl Stammanteile', 'equity_capital' => ( \FQP\FQP::ENTRY_TYPE_AG == $submission['entry_type_ID'] ) ? 'EN Aktienkapital' : ( ( \FQP\FQP::ENTRY_TYPE_LTD == $submission['entry_type_ID'] ) ? 'EN Stammkapital' : 'EN Gesellschaftskapital' ) , 'equity_capital_paid' => (FQP\FQP::ENTRY_TYPE_LTD == $submission['entry_type_ID'] ) ? 'EN Einbezahltes Stammkapital' : 'EN Einbezahltes Aktienkapital', 'in_kind' => 'EN Davon als Sacheinlage', 'in_cash' => 'EN Davon in Bar', 'share_price' => ( \FQP\FQP::ENTRY_TYPE_AG == $submission['entry_type_ID'] ) ? 'EN Nennwert pro Aktie' : 'EN Nennwert pro Stammanteil', 'bank_details' => 'Bank details', ]; $money_fields = [ 'equity_capital', 'equity_capital_paid', 'in_kind', 'in_cash', 'share_price' ]; $capital_data = []; foreach ( array_keys( $fields ) as $key ) { if ( in_array( $key, $money_fields ) ) { if ( @$submission[$key] > 0 ) { $capital_data[] = @$submission[$key]; } } else { $capital_data[] = @$submission[$key]; } } $capital_data = array_filter( $capital_data ); if ( $capital_data && in_array( $submission['entry_type_ID'], [ \FQP\FQP::ENTRY_TYPE_LTD, \FQP\FQP::ENTRY_TYPE_AG, \FQP\FQP::ENTRY_TYPE_COLLECTIVE_COMPANY ] ) ): ?> $field_title ): $field_value = $submission[$field]; if ( in_array( $field, $money_fields ) ) { $field_value = floatval( $field_value ); if ( $field_value > 0 ) { $field_value = fqp_money( $submission[$field] ); } } if ( ! empty( $field_value ) ): ?> 'EN Kommentar zur Bestellung', 'email_subscription' => 'EN Ja, ich möchte über Tipps und News rund um die Firmengründung und das Unternehmertum informiert werden.', 'agree' => 'EN Ja, ich akzeptiere die AGB\'s', ]; foreach ( $fields as $field => $field_title ): ?>