<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="GMCabsDriverAssistantSolution.Views.SettingsPage"
             Title="Settings"
             Shell.FlyoutBehavior="Disabled">
    <ContentPage.Content>
        <StackLayout Orientation="Vertical" 
                     BackgroundColor="#DCDCDC">
            <StackLayout.Padding>
                <OnPlatform x:TypeArguments="Thickness">
                    <On Platform="Android">20</On>
                    <On Platform="iOS">20,60</On>
                </OnPlatform>
            </StackLayout.Padding>
            <TableView x:Name="Settings">
                <TableRoot>
                    <TableSection x:Name="SilentModeSetting" Title="Silent Mode Setting">
                        <SwitchCell x:Name="SwitchSilentMode" Text="Silent Mode" OnChanged="SilentModeSwitch_OnChanged" />
                    </TableSection>
                    <TableSection x:Name="VoucherScanSettings" Title="Voucher Scan Settings">
                        <SwitchCell x:Name="SwitchVoucherScanUseFrontCamera" Text="Use Front Camera" OnChanged="SwitchVoucherScanUseFrontCamera_OnChanged"  />
                    </TableSection>
                </TableRoot>
            </TableView>
            <Button VerticalOptions="EndAndExpand"
                    Margin="40,0,40,15"
                    Text="Close Account"
                    FontSize="20"
                    Clicked="CloseButton_Clicked"/>
        </StackLayout>
    </ContentPage.Content>

</ContentPage>