<panel>
	<layout class="stick_to_sides_attachment" alignment="all" inset="0" layout_children="true"/>

	<container class="subsection_box" title="Personal Details">
    <layout class="arrange_vertical_attachment" alignment="bottom,extend"/>
    <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" inset="0"/>

    <container class="vertical_adaptive_container" id="PDvc">

      <container priority="1" default_height="190">

        <!-- profile picture -->
        <widget class="picture" id="prop">
          <boolean id="scale_picture" value="true"/>
          <boolean id="keep_aspect_ratio" value="true" />
          <flags id="image_alignment" value="centre" />

          <attachment class="test_setting_attachment" get_setting="show_portraits" default_value="true" set_property="hidn">
            <list id="value">
              <boolean value="false"/>
            </list>
          </attachment>

          <layout class="stick_to_sides_attachment" alignment="all" inset="0"/>

          <record id="object_property">
            <list id="get_properties">
              <record>
                <integer id="get_property" value="fcgn" />
                <!--Facegen data request-->
              </record>
              <record>
                <integer id="get_property" value="Pfke" />
                <!--Fake name request-->
              </record>
              <record>
                <integer id="get_property" value="prpc" />
                <integer id="set_property" value="valu" />
              </record>
            </list>
          </record>
        </widget>

    	<!-- Club Logo -->
	<widget class="picture" id="pict" transparency="0.25" scale_picture="true" keep_aspect_ratio="true" height="140" width="140" image_alignment="centre">
        <layout class="centre_in_parent_attachment" alignment="horizontal" offset="-130" priority="1"/>
        <layout class="stick_to_sides_attachment" alignment="top" inset="0" priority="1"/>

        <!-- tells the picture to listen to the 'main picture' global property being set, and set its own file property from it -->
        <attachment class="get_global_attachment" get_property="mnpc" set_property="file" skip_if_null="false"/>

        <!-- tells the picture to listen for the 'main picture needs recolouring' property and sets its own 'should recolour' property from it -->
        <attachment class="get_global_attachment" get_property="mprc" set_property="srec" skip_if_null="false"/>

        <!-- the background, foreground and outline colours of the object we use for recolouring the default main picture if there is one, and it should be recoloured -->
        <attachment class="get_global_attachment" get_property="bkcl" set_property="rrep"/>
        <attachment class="get_global_attachment" get_property="fcol" set_property="grep"/>
        <attachment class="get_global_attachment" get_property="ocol" set_property="brep"/>
      </widget>

        <!--squad number-->
        <container width="100" id="sqco">
          <layout class="arrange_vertical_attachment" alignment="top"/>
          <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true"/>
          <layout class="stick_to_sides_attachment" alignment="top,left"/>
          <layout class="fit_children_attachment" alignment="vertical,fill"/>

          <widget class="text" spec="text,small" auto_size="vertical" text="no.[COMMENT: title for displaying a squad number on the player profile panel]"/>

          <widget class="squad_number_label" id="SqNu" spec="text,large" style="bold" size="17">
            <record id="object_property">
              <integer id="get_property" value="Psnu" />
            </record>
          </widget>
        </container>
 
        <!--age-->
        <container width="100" id="sqco">
          <layout class="arrange_vertical_attachment" alignment="top"/>
          <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true"/>
          <layout class="stick_to_sides_attachment" alignment="top,right"/>
          <layout class="fit_children_attachment" alignment="vertical,fill"/>

          <widget class="text" spec="text,small" alignment="right" auto_size="vertical" text="age[COMMENT: title for displaying a player's age on the player profile panel]"/>

          <widget class="label" id="age " alignment="right" spec="text,large" style="bold" size="17">
            <record id="object_property">
              <integer id="get_property" value="Page" />
            </record>
          </widget>

          <widget class="dob_label" spec="text,small" id="dobl" alignment="right" auto_size="vertical" display_format="0">
            <record id="object_property">
              <integer id="get_property" value="Pfad" />
            </record>
          </widget>

      </container>

    </container>

      <!--player extra details (e.g. onloan at...)-->
      <widget class="player_extra_details_text" id="plex" default_height="20" priority="1" spec="text" alignment="centre_x,centre_y" style="semi_bold" colour="profile extra text">
        <record id="object_property">
          <integer id="get_property" value="PExD"/>
        </record>
      </widget>

      <!--international stats row-->
      <container priority="1" default_height="-2" minimum_height="30">
        <layout class="arrange_horizontal_attachment" layout="-1,-1,-1" offset="0"/>
        <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" layout_children="true"/>

        <container>
          <layout class="arrange_vertical_attachment" layout="-1,-1" offset="0"/>
          <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

          <!--int apps-->
          <widget class="number_label" spec="text,small" id="inta" alignment="centre_x,bottom">
            <string id="format" value="[%number#1] apps"/>
            <record id="object_property">
              <integer id="get_property" value="Piap" />
            </record>
          </widget>
          <!--int goals-->
          <widget class="number_label" spec="text,small" id="intg" alignment="centre_x,top">
            <string id="format" value="[%number#1] goals"/>
            <record id="object_property">
              <integer id="get_property" value="Pigl" />
            </record>
          </widget>
        </container>

        <container>
          <layout class="arrange_vertical_attachment" alignment="bottom,extend" offset="0" gap="0"/>
          <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

          <!--national flag-->
          <widget class="team_logo_picture" id="pnat" image_alignment="centre" scale_picture="true" keep_aspect_ratio="true">
            <record id="object_property">
              <integer id="get_property" value="PNat" />
              <integer id="set_property" value="objt" />
            </record>
          </widget>

          <!--int goals-->
          <widget class="nation_button" spec="text,small" id="intc" shpc="false" auto_size="vertical" alignment="centre" display_format="3">
            <record id="object_property">
              <integer id="get_property" value="Pnat" />
            </record>
          </widget>
        </container>

        <container>
          <layout class="arrange_vertical_attachment" layout="-1,-1" offset="0"/>
          <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

          <!--youth apps-->
          <widget class="number_label" spec="text,small" id="youa" alignment="centre_x,bottom">
            <string id="format" value="[%number#1] youth apps"/>
            <record id="object_property">
              <integer id="get_property" value="Puia" />
            </record>
          </widget>
          <!--youth goals-->
          <widget class="number_label" spec="text,small" id="youg" alignment="centre_x,top">
            <string id="format" value="[%number#1] youth goals"/>
            <record id="object_property">
              <integer id="get_property" value="Puig" />
            </record>
          </widget>
        </container>
      </container>

      <!--contract row-->
      <container default_height="-2" minimum_height="15" priority="2">
        <layout class="arrange_horizontal_attachment" layout="-1,-1,-1" offset="0"/>
        <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" layout_children="true"/>

        <container>
          <layout class="arrange_vertical_attachment" layout="-2,-1" offset="0"/>
          <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

          <!--wage-->
          <widget class="wage_label" spec="text,small,bold" id="wkwg" size="11" alignment="centre_x,bottom" format="5">
            <record id="object_property">
              <integer id="get_property" value="PCww" />
            </record>
          </widget>
          <!--wage label-->
          <widget class="label" spec="text,small" id="wglb" alignment="centre_x,top">
          </widget>
        </container>

        <container>
          <layout class="arrange_vertical_attachment" layout="-2,-1" offset="0"/>
          <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

          <!--expiry date-->
          <widget class="date_cell" spec="text,small,bold" id="expd" size="11" format="[%date#1-shortest]" alignment="centre_x,bottom">
            <record id="object_property">
              <integer id="get_property" value="PCed" />
            </record>
          </widget>
          <!--expiry date label-->
          <widget class="label" spec="text,small" text="expires[COMMENT: player personal details panel; text to be displayed under the player's contract expiration date, leave as lower case]" alignment="centre_x,top">
          </widget>
        </container>

        <container>
          <layout class="arrange_vertical_attachment" layout="-2,-1" offset="0"/>
          <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

          <!--value-->
          <widget class="value_label" spec="text,small,bold" id="valu" size="11" alignment="centre_x,bottom">
            <record id="object_property">
              <integer id="get_property" value="Pdva" />
            </record>
          </widget>
          <!--value label-->
          <widget class="label" spec="text,small" text="value[COMMENT: player personal details panel; text to be displayed under the player's value, leave as lower case]" alignment="centre_x,top">
          </widget>
        </container>
      </container>

      <!--physical attributes row-->
      <container default_height="-2" minimum_height="15" priority="3">
        <layout class="arrange_horizontal_attachment" layout="-1, -1, -1" offset="0" gap="0"/>
        <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" layout_children="true"/>

        <container>
          <layout class="arrange_vertical_attachment" layout="-2, -1" offset="0"/>
          <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" inset="0"/>

          <!--weight-->
          <widget class="weight_label" spec="text,small,bold" id="weig" size="11" alignment="centre_x,bottom">
            <record id="object_property">
              <integer id="get_property" value="Pwei" />
            </record>
          </widget>
          <!--weight label-->
          <widget class="label" spec="text,small" text="weight[COMMENT: player personal details panel; text to be displayed under the player's weight, leave as lower case]"  alignment="centre_x,top">
          </widget>
        </container>

        <container>
          <layout class="arrange_vertical_attachment" layout="-2,-1" offset="0"/>
          <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

          <!--height-->
          <widget class="height_label" spec="text,small,bold" id="heig" size="11" alignment="centre_x,bottom">
            <record id="object_property">
              <integer id="get_property" value="Phei" />
            </record>
          </widget>
          <!--height label-->
          <widget class="label" spec="text,small" text="height[COMMENT: player personal details panel; text to be displayed under the player's height, leave as lower case]" alignment="centre_x,top">
          </widget>
        </container>

        <container>
          <layout class="arrange_vertical_attachment" layout="-2,-1" offset="0"/>
          <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

          <!--footedness-->
          <widget class="foot_label" spec="text,small,bold" id="foot" size="11" alignment="centre_x,bottom">
            <record id="object_property">
              <integer id="get_property" value="Pfot" />
            </record>
          </widget>
          <!--footedness label-->
          <widget class="label" spec="text,small" text="footed[COMMENT: player personal details panel; text to be displayed under the player's preferred footedness, leave as lower case]" alignment="centre_x,top">
          </widget>
        </container>

      </container>

      <!--playing position row-->
      <container priority="4" default_height="-2" minimum_height="40">
        <layout class="arrange_vertical_attachment" layout="-2,-1" offset="0"/>
        <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

        <!--best position-->
        <widget class="position_label" spec="text,large,bold" id="bpos" size="11" alignment="centre_x,bottom" display_format="0">
          <record id="object_property">
            <integer id="get_property" value="Pnps"/>
          </record>
        </widget>
        <!--sccomplished position-->
        <widget class="position_label" spec="text,small" id="apos" alignment="centre_x,top" display_format="0">
          <record id="object_property">
            <integer id="get_property" value="PAps"/>
          </record>
        </widget>
      </container>

    </container>

		<!--button to go to personal details-->
		<container>
			<layout class="arrange_horizontal_attachment" alignment="right"/>
			<layout class="stick_to_sides_attachment" alignment="top" layout_children="true"/>
      <layout class="fit_children_attachment" alignment="vertical"/>
      
			<!--buttons to go to personal details-->
			<widget class="action_button" text="View Personal Details[COMMENT: player personal details panel; button text which when clicked takes the user to the player's personal details screen]" id="vpde" auto_size="all" appearance="button/link/button">
			</widget>
		</container>
		</container>
</panel>
