<!DOCTYPE html>
<html lang="<?php echo e(app()->getLocale()); ?>">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>" />
    <meta name="format-detection" content="telephone=no">
    <meta name="robots" content="noindex, nofollow" />
    <title><?php echo $__env->yieldContent('title'); ?> - <?php echo e(config('app.name')); ?></title>

    <?php if( config('site.logo') ): ?>
        <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="<?php echo e(asset_url('uploads','logo/'. config('site.logo'))); ?>" />
      	<link rel="icon" type="image/x-icon" href="<?php echo e(asset_url('uploads','logo/'. config('site.logo'))); ?>" />
      	<link rel="apple-touch-icon" sizes="180x180" href="<?php echo e(asset_url('uploads','logo/'. config('site.logo'))); ?>">
      	<link rel="icon" sizes="192x192" href="<?php echo e(asset_url('uploads','logo/'. config('site.logo'))); ?>">
    <?php endif; ?>

    <link rel="stylesheet" href="<?php echo e(asset_url('plugins','bootstrap/bootstrap.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset_url('plugins','font-awesome/font-awesome.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset_url('plugins','ionicons/ionicons.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset_url('css','AdminLTE.css')); ?>?_dc=<?php echo e(config('app.timestamp')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset_url('plugins','sweetalert2/sweetalert2.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset_url('plugins','jquery-webui-popover/jquery.webui-popover.css')); ?>">

    <?php 
    $gtagID = config('site.google_analytics_tracking_id') ? config('site.google_analytics_tracking_id') : config('site.google_adwords_conversion_id');
     ?>

    <?php if( $gtagID && !Route::is('admin.*') ): ?>
      <script async src="https://www.googletagmanager.com/gtag/js?id=<?php echo e($gtagID); ?>"></script>
      <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());

        <?php if( config('site.google_analytics_tracking_id') ): ?>
          gtag('config', '<?php echo e(config('site.google_analytics_tracking_id')); ?>');
        <?php endif; ?>

        <?php if( config('site.google_adwords_conversion_id') && config('site.google_adwords_conversions') ): ?>
          gtag('config', '<?php echo e(config('site.google_adwords_conversion_id')); ?>');
        <?php endif; ?>
      </script>
    <?php endif; ?>

    <script src="https://polyfill.io/v3/polyfill.js?features=es6,es7&flags=gated"></script>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="<?php echo e(asset_url('plugins','html5shiv/html5shiv.min.js')); ?>"></script>
    <script src="<?php echo e(asset_url('plugins','respond/respond.min.js')); ?>"></script>
    <![endif]-->

    <script src="<?php echo e(asset_url('plugins','jquery/jquery.min.js')); ?>"></script>
    <script src="<?php echo e(asset_url('plugins','jquery/jquery-migrate.min.js')); ?>"></script>
    <script src="<?php echo e(asset_url('plugins','bootstrap/bootstrap.min.js')); ?>"></script>

    <?php if( Route::is('admin.*') || Route::is('driver.*') || Route::is('dispatch.*') || Route::is('subscription.*') || Route::is('reports.*') ): ?>
        <script data-cfasync="false" src="<?php echo e(asset_url('plugins','iframe-resizer/iframeResizer.min.js')); ?>"></script>
    <?php endif; ?>

    <?php if( !Route::is('admin.map.index') ): ?>
        <script data-cfasync="false" src="<?php echo e(asset_url('plugins','iframe-resizer/iframeResizer.contentWindow.min.js')); ?>"></script>
    <?php endif; ?>

    <script src="<?php echo e(asset_url('plugins','jquery-loading-overlay/loadingoverlay.min.js')); ?>"></script>

    <?php if( Route::is('admin.*') || Route::is('driver.*') || Route::is('dispatch.*') || Route::is('subscription.*') || Route::is('reports.*')): ?>
        <?php echo $__env->make('layouts.eto-js', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    <?php endif; ?>

    <script>
    $(function() {
        $.LoadingOverlaySetup({
            image: '',
            fontawesome: 'fa fa-spinner fa-spin',
            maxSize: '80px',
            minSize: '20px',
            resizeInterval: 0,
            size: '50%',
            fade: [0,200]
        });
    });

    var EasyTaxiOffice = {
        csrfToken: '<?php echo e(csrf_token()); ?>',
        appPath: '<?php echo e(url('/')); ?>',
        timestamp: '<?php echo e(config('app.timestamp')); ?>',
        timezone: '<?php echo e(config('app.timezone')); ?>',
        cookiePath: '<?php echo e(config('session.path')); ?>',
        cookieSecure: <?php echo e(config('session.secure') ? 'true' : 'false'); ?>,
        cookieSameSite: <?php echo config('session.same_site') ? "'".config('session.same_site')."'" : 'null'; ?>,
    };
    </script>

    <?php if( request()->get('tmpl') == 'body' ): ?>
        <?php echo $__env->yieldContent('subheader'); ?>

        <?php if( Route::is('admin.*') ): ?>
            <link rel="stylesheet" href="<?php echo e(asset_url('css','admin.css')); ?>?_dc=<?php echo e(config('app.timestamp')); ?>">
        <?php elseif( Route::is('driver.*') ): ?>
            <link rel="stylesheet" href="<?php echo e(asset_url('css','driver.css')); ?>?_dc=<?php echo e(config('app.timestamp')); ?>">
        <?php endif; ?>
    <?php else: ?>
        <?php echo $__env->yieldContent('header'); ?>
    <?php endif; ?>

    <?php if( config('site.code_head') && !Route::is('admin.*') && !Route::is('driver.*') ): ?>
        <?php echo config('site.code_head'); ?>

    <?php endif; ?>
</head>
<body class="<?php echo $__env->yieldContent('bodyClass'); ?>">
    <!--
    Copyright (c) 2020 by EasyTaxiOffice - All Rights Reserved
    Website: https://easytaxioffice.com
    Licence: https://easytaxioffice.com/licence/
    -->

    <?php if( request()->get('tmpl') == 'body' ): ?>
        <?php echo $__env->yieldContent('subcontent'); ?>
        <?php echo $__env->yieldContent('subfooter'); ?>
    <?php else: ?>
        <?php echo $__env->yieldContent('content'); ?>
        <?php echo $__env->yieldContent('footer'); ?>
    <?php endif; ?>

    <?php if( config('site.code_body') && !Route::is('admin.*') && !Route::is('driver.*') ): ?>
        <?php echo config('site.code_body'); ?>

    <?php endif; ?>
</body>
</html>
