<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.DatePicker?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.control.SplitPane?>
<?import javafx.scene.control.TableColumn?>
<?import javafx.scene.control.TableView?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.FlowPane?>
<?import javafx.scene.layout.VBox?>

<AnchorPane xmlns="http://javafx.com/javafx/18" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controllers.AnalysisTestController">
   <children>
      <VBox AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
         <children>
            <FlowPane alignment="CENTER_LEFT" prefHeight="30.0">
               <children>
                  <TextField fx:id="bankTextField" promptText="Bank" />
                  <TextField fx:id="bettingPercentTextField" promptText="Betting percent" />
                  <DatePicker fx:id="date" />
                  <Button fx:id="getMatchesButton" mnemonicParsing="false" onAction="#GetMatchesAction" text="Get Matches" />
               </children>
            </FlowPane>
            <SplitPane dividerPositions="0.5" orientation="VERTICAL">
              <items>
                <AnchorPane>
                     <children>
                        <ScrollPane AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
                           <content>
                              <TableView fx:id="gameViewTable" />
                           </content>
                        </ScrollPane>
                     </children>
                  </AnchorPane>
                <AnchorPane>
                     <children>
                        <SplitPane dividerPositions="0.5" prefHeight="281.0" prefWidth="398.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
                          <items>
                            <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="100.0">
                                 <children>
                                    <ScrollPane prefHeight="158.0" prefWidth="56.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
                                       <content>
                                          <TableView fx:id="activeBetsTable" />
                                       </content>
                                    </ScrollPane>
                                 </children>
                              </AnchorPane>
                            <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="100.0">
                                 <children>
                                    <VBox prefHeight="339.0" prefWidth="129.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
                                       <children>
                                          <Button fx:id="checkBetsButton" mnemonicParsing="false" onAction="#CheckBetsAction" text="Check bets" />
                                          <Button mnemonicParsing="false" onAction="#RemoveDoneBetsAction" text="Remove Done bets" />
                                          <TableView fx:id="leagueBetStatsTable" prefHeight="200.0" prefWidth="200.0">
                                            <columns>
                                              <TableColumn fx:id="statsLeagueNameColumn" prefWidth="75.0" text="League" />
                                              <TableColumn fx:id="statsHomeWinColumn" prefWidth="75.0" text="Home Wins" />
                                              <TableColumn fx:id="statsHomeLossColumn" prefWidth="75.0" text="Home Losses" />
                                              <TableColumn fx:id="statsHomePercentColumn" prefWidth="75.0" text="Home Percent" />
                                              <TableColumn fx:id="statsAwayWinColumn" prefWidth="75.0" text="Away Wins" />
                                              <TableColumn fx:id="statsAwayLossColumn" prefWidth="75.0" text="Away Losses" />
                                              <TableColumn fx:id="statsAwayPercentColumn" prefWidth="75.0" text="Away Percent" />
                                              <TableColumn fx:id="statsTotalPercentColumn" prefWidth="75.0" text="Total Percent" />
                                            </columns>
                                          </TableView>
                                       </children>
                                    </VBox>
                                 </children>
                              </AnchorPane>
                          </items>
                        </SplitPane>
                     </children>
                  </AnchorPane>
              </items>
            </SplitPane>
         </children>
      </VBox>
   </children>
</AnchorPane>
