<!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="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php echo $__env->yieldContent('title'); ?></title>
	<meta name="description" content="<?php echo $__env->yieldContent('description'); ?>">
	<meta name="keywords" content="<?php echo $__env->yieldContent('keywords'); ?>">
    <link href="<?php echo e(asset('css/print.css')); ?>" rel="stylesheet" media="print" type="text/css">
    <link href="<?php echo e(asset('css/bootstrap.min.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/normalize.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/fontawesome/fontawesome-all.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/font-awesome.min.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/linearicons.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/themify-icons.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/icomoon.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/scrollbar.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/owl.carousel.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/chosen.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/main.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/dashboard.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/color.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/transitions.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/responsive.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/sweetalert.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/vue-transition.css')); ?>" rel="stylesheet">

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.5.1">
    <?php
    if(Schema::hasTable('users')){
        $user_role = "";
        if(!empty(Auth::user()->id)){
            $user_id = Auth::user()->id;
            $user_role_type = App\User::getUserRoleType($user_id);
            $user_role = $user_role_type->role_type;
        }
    }
    ?>
    <script type="text/javascript">
        var APP_URL = <?php echo json_encode(url('/')); ?>

        var USER_ROLE = <?php echo json_encode($user_role); ?>

    </script>
</head>

<body class="sj-login <?php echo e(\App\Helper::getBodyLangClass()); ?>">
    <?php echo e(\App::setLocale(env('APP_LANG'))); ?>

    <div id="sj-wrapper" class="sj-wrapper">
        <div class="sj-contentwrapper">
            <header id="sj-header" class="sj-header sj-haslayout">
                <?php if(Schema::hasTable('users')): ?>
                <?php echo $__env->make('includes.header', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?> <?php endif; ?>
            </header>
            <main id="sj-main" class="sj-main sj-haslayout sj-sectionspace">
                <?php echo $__env->yieldContent('content'); ?>
            </main>
            <footer id="sj-footer" class="sj-footer sj-haslayout">
                <?php if(Schema::hasTable('users')): ?>
                <?php echo $__env->make('includes.footer', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?> <?php endif; ?>
            </footer>
        </div>
    </div>
    <div id="sj-searcharea" class="sj-searcharea">
        <button type="button" class="close">×</button>
        <?php echo Form::open([
            'url' => url('published/editions/filters'),'method'=> 'get', 'class' => 'sj-formtheme sj-formsearcmain'
            ]); ?>

            <input type="search" value="" placeholder="<?php echo e(trans('prs.ph_search_here')); ?>" name="s" />
            <button type="submit" class="sj-btn sj-btnactive"><span>Search</span></button>
        <?php echo Form::close(); ?>

    </div>
    <script src="<?php echo e(asset('js/jquery-3.3.1.js')); ?>"></script>
    <script src="<?php echo e(asset('js/tinymce/tinymce.min.js')); ?>"></script>
    <script src="<?php echo e(asset('js/app.js')); ?>"></script>
    <script src="<?php echo e(asset('js/scrollbar.min.js')); ?>"></script>
    <script src="<?php echo e(asset('js/sweetalert.min.js')); ?>"></script>
</body>

</html>
