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

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.FlowPane?>
<?import javafx.scene.text.Font?>

<AnchorPane fx:id="checkoutAnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="768.0" prefWidth="1024.0" style="-fx-background-color: #32343D;" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="cz.polreich.spagetka.controllers.CashierController">
   <AnchorPane fx:id="headerAnchorPane" prefHeight="100.0" prefWidth="1024.0" style="-fx-background-color: #32343D;" AnchorPane.leftAnchor="15.0" AnchorPane.rightAnchor="15.0" AnchorPane.topAnchor="15.0" BorderPane.alignment="CENTER">
      <Label fx:id="currentUserLabel" alignment="CENTER" contentDisplay="CENTER" prefHeight="45.0" prefWidth="310.0" styleClass="currentUserLabel" stylesheets="@cashier.css" textAlignment="CENTER" textOverrun="CENTER_ELLIPSIS" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0">
         <font>
            <Font size="20.0" />
         </font>
      </Label>
      <FlowPane fx:id="logInOuButtonsFlowPane" alignment="CENTER" hgap="30" orientation="HORIZONTAL" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
         <Button fx:id="logInButton" maxWidth="175.0" mnemonicParsing="false" onAction="#logInButtonAction" prefHeight="100.0" prefWidth="175.0" styleClass="button_top_side" text="%signIn" />
         <Button fx:id="logOutButton" maxWidth="175.0" mnemonicParsing="false" onAction="#logOutButtonAction" prefHeight="100.0" prefWidth="175.0" styleClass="button_top_side" text="%logout" />
      </FlowPane>
      <ImageView fx:id="internetImageView" fitHeight="80.0" fitWidth="80.0" AnchorPane.topAnchor="5.0" AnchorPane.rightAnchor="430.0" pickOnBounds="true" preserveRatio="true" />
   </AnchorPane>
   <FlowPane fx:id="leftButtonsFlowPane" hgap="20" maxWidth="476.0" orientation="VERTICAL" prefHeight="653.0" prefWidth="463.0" style="-fx-background-color: #32343D;" vgap="25" AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="10.0" AnchorPane.topAnchor="105.0" BorderPane.alignment="CENTER">
      <Button fx:id="attendanceButton" mnemonicParsing="false" onAction="#attendanceAction" styleClass="button_left_side" text="%attendance" textAlignment="CENTER" wrapText="true" />
      <Button fx:id="discountCodeGenerationButton" mnemonicParsing="false" onAction="#discountCodeGenerationButtonAction" styleClass="button_left_side" text="%discountCodeGeneration" textAlignment="CENTER" textOverrun="LEADING_WORD_ELLIPSIS" wrapText="true" />
      <Button fx:id="productsSettingsButton" mnemonicParsing="false" onAction="#productsSettingsAction" styleClass="button_left_side" text="%productsSettings" textAlignment="CENTER" wrapText="true" />
      <Button fx:id="kioskManagementButton" mnemonicParsing="false" onAction="#kioskManagementAction" styleClass="button_left_side" text="%kioskManagement" textAlignment="CENTER" wrapText="true" />
      <Button fx:id="orderManagementButton" mnemonicParsing="false" onAction="#orderManagementButtonAction" styleClass="button_left_side" text="%orderManagement" textAlignment="CENTER" wrapText="true" />
      <Button fx:id="inventoryButton" mnemonicParsing="false" onAction="#inventoryButtonAction" styleClass="button_left_side" text="%inventory" textAlignment="CENTER" wrapText="true" />
      <Button fx:id="newOrderButton" mnemonicParsing="false" onAction="#newOrderButtonAction" styleClass="button_left_side" text="%newOrder" textAlignment="CENTER" wrapText="true" />
      <Button fx:id="updateDataButton" mnemonicParsing="false" onAction="#updateDataButtonAction" styleClass="button_left_side" text="%dataUpdate" textAlignment="CENTER" wrapText="true" />

   </FlowPane>
<!--   <Button fx:id="addNewOrder" mnemonicParsing="false" onAction="#addNewOrderAction" text="new order for test" AnchorPane.leftAnchor="10.0" AnchorPane.bottomAnchor="10.0" />-->
   <ScrollPane fx:id="orderScrollPane" hbarPolicy="NEVER" stylesheets="@cashier.css" vbarPolicy="NEVER" AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="480.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="125.0" BorderPane.alignment="CENTER">
      <FlowPane fx:id="ordersFlowPane" style="-fx-background-color: #393F56;" />
   </ScrollPane>
</AnchorPane>
