<?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.PermissionCheckPage"
             xmlns:custom="clr-namespace:GMCabsDriverAssistantSolution.CustomControls"
             Shell.FlyoutBehavior="Disabled"
             Shell.NavBarIsVisible="False">
    <ContentPage.Resources>
        <ResourceDictionary>
            <Style x:Key="NoUnderlineEntryFrameStyle" TargetType="Frame">
                <Setter Property="Padding" Value="16,4"></Setter>
                <Setter Property="CornerRadius" Value="12"></Setter>
                <Setter Property="Margin" Value="4,8,4,4"></Setter>
                <Setter Property="HasShadow" Value="True"></Setter>
            </Style>
        </ResourceDictionary>
    </ContentPage.Resources>
    <ContentPage.Content>
        <StackLayout Orientation="Vertical" 
                     BackgroundColor="#DCDCDC" 
                     Padding="10">
            <Image Source="{OnIdiom Phone='gmlogo.png',Tablet='gmlogo_tablet.png'}" 
                   Margin="{OnIdiom Phone='48,30,48,12',Tablet='0,-50,0,-50'}"  
                   Scale="{OnIdiom Phone='1.2',Tablet='0.3'}"/>

            <Label Text="GM Cabs require access to your location in order to send jobs to you. GM Cabs Driver App collects location data to enable identification of nearby Rydo bookings even when the app is closed or not in use."
                   HorizontalTextAlignment="Center"
                   Margin="20,20,20,0"
                   FontSize="20"
                   TextColor="Black"/>
            <Label Text="Please press the continue button below and allow the permissions request to use this application."
                   HorizontalTextAlignment="Center"
                   Margin="20,20,20,0"
                   FontSize="20"
                   TextColor="Black"/>
            <Button
                Text="Continue"
                VerticalOptions="EndAndExpand"
                FontSize="20"
                Clicked="OnPermissionCheckClicked"
                Margin="20,0,20,20"/>
        </StackLayout>
    </ContentPage.Content>
</ContentPage>