<?xml version='1.0' encoding='utf-8'?>
<panel>
  <layout class="stick_to_sides_attachment" alignment="all" inset="0" layout_children="true"/>

  <container class="horizontal_adaptive_container" inset="0" offset="0" gap="4">

    <!--left hand side-->
    <container default_width="-1" minimum_width="996" priority="1">
      <layout class="arrange_vertical_attachment" layout="195,-1" offset="0" gap="4"/>
      <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

      <!--top (ticket/team report)-->
      <container>
        <layout class="arrange_horizontal_attachment" layout="440,-1,-2" offset="0" gap="4"/>
        <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" layout_children="true"/>

        <!--ticket-->
        <container class="bordered_box" appearance="boxes/ticket/paper">
          <layout class="arrange_horizontal_attachment" layout="-1,50" offset="0" gap="4"/>
          <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" layout_children="true"/>

          <!--info-->
          <container>
            <layout class="arrange_vertical_attachment" layout="-1,5,-1,-1,-1,-1,-1,25" offset="0" gap="7"/>
            <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

            <!--stadium/city-->
            <container>
              <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" layout_children="true"/>
              <layout class="fit_children_attachment" alignment="vertical" offset="0"/>
              <layout class="arrange_horizontal_attachment" alignment="left,extend" offset="0" gap="6"/>

              <widget class="stadium_label" id="stdi" auto_size="all" font="fonts/capitals_bold" colour="white">
                <layout class="stick_to_sides_attachment" alignment="vertical" inset="0"/>
                <record id="object_property">
                  <integer id="get_property" value="stad"/>
                </record>
              </widget>

              <widget class="city_label" id="ctyl" auto_size="vertical" colour="white">
                <layout class="stick_to_sides_attachment" alignment="vertical" inset="2"/>
                <record id="object_property">
                  <integer id="get_property" value="SctI"/>
                </record>
              </widget>

            </container>

            <!--spacer-->
            <container/>

            <!--teams text-->
            <container>
              <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" layout_children="true"/>
              <layout class="fit_children_attachment" alignment="vertical" offset="0"/>
              <layout class="arrange_horizontal_attachment" alignment="left" offset="0" gap="4"/>

              <widget class="team_button" id="hmTM" icon_enabled="false" mode="1" auto_size="all" size="7" font="fonts/capitals_bold" colour="white">
                <layout class="stick_to_sides_attachment" alignment="vertical" inset="0"/>
                <record id="object_property">
                  <integer id="get_property" value="home"/>
                </record>
              </widget>

              <widget class="text" multiline="false" auto_size="all" size="10" colour="white">
                <translation id="text" translation_id="332200" type="use" value="vs.[COMMENT: text appearing in the calendar bar indicating who your next match is against (opposition is appended afterwards)]"/>
                <layout class="stick_to_sides_attachment" alignment="vertical" inset="2"/>
              </widget>

              <widget class="team_button" id="awTM" icon_enabled="false" mode="1" auto_size="all" size="7" font="fonts/capitals_bold" colour="white">
                <layout class="stick_to_sides_attachment" alignment="vertical" inset="0"/>
                <record id="object_property">
                  <integer id="get_property" value="away"/>
                </record>
              </widget>

            </container>

            <!--comp-->
            <widget class="fixture_name_text" id="FxNV" auto_size="vertical" colour="white">
              <record id="object_property">
                <integer id="get_property" value="FxNm"/>
              </record>
            </widget>

            <!--date-->
            <widget class="date_cell" id="date" format="[%date#1-long]" auto_size="vertical" size="7" alignment="left" colour="white">
              <record id="object_property">
                <integer id="get_property" value="fxdt"/>
              </record>
            </widget>

            <!--time-->
            <widget class="date_cell" id="time" alignment="left" auto_size="vertical" size="7" colour="white">
              <translation id="format" translation_id="346726" type="use" value="Kick Off [%date#1-time][COMMENT: string telling us when the kick off of a match is]"/>
              <record id="object_property">
                <integer id="get_property" value="FXTm"/>
              </record>
            </widget>

            <!--aggregate text-->
            <widget class="fixture_aggregate_label" id="aggt" auto_size="vertical" colour="white">
              <record id="object_property">
                <integer id="get_property" value="FxAg"/>
              </record>
            </widget>

            <!--more logo action and prices-->
            <container>
              <layout class="arrange_horizontal_attachment" layout="-1,-1" offset="0" gap="0"/>
              <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" layout_children="true"/>

              <!--comp logo-->
              <widget class="client_object_logo_picture" id="cmlG" scale_picture="true">
                <boolean id="keep_aspect_ratio" value="true"/>
                <flags id="image_alignment" value="left"/>
                <record id="object_property">
                  <integer id="get_property" value="fxCo"/>
                  <integer id="set_property" value="objt"/>
                </record>
              </widget>

              <!--ticket price-->
              <widget class="cash_cell" id="pric" alignment="left, centre_y" multiline="false" colour="white" font="fonts/capitals">
                <translation id="format" translation_id="346560" type="use" value="Admission: [%cash#1-short-roundnone][COMMENT: string telling us the admission price for a match ticket]"/>
                <record id="object_property">
                  <integer id="get_property" value="FxTP"/>
                </record>
              </widget>
            </container>
          </container>

          <!--badges-->
          <container>
            <layout class="arrange_vertical_attachment" alignment="top" offset="0" gap="5"/>
            <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

            <!--home team-->
            <widget class="client_object_logo_picture" id="hmtm" scale_picture="true" height="40">
              <boolean id="keep_aspect_ratio" value="true"/>
              <flags id="image_alignment" value="centre"/>
              <record id="object_property">
                <integer id="get_property" value="home"/>
                <integer id="set_property" value="objt"/>
              </record>
            </widget>

            <!--away team-->
            <widget class="client_object_logo_picture" id="awtm" scale_picture="true" height="40">
              <boolean id="keep_aspect_ratio" value="true"/>
              <flags id="image_alignment" value="centre"/>
              <record id="object_property">
                <integer id="get_property" value="away"/>
                <integer id="set_property" value="objt"/>
              </record>
            </widget>
          </container>

        </container>

		
		 <!--referee-->

	<widget class="referee_profile_panel" id="refp">
        <record id="object_property">
          <list id="get_properties">
            <record>
              <integer id="get_property" value="FRef" />
              <integer id="set_property" value="objt" />
            </record>
          </list>
        </record>
      </widget>
	  
        <!--team report-->
        <container class="tabbed_container_match" id="tmtb">
          <widget class="team_report_pre_match_panel" id="hmTR" team_index="0"/>
          <widget class="team_report_pre_match_panel" id="awTR" team_index="1"/>
        </container>
  
	  </container>

      <!--bottom (all match details)-->
      <container class="horizontal_adaptive_container" inset="0" offset="0" gap="4">

        <!--left (match details, head to head table)-->
        <container default_width="-3" minimum_width="900" priority="1">
          <layout class="arrange_vertical_attachment" layout="300,-1" offset="0" gap="4"/>
          <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

          <!--match details/prev match/team news-->
          <container>
            <layout class="arrange_horizontal_attachment" layout="-1,-1,-1" offset="0" gap="4"/>
            <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" layout_children="true"/>

            <!--match details-->
            <container class="subsection_box">
              <translation id="title" translation_id="346746" type="use" value="Match Details[COMMENT: title for a box showing information about the upcoming match]"/>
              <layout class="arrange_vertical_attachment" alignment="bottom,extend" offset="0" gap="4"/>
              <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

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

                <!--conditions-->
                <widget class="text" style="semi_bold" colour="title" auto_size="vertical">
                  <translation id="text" translation_id="349539" type="use" value="Conditions[COMMENT: match preview panel; weather conditions, not to be confused with search conditions used on Player Search screen]"/>
                </widget>
                <container class="bordered_box" appearance="boxes/plain/subtle/paper">
                  <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" layout_children="true"/>
                  <layout class="fit_children_attachment" alignment="vertical" offset="0"/>
                  <layout class="arrange_horizontal_attachment" layout="-1,-1" offset="0" gap="4"/>

                  <!--weather-->
                  <widget class="weather_indicator_panel_horizontal" id="weat">
                    <boolean id="show_weather_label" value="true"/>
                    <boolean id="show_weather_icon" value="true"/>
                    <boolean id="show_temperature_on_icon" value="true"/>
                    <boolean id="weather_icon_size" value="10"/>
                    <record id="object_property">
                      <integer id="get_property" value="FxWe"/>
                      <integer id="set_property" value="valu"/>
                    </record>
                  </widget>

                  <!--pitch-->
                  <widget class="pitch_condition_label" id="pico" spec="text" alignment="centre_y,left" add_suffix="true">
                    <record id="object_property">
                      <integer id="get_property" value="Sptc"/>
                      <integer id="set_property" value="valu"/>
                    </record>
                  </widget>
                </container>

                <container height="4"/>

                <!--odds-->
                <widget class="text" id="oddp" style="semi_bold" colour="title" auto_size="vertical"/>
                <container class="bordered_box" appearance="boxes/plain/subtle/paper">
                  <layout class="stick_to_sides_attachment" alignment="all" inset="0" layout_children="true"/>

                  <widget class="text" id="nood">
                    <translation id="text" translation_id="227487" type="use" value="None"/>
                  </widget>

                  <container id="oddS">
                    <layout class="arrange_vertical_attachment" alignment="top" offset="0" gap="6"/>
                    <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

                    <widget class="icon_button" id="oddh" spec="text" auto_size="vertical" show_button_appearance="false"/>
                    <widget class="icon_button" id="oddd" spec="text" auto_size="vertical" show_button_appearance="false" icon="icons/fixture/draw_odds"/>
                    <widget class="icon_button" id="odda" spec="text" auto_size="vertical" show_button_appearance="false"/>
                  </container>
                </container>
              </container>

              <container>
                <layout class="stick_to_sides_attachment" alignment="vertical" layout_children="true" inset="0"/>
                <layout class="fit_children_attachment" alignment="vertical" offset="0"/>
                <layout class="arrange_horizontal_attachment" alignment="right" offset="1"/>

                <!--rules button-->
                <widget class="button" id="ruls" click_event="ruls" appearance="button/link/popup/button" auto_size="horizontal">
                  <translation id="text" translation_id="247256" type="use" value="Match Rules"/>
                </widget>
              </container>
            </container>

            <!--previous match-->
            <container class="subsection_box">
              <translation id="title" translation_id="346804" type="use" value="Previous Match[COMMENT: title for a box containing details on teams' last match played]"/>
              <layout class="arrange_vertical_attachment" layout="-1,-1" offset="0" gap="7"/>
              <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

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

                <!--home prev match-->
                <widget class="team_button" id="homP" style="semi_bold" colour="title" auto_size="vertical">
                  <record id="object_property">
                    <list id="get_properties">
                      <record>
                        <integer id="get_property" value="home"/>
                      </record>
                    </list>
                  </record>
                </widget>
                <container class="bordered_box" appearance="boxes/plain/subtle/paper">
                  <layout class="stick_to_sides_attachment" alignment="all" inset="0" layout_children="true"/>

                  <widget class="fixture_details_match_preview_panel" id="hpre">
                    <record id="object_property">
                      <list id="get_properties">
                        <record>
                          <integer id="get_property" value="home"/>
                          <integer id="set_property" value="Ttea"/>
                          <boolean id="dont_set_object" value="true"/>
                        </record>
                        <record>
                          <integer id="get_property" value="htLM"/>
                          <integer id="set_property" value="objt"/>
                        </record>
                      </list>
                    </record>
                  </widget>
                </container>
              </container>

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

                <!--away prev match-->
                <widget class="team_button" id="awaP" style="semi_bold" colour="title" auto_size="vertical">
                  <record id="object_property">
                    <list id="get_properties">
                      <record>
                        <integer id="get_property" value="away"/>
                      </record>
                    </list>
                  </record>
                </widget>
                <container class="bordered_box" appearance="boxes/plain/subtle/paper">
                  <layout class="stick_to_sides_attachment" alignment="all" inset="0" layout_children="true"/>

                  <widget class="fixture_details_match_preview_panel" id="apre">
                    <record id="object_property">
                      <list id="get_properties">
                        <record>
                          <integer id="get_property" value="away"/>
                          <integer id="set_property" value="Ttea"/>
                          <boolean id="dont_set_object" value="true"/>
                        </record>
                        <record>
                          <integer id="get_property" value="atLM"/>
                          <integer id="set_property" value="objt"/>
                        </record>
                      </list>
                    </record>
                  </widget>
                </container>
              </container>
            </container>

            <!--team news-->
            <container class="subsection_box">
              <translation id="title" translation_id="344976" type="use" value="Team News[COMMENT: team report panel; team news ahead of the next match]"/>
              <layout class="arrange_vertical_attachment" layout="-1,-1" offset="0" gap="7"/>
              <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

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

                <!--home team news-->
                <widget class="team_button" id="homt" style="semi_bold" colour="title" auto_size="vertical">
                  <record id="object_property">
                    <list id="get_properties">
                      <record>
                        <integer id="get_property" value="home"/>
                      </record>
                    </list>
                  </record>
                </widget>
                <container class="bordered_box" appearance="boxes/plain/subtle/paper">
                  <layout class="stick_to_sides_attachment" alignment="all" inset="0" layout_children="true"/>

                  <widget class="fixture_news_text" id="htnw" mode="fill_rows, stripe_rows">
                    <!-- default properties for everything in a table -->
                    <record id="default_properties">
                      <flags id="alignment" value="left, centre_y"/>
                    </record>
                    <record id="object_property">
                      <list id="get_properties">
                        <record>
                          <integer id="get_property" value="FxHN"/>
                        </record>
                      </list>
                    </record>
                  </widget>
                </container>
              </container>

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

                <!--away team news-->
                <widget class="team_button" id="awat" style="semi_bold" colour="title" auto_size="vertical">
                  <record id="object_property">
                    <list id="get_properties">
                      <record>
                        <integer id="get_property" value="away"/>
                      </record>
                    </list>
                  </record>
                </widget>
                
                <container class="bordered_box" appearance="boxes/plain/subtle/paper">
                  <layout class="stick_to_sides_attachment" alignment="all" inset="0" layout_children="true"/>

                  <widget class="fixture_news_text" id="atnw" mode="fill_rows, stripe_rows">
                    <!-- default properties for everything in a table -->
                    <record id="default_properties">
                      <flags id="alignment" value="left, centre_y"/>
                    </record>
                    <record id="object_property">
                      <list id="get_properties">
                        <record>
                          <integer id="get_property" value="FxAN"/>
                        </record>
                      </list>
                    </record>
                  </widget>
                </container>
              </container>

            </container>
          </container>

          <!--previous results/goalscorers-->
          <container class="horizontal_adaptive_container" inset="0" offset="0" gap="4">

            <!--previous results-->
            <container class="past_meetings_panel" id="pmet" file="past meetings panel match preview" default_width="-2">
              <record id="object_property">
                <list id="get_properties">
                  <record>
                    <integer id="get_property" value="home"/>
                    <integer id="set_property" value="objt"/>
                  </record>
                </list>
              </record>
            </container>

            <!--goalscorers-->
            <container class="subsection_box" id="glsc" default_width="-1">
              <translation id="title" translation_id="336868" type="use" value="Top Goalscorers[COMMENT: title for table showing players who have scored most goals]"/>
              <layout class="stick_to_sides_attachment" alignment="all" inset="0" layout_children="true"/>

              <widget class="competition_player_stats_panel" id="goal" file="competition overview player stats">
                <boolean id="comp_stats_show_headings" value="false"/>
                <boolean id="comp_stats_hide_info_icon" value="true"/>
                <boolean id="comp_stats_hide_team_logo" value="true"/>
                <integer id="type" value="2"/>
                <boolean id="fixed" value="true"/>
              </widget>

            </container>
          </container>
        </container>

        <!--right (media, assists)-->
        <container default_width="-1" minimum_width="300" priority="2">
          <layout class="arrange_vertical_attachment" layout="300,-1" offset="0" gap="4"/>
          <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

          <!--media-->
          <container class="subsection_box">
            <translation id="title" translation_id="227745" type="use" value="Media"/>
            <layout class="stick_to_sides_attachment" alignment="all" inset="0" layout_children="true"/>
            <container class="competition_news_panel" file="competition news mini panel" id="news" number_of_stories_to_request="12" show_daily_news_request="true" parent="pmpv">
              <record id="object_property">
                <list id="get_properties">
                  <record>
                    <integer id="get_property" value="objt"/>
                    <integer id="set_property" value="objt"/>
                  </record>
                </list>
              </record>
            </container>
          </container>

          <!--assists-->
          <container class="subsection_box">
            <translation id="title" translation_id="227847" type="use" value="Assists"/>
            <layout class="stick_to_sides_attachment" alignment="all" inset="0" layout_children="true"/>

            <widget class="competition_player_stats_panel" id="asst" file="competition overview player stats">
              <boolean id="comp_stats_show_headings" value="false"/>
              <boolean id="comp_stats_hide_info_icon" value="true"/>
              <boolean id="comp_stats_hide_team_logo" value="true"/>
              <integer id="type" value="5"/>
              <boolean id="fixed" value="true"/>
            </widget>

          </container>
        </container>

      </container>

    </container>

    <!--right - table/fixtures-->
    <container class="vertical_adaptive_container" inset="0" offset="0" gap="4" default_width="500" minimum_width="500" priority="2">

      <!--table-->
      <container class="subsection_box" id="cost" default_height="-2" minimum_height="500" priority="1">
        <translation id="title" translation_id="336669" type="use" value="Standings[COMMENT: title of competition stages section of competition overview]"/>
        <layout class="stick_to_sides_attachment" alignment="all" layout_children="true" inset="0"/>

        <widget class="competition_stage_panel" id="leag" file="competition overview stage no header">
          <record id="object_property">
            <list id="get_properties">
              <record>
                <integer id="get_property" value="cssi"/>
                <integer id="set_property" value="cssi"/>
                <boolean id="dont_set_object" value="true"/>
              </record>
              <record>
                <integer id="get_property" value="cmsi"/>
                <integer id="set_property" value="cmsi"/>
                <boolean id="dont_set_object" value="true"/>
              </record>
              <record>
                <integer id="get_property" value="comp"/>
                <integer id="set_property" value="objt"/>
              </record>
            </list>
          </record>
        </widget>
      </container>

      <!--fixtures-->
      <container class="subsection_box" id="tdfx" default_height="-1" minimum_height="250" priority="2">
        <translation id="title" translation_id="324243" type="use" value="Today's Fixtures[COMMENT: how to system; help string]"/>
        <layout class="stick_to_sides_attachment" alignment="all" layout_children="true" inset="0"/>

        <widget class="competition_fixtures_panel" id="fixt" file="competition fixtures match preview" svsl="false">
          <record id="object_property">
            <list id="get_properties">
              <record>
                <integer id="get_property" value="cssi" />
                <integer id="set_property" value="cssi" />
                <boolean id="dont_set_object" value="true" />
              </record>
              <record>
                <integer id="get_property" value="cmsi" />
                <integer id="set_property" value="cmsi" />
                <boolean id="dont_set_object" value="true" />
              </record>
              <record>
                <integer id="get_property" value="comp" />
                <integer id="set_property" value="objt" />
              </record>
            </list>
          </record>
        </widget>
      </container>
    </container>

  </container>
</panel>