<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', 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,user-scalable=0,minimal-ui">

    <meta name="author" content="{{ website_config('main')->meta_author }}" />
    <meta name="keywords" content="@yield('keywords', website_config('main')->meta_keywords)" />
    <meta name="description" content="@yield('description', website_config('main')->meta_description)" />
    <meta name="robots" content="@yield('robots', 'index,follow')" />

    <link rel="canonical" href="{{ url()->current() }}" />

    <title>@yield('title', website_config('main')->website_name)</title>

    <meta property="og:type" content="website" />
    <meta property="og:site_name" content="{{ website_config('main')->website_name }}" />
    <meta property="og:title" content="@yield('title', website_config('main')->website_name)" />
    <meta property="og:description" content="@yield('description', website_config('main')->meta_description)" />
    <meta property="og:url" content="{{ url()->current() }}" />
    <meta property="og:image" content="@yield('og_image', url('file/images/' . website_config('main')->website_logo_light))" />

    <meta name="twitter:card" content="summary_large_image" />
    <meta name="twitter:title" content="@yield('title', website_config('main')->website_name)" />
    <meta name="twitter:description" content="@yield('description', website_config('main')->meta_description)" />
    <meta name="twitter:image" content="@yield('og_image', url('file/images/' . website_config('main')->website_logo_light))" />

    <link rel="shortcut icon" href="{{ url('file/images/' . website_config('main')->website_favicon) }}">

    <link href="{{ asset('assets/first-template/plugins/sweetalert2/sweetalert2.min.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('assets/' . website_config('template')->number . '/css/bootstrap.min.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('assets/' . website_config('template')->number . '/css/icons.min.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('assets/' . website_config('template')->number . '/css/app.min.css') }}" rel="stylesheet" type="text/css" />

    <link href="{{ asset('assets/custom.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('assets/fab.css') }}" rel="stylesheet" type="text/css" />

    <script src="{{ asset('assets/fab.js') }}"></script>
</head>
<body class="bg-primary bg-pattern">
    <div>
        <div class="container">
            <div class="row">
                <div class="col-12">
                    <div class="d-flex align-items-center min-vh-100">
                        <div class="w-100 d-block my-5">
                            <div class="row justify-content-center">
                                <div class="col-md-8 col-lg-5">
                                    <div class="card card-animate">
                                        <div class="card-body">
                                            @if (website_config('main')->website_logo_dark <> null)
                                            <div class="text-center mb-4 mt-3">
                                                <a href="javascript:void(0);">
                                                    <span><img src="{{ url('file/images/'.website_config('main')->website_logo_dark.'') }}" alt="" height="35"></span>
                                                </a>
                                            </div>
                                            @else
                                            <div class="text-center mb-3 mt-3">
                                                <a href="javascript:void(0);" class="logo logo-admin">
                                                    <span class="text-dark text-uppercase" style="font-size: 25px; font-weight: Bold;">
                                                        {{ website_config('main')->website_name }}
                                                    </span>
                                                </a>
                                            </div>
                                            @endif
                                            @include('admin.layouts.alert')
                                            @yield('content')
                                        </div>
                                    </div>
                                    @yield('another-page')
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div> 
        </div>
    </div>
    <div id="cont" style="z-index:1000" onclick="window.location.href='https://wa.me/6281272347243'" class="fab_contenedor bottom-right vertical"><dl></dl><button class="fab primary large green ">
    <img src="{{ asset('assets/whatsapp.png') }}" style="width:60%!important">
    </button>
    </div>
    <script src="{{ asset('assets/'.website_config('template')->number.'/libs/jquery/jquery.min.js') }}"></script>
    <script src="{{ asset('assets/'.website_config('template')->number.'/libs/bootstrap/js/bootstrap.bundle.min.js') }}"></script>
    <script src="{{ asset('assets/'.website_config('template')->number.'/libs/metismenu/metisMenu.min.js') }}"></script>
    <script src="{{ asset('assets/'.website_config('template')->number.'/libs/simplebar/simplebar.min.js') }}"></script>
    <script src="{{ asset('assets/'.website_config('template')->number.'/libs/node-waves/waves.min.js') }}"></script>
    <script src="{{ asset('assets/first-template/plugins/sweetalert2/sweetalert2.min.js') }}"></script>
    <script src="{{ asset('assets/'.website_config('template')->number.'/js/app.js') }}"></script>
    @yield('script')
</body>
</html>
