<?php
$data = \App\Helper\admin\siteInformation::siteInfo();
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>{{$data['site_name']}}</title>
    <link rel="shortcut icon" href="{{$data['fav_icon']}}" type="image/x-icon">
    <link rel="icon" href="{{$data['fav_icon']}}" type="image/x-icon">
    <link rel="stylesheet" href="{{url('/')}}/frontend/library/style/app.css">
    <link rel="stylesheet" href="{{ url('/') }}/admin/plugins/toastr/toastr.min.css">
    <link rel="stylesheet" href="https://maxst.icons8.com/vue-static/landings/line-awesome/line-awesome/1.3.0/css/line-awesome.min.css">
{{--    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"/>--}}
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"/>

    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Audiowide&family=Barlow+Condensed:wght@400;500;600;700;800;900&family=Raleway:wght@100;200;300;400;500&family=Roboto:wght@400;500;700;900&display=swap" rel="stylesheet">

    <style type="text/css">
        .loading {
            z-index: 20;
            position: absolute;
            top: 0;
            left:-5px;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.4);
        }
        .loading-content {
            position: absolute;
            border: 16px solid #f3f3f3;
            border-top: 16px solid #3498db;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            top: 40%;
            left:50%;
            animation: spin 2s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
    </style>
</head>
<body>


{{--header--}}
@include('frontend.layout.header')

<section id="loading">
    <div id="loading-content"></div>
</section>

@yield('content')
@include('frontend.layout.footer')
<a id="back-to-top" href="#" class="btn-light btn-lg back-to-top" role="button"><i data-feather="arrow-up"></i></a>

<script src="{{url('/')}}/frontend/library/js/app-min.js"></script>
<script src="{{ url('/') }}/admin/plugins/toastr/toastr.min.js"></script>
<script src="{{ asset('js/share.js') }}"></script>
<script>
    @if(Session::has('success'))
        toastr.options =
        {
            "closeButton" : true,
            "progressBar" : true
        }
    toastr.success("{{ session('success') }}");
    @endif
</script>

{{--<script type="text/javascript">--}}

{{--    $(document).ajaxStart(function() {--}}
{{--        $('#loading').addClass('loading');--}}
{{--        $('#loading-content').addClass('loading-content');--}}
{{--    });--}}
{{--    $(document).ajaxStop(function() {--}}
{{--        $('#loading').removeClass('loading');--}}
{{--        $('#loading-content').removeClass('loading-content');--}}
{{--    });--}}

{{--</script>--}}
</body>
</html>
@stack('scripts')
