<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="csrf-token" content="{{ csrf_token() }}"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="{{ asset('images/favicon.png') }}"/>
    <title>{{ config('app.name') }}</title>

    <!-- Bootstrap -->
    <link href="{{ asset('theme/bootstrap/dist/css/bootstrap.min.css') }}" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="{{ asset('theme/font-awesome/css/font-awesome.min.css') }}" rel="stylesheet">
    <!-- NProgress -->
    <link href="{{ asset('theme/nprogress/nprogress.css') }}" rel="stylesheet">
    <!-- bootstrap-progressbar -->
    <link href="{{ asset('theme/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css') }}" rel="stylesheet">
    <!-- bootstrap-daterangepicker -->
    <link href="{{ asset('theme/bootstrap-daterangepicker/daterangepicker.css') }}" rel="stylesheet">
    <!-- Custom Theme Style -->

    <!-- bootstrap-wysiwyg -->
    <link href="{{ asset('theme/google-code-prettify/bin/prettify.min.css') }}" rel="stylesheet">
    <!-- Select2 -->
    <link href="{{ asset('theme/select2/dist/css/select2.min.css') }}" rel="stylesheet">
    <link rel="stylesheet" href="{{ asset('css/loader.css') }}">
    <link rel="stylesheet" href="{{ asset('css/spinner.css') }}">
    <link href="{{ asset('theme/build/css/custom.min.css') }}" rel="stylesheet">
    <link href="{{ asset('css/improved.css') }}" rel="stylesheet">
    <link href="{{ asset('css/rtg_custom.css') }}" rel="stylesheet">
    <link href="{{ asset('css/iq-default.min.css') }}" rel="stylesheet">
    <link href="{{ asset('css/smart_credit_report.css') }}" rel="stylesheet">
    <link href="{{ asset('css/custom.css') }}" rel="stylesheet">
    <!-- Magnific Popup Style-->
    <link href="{{ asset('js/magnify/magnific-popup.css') }}" rel="stylesheet">
    <style>
        .container_body{
            height: fit-content;
            min-height: 752px !important;
        }
        .swal2-styled.swal2-confirm {
            font-size: 1.3em !important;
        }
        .modal-header-warning {
             color:#fff;
             padding:9px 15px;
             border-bottom:1px solid #eee;
             background-color: #f0ad4e;
             -webkit-border-top-left-radius: 5px;
             -webkit-border-top-right-radius: 5px;
             -moz-border-radius-topleft: 5px;
             -moz-border-radius-topright: 5px;
             border-top-left-radius: 5px;
             border-top-right-radius: 5px;
         }
        .modal-header-info {
            color:#fff;
            padding:9px 15px;
            border-bottom:1px solid #eee;
            background-color: #5bc0de;
            -webkit-border-top-left-radius: 5px;
            -webkit-border-top-right-radius: 5px;
            -moz-border-radius-topleft: 5px;
            -moz-border-radius-topright: 5px;
            border-top-left-radius: 5px;
            border-top-right-radius: 5px;
        }
        .modal-width{
            width: 35%;
        }
        ul#remove {
            list-style-type: none;
            padding: 0;
        }
    </style>
    @stack('css')

</head>

<body class="nav-md"> <!-- nav-sm -->
<div id="spinner" class="loading">
    <div id="loading">
        <span class="timer-loader">Loading…</span>
    </div>
</div>
<div class="container body">
    <div class="main_container">
        @if (Auth::check())
            @include('partials/sidemenu')
            @include('partials/topbar')
            <div class="right_col container_body" role="main" >
                @if ($errors->any())
                    <div class="alert alert-danger" style="margin-top: 50px" onclick="this.classList.add('hidden');">
                        <ul id="remove">
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        </ul>
                    </div>
                @endif
                @if (session()->has('success'))
                    <div class="alert alert-success" style="margin-top: 50px" onclick="this.classList.add('hidden');">
                        {{ session()->get('success') }}
                    </div>
                @endif
                @if (session()->has('error'))
                    <div class="alert alert-danger" style="margin-top: 50px" onclick="this.classList.add('hidden');">
                        {{ session()->get('error') }}
                    </div>
                @endif
                @yield('content')
                @include('partials.modal_views')
                @include('partials.footer')
            </div>
        @else
            @yield('content')
        @endif
    </div>
</div>



<!-- jQuery -->
<script src="{{ asset('theme/jquery/dist/jquery.min.js') }}"></script>
<!-- Bootstrap -->
<script src="{{ asset('theme/bootstrap/dist/js/bootstrap.min.js') }}"></script>
<!-- FastClick -->
<script src="{{ asset('theme/fastclick/lib/fastclick.js') }}"></script>

<!-- NProgress -->
<script src="{{ asset('theme/nprogress/nprogress.js') }}"></script>

<!-- bootstrap-wysiwyg -->
<script src="{{ asset('theme/bootstrap-wysiwyg/js/bootstrap-wysiwyg.min.js') }}"></script>
<script src="{{ asset('theme/jquery.hotkeys/jquery.hotkeys.js') }}"></script>
<script src="{{ asset('theme/google-code-prettify/src/prettify.js') }}"></script>

<!-- summer note -->
<script src="{{asset('/')}}js/summernote/summernote.min.js"></script>

<!-- validation Scripts -->
<script src="{{asset('/')}}js/jsvalidate/jquery.validate.min.js"></script>

<!-- Custom Theme Scripts -->
<script src="{{ asset('theme/build/js/custom.min.js') }}"></script>


<!-- Magnific Popup Script-->
<script src="{{ asset('js/magnify/jquery.magnific-popup.js') }}"></script>

<!-- Sweetalert Script-->
<script src="{{ asset('js/sweetalert2/sweetalert2.min.js') }}"></script>

<script src="{{asset('/')}}js/Common/common-helper.js?v=1.0.4"></script>
<!-- <script>
$(window).ready(function(){
    $(".right_col").css("height", $(document).height());
    $(".left_col").css("height", $(document).height());
});
</script> -->

<script type="text/javascript" src="https://cdn.ywxi.net/js/1.js" async></script>
@stack('script')
</body>
</html>
