<panel title="Player Profile Panel">

  <!-- Set Current View -->
  <integer id="current_view_menu" value="attv" />

  <!-- MAIN AREA -->
  <layout class="stick_to_sides_attachment" alignment="all" inset="0" />

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

    <!-- buttons area -->
    <container id="btna" embed_in_frame="true">

      <layout class="arrange_horizontal_attachment" alignment="right" embed_in_frame="true" gap="4" offset="4"/>
      <layout class="stick_to_sides_attachment" alignment="top" inset="0" layout_children="true" embed_in_frame="true"/>
      <layout class="stick_to_sides_attachment" alignment="top,right" embed_in_frame="true" inset="6"/>

      <layout class="fit_children_attachment" alignment="vertical" embed_in_frame="true"/>
      <layout class="fit_children_attachment" alignment="horizontal,fill" embed_in_frame="true"/>

      <!-- player view menu -->
      <widget class="check_box" id="shtr" click_event="shtc" embed_in_frame="true" alignment="centre" auto_size="horizontal" text="Show recent attribute changes[COMMENT: text on player_profile panel to toggle the attribute change arrows RE-TRANSLATE FOR FM2008]" save_current_state="true" save_default_state="true"/>
      <widget class="embedded_popup_button" id="skpa" click_event="skpa" embed_in_frame="true" alignment="centre" auto_size="horizontal" text="View key attributes[COMMENT: option allowing for viewing the key attributes needed to play in a certain role]" fixed="true"/>
      <!-- view menu -->

    </container>

    <container class="vertical_adaptive_container" id="PLPR" inset="0" offset="0" gap="4">

      <container default_height="352" priority="1">
        <layout class="arrange_horizontal_attachment" offset="0" layout="-4, -6" gap="10"/>
        <layout class="stick_to_sides_attachment" alignment="vertical" layout_children="true" inset="0" />

        <!-- Personal Details -->
        <container class="subsection_box" id="pdet" file="player profile personal details"/>

        <container>

          <!-- Attributes Container -->
          <container class="player_attributes_panel" id="patp" highlight_attributes="true">
            <layout class="stick_to_sides_attachment" alignment="all" inset="0" />
          </container>
        </container>

      </container>

      <container default_height="300" priority="1">
        <layout class="arrange_horizontal_attachment" offset="0" layout="-4, -6" gap="10"/>
        <layout class="stick_to_sides_attachment" alignment="vertical" layout_children="true" inset="0" />

        <!--position data-->
        <container class="subsection_box" title="Positions">
          <layout class="stick_to_sides_attachment" alignment="all" layout_children="true" inset="0" />

          <widget class="pitch_with_player_positions" id="ppip" >
            <boolean id="vertical" value="false" />

            <boolean id="pitch_draw_goals" value="false" />
            <boolean id="pitch_draw_penalty_spots" value="false" />
            <integer id="pitch_player_radius" value="6" />

          </widget>
        </container>

        <!--form-->
        <widget class="player_form_summary_panel" id="Pfor" file="player form summary panel profile"/>

      </container>

      <container class="player_availability_panel" id="pavl" default_height="-5" minimum_height="70" priority="1"/>

    </container>

    <container class="player_stats_panel" id="pstp"/>

  </container>

</panel>
