{% extends "global/Page.html" %}
{% load otree %}

{% block title %}

    FINAL GAIN

{% endblock %}

{% block content %}
<div class="card bg-light m-3">
    <div class="card-body">
<br> Draw:
         <br> Selected game: Game {{player.jeu_tire}}
         <br> <br>
             Game gain: {{player.gainfinal}} ECU(s)
         <br> <br>
         Final gain (Game gain + fixed remuneration): {{player.gainfinalplushowup}} ECU(s)
         <br> <br>
</div>
</div>

    <p>{% next_button %}</p>



{% if player.id_in_group == 1%}
        {% if player.jeu_tire == 1%}
<div class="card bg-light instructions">
    <div class="card-body">
<h3> Game 1: RESULT Details </h3>
         <p> The draw is: {{player.tirageriskresult_j1}}
     </p>
         <p> Your investment in risky asset: {{player.risk11_a_j1}} ECU (s) </p>
         <p> You have kept: {{player.risk11_b_j1}} ECU (s) </p>
         <br>
          <p> Your winnings for this game are: {{player.gainrisk_j1}} ECU (s) </p>
     <br> <br>

    </div>
</div>
<br> <br>
<h3>
Reminder of the instructions:
</h3>
            <div class="card bg-light instructions">
    <div class="card-body">

            {% include Constants.instructions_GP_template %}

    </div></div>

        {% endif  %}


        {% if player.jeu_tire == 2%}
<div class="card bg-light instructions">
    <div class="card-body">
<h3> Game 2: RESULT Details </h3>
         <p> Your choice was: {{player.choicerisknn}} </p>
         <p> The selected color is: {{player.colorselectnn}} </p>
        <p> Your winnings for this game are: {{player.gainrisk}} ECU (s) </p>
     <br>
</div>
</div>
<br> <br>
<h3>
     Reminder of the instructions:
</h3>
            <div class="card bg-light instructions">
    <div class="card-body">

            {% include Constants.instructions_BW_template %}

    </div></div>
         {% endif  %}
{% endif  %}





{% if player.id_in_group == 2%}

        {% if player.jeu_tire == 1%}
<div class="card bg-light instructions">
    <div class="card-body">
<h3> Game 1: RESULT Details </h3>
         <p> Your choice was: {{player.choicerisknn}} </p>
         <p> The selected color is: {{player.colorselectnn}} </p>
        <p> Your winnings for this game are: {{player.gainrisk}} ECU (s) </p>
     <br>
</div>
</div>
<br> <br>
<h3>
     Reminder of the instructions:
</h3>
    Rappel des instructions :
</h3>
            <div class="card bg-light instructions">
    <div class="card-body">

            {% include Constants.instructions_BW_template %}

    </div></div>
         {% endif  %}


        {% if player.jeu_tire == 2%}
<div class="card bg-light instructions">
    <div class="card-body">
<h3> Game 2: RESULT Details </h3>
         <p> The draw is: {{player.tirageriskresult_j1}}
     </p>
         <p> Your investment in risky asset: {{player.risk11_a_j1}} ECU (s) </p>
         <p> You have kept: {{player.risk11_b_j1}} ECU (s) </p>
         <br>
          <p> Your winnings for this game are: {{player.gainrisk_j1}} ECU (s) </p>
     <br> <br>

     </div>
</div>
<br> <br>
<h3>
     Reminder of the instructions:
</h3>
            <div class="card bg-light instructions">
    <div class="card-body">

            {% include Constants.instructions_GP_template %}

    </div></div>

        {% endif  %}



{% endif  %}









{% endblock %}

