<div style="text-align: left;">
    {assign var=registrationYes value='registration_yes'|translate}
    {assign var=registrationNo value='registration_no'|translate}
    {assign var=registrationMissing value='registration_missing'|translate}
    {assign var=registrationParticipationFull value='registration_participation_full'|translate}
    {assign var=registrationParticipationLodging value='registration_participation_one_day_lodging'|translate}
    {assign var=registrationParticipationNoLodging value='registration_participation_one_day_no_lodging'|translate}
    {assign var=registrationDietStandard value='registration_diet_standard'|translate}
    {assign var=registrationDietSpecial value='registration_diet_special'|translate}
    <h2>Dziękujemy za rejestrację na II Kongres Surowcowy</h2>
    <p><b>Termin: 3–6 listopada 2025 r.</b></p>
    <p><b>Miejsce kongresu: Krynica-Zdrój</b></p>

    <h3>Podsumowanie</h3>
    <p>{'info_wysłane'|translate}</p>

    <div class="divFormTable">
        <div class="divTableFormBody">

            <!-- Dane uczestnika -->
            <div class="divTableFormRow">
                <div class="divTableFormCell"><h3>{'registration_participant_data'|translate}:</h3>
                    Imię: {$objParticipant->getName()}<br>
                    Nazwisko: {$objParticipant->getSurname()}<br>
                    Tytuł/stop. naukowy: {$objParticipant->getDegree()}<br>
                    Stanowisko: {$objParticipant->getPosition()|default:$registrationMissing}<br>
                    Telefon: {$objParticipant->getPhone()}<br>
                    Fax: {$objParticipant->getFax()|default:$registrationMissing}<br>
                    Email: {$objParticipant->getEmail()}<br>
                </div>
            </div>

            <!-- Dane instytucji -->
            <div class="divTableFormRow">
                <div class="divTableFormCell"><h3>{'registration_institution_data'|translate}:</h3>
                    Instytucja: {$objParticipant->getInstitution()|default:$registrationMissing}<br>
                    Ulica i numer: {$objParticipant->getAddress()|default:$registrationMissing}<br>
                    Kod pocztowy: {$objParticipant->getPostCode()|default:$registrationMissing}<br>
                    Miejscowość: {$objParticipant->getCity()|default:$registrationMissing}<br>
                    NIP Instytucji: {$objParticipant->getNip()|default:$registrationMissing}<br>
                    Dodatkowe informacje: {$objParticipant->getAdditionalInfo()|default:$registrationMissing}<br>
                </div>
            </div>

            <!-- Wystąpienie -->
            <div class="divTableFormRow">
                <div class="divTableFormCell"><h3>{'registration_presentation_data'|translate}:</h3>
                    Referat: {$objParticipant->getReferat()|replace:1:$registrationYes|replace:2:$registrationNo|replace:0:$registrationNo}<br>
                    Poster: {$objParticipant->getPoster()|replace:1:$registrationYes|replace:2:$registrationNo|replace:0:$registrationNo}<br>
                    <p>Tytuł referatu/posteru: {$objParticipant->getMessage()|default:$registrationMissing}</p>
                    <p>{'registration_author'|translate}: {$objParticipant->getAutor()|default:$registrationMissing}</p>
                </div>
            </div>

            <!-- Informacja o kwocie -->
            <div class="divTableFormRow">
                <div class="divTableFormCell"><h3>{'registration_amount_information'|translate}:</h3>
                    {if $discPrice == 2}
                        {'registration_fee_normal_2026'|translate}
                    {else}
                        {'registration_fee_discount_2026'|translate}
                    {/if}
                            <ul>
                                {foreach $arrayObjParameters as $objParam}
                                    {if in_array($objParam->GetId(), $arrayFee)}
                                        <li>
                                            {$objParam->GetName()} 
                                            {if $objParam->GetId() eq 5} ({$objParticipant->getFeeOneDay()}){/if}<br>
                                            
                                            {if $discPrice == 2}
                                                {assign var="netto" value=$objParam->GetPrice()}
                                                {'registration_net_price'|translate}: {$netto|number_format:2:",":" "} PLN<br>
                                            {else}
                                                {assign var="netto" value=$objParam->GetPriceProm()}
                                                {'registration_net_price_no_vat'|translate}: {$netto|number_format:2:",":" "} PLN<br>
                                            {/if}
                                            
                                            {assign var="vat" value=$netto * 1.23}
                                            {'registration_gross_price'|translate}: {$vat|number_format:2:",":" "} PLN<br>
                                        </li>
                                    {/if}
                                {/foreach}
                            </ul>



                    <h3>{'registration_total_to_pay'|translate}:</h3>
                    {assign var="resultPrice" value=$objParticipant->getPrice()}
                    {'registration_net_price'|translate}: {$resultPrice|number_format:2:",":" "} PLN<br>
                    {assign var="resultPriceVat" value=$resultPrice * 1.23}
                    {'registration_gross_price'|translate}: {$resultPriceVat|number_format:2:",":" "} PLN<br>

                    <p><b>{'klauzula_ceny'|translate}</b></p>
                </div>
            </div>

            <!-- Zgody -->
            <div class="divTableFormRow">
                <div class="divTableFormCell"><h3>{'registration_consents_expressed'|translate}:</h3>
                    <p>{'registration_consent_data'|translate} - {$objParticipant->getAgree1()|replace:1:$registrationYes|replace:'on':$registrationYes|replace:0:$registrationNo}</p>
                    <p>{'registration_consent_image'|translate} - {$objParticipant->getAgree2()|replace:1:$registrationYes|replace:'on':$registrationYes|replace:0:$registrationNo}</p>
                </div>
            </div>

            <div class="divTableFormRow">
                <div class="divTableFormCell"><h3>{'registration_selected_participation_option'|translate}:</h3>
                        <p><b>{'registration_participation_type'|translate}:</b> {$objParticipant->getParticipationOption()|replace:'full':$registrationParticipationFull|replace:'one_day_lodging':$registrationParticipationLodging|replace:'one_day_no_lodging':$registrationParticipationNoLodging|default:$registrationParticipationFull}</p>
                        {if $days}
                            <p><b>{'registration_selected_presence_days'|translate}:</b> {$days}</p>
                        {elseif $objParticipant->getParticipationDays()}
                            <p><b>{'registration_selected_presence_days'|translate}:</b> {$objParticipant->getParticipationDays()}</p>
                        {else}
                            <p><b>{'registration_full_conference_presence'|translate}</b></p>
                        {/if}
                        <p><b>{'registration_single_room_surcharge'|translate}:</b> {$objParticipant->getFeeRoom1()|replace:1:$registrationYes|replace:0:$registrationNo|default:$registrationNo}</p>
                        <p><b>{'registration_accompanying_driver'|translate}:</b> {$objParticipant->getFeeRoomAddPerson()|replace:1:$registrationYes|replace:0:$registrationNo|default:$registrationNo}</p>
                        <p><b>{'registration_diet_preferences'|translate}:</b> {$objParticipant->getDiet()|replace:1:$registrationDietStandard|replace:2:$registrationDietSpecial|default:$registrationDietStandard} {if $objParticipant->getDietSpecial()}- {$objParticipant->getDietSpecial()}{/if}</p>
                </div>
            </div>


        </div>
    </div>
</div>

{literal}
  <div style="display: none">
    <style>
        .divTableForm {
            display: table;
            width: 70%;
        }
        .divTableFormRow {
            display: table-row;
        }
        .divTableFormCell {
            display: table-cell;
            padding: 3px 10px;
        }
        .divTableFormBody {
            display: table-row-group;
        }
    </style>
  </div>
{/literal}
