app.blade.php 1.25 KB
Newer Older
ZeMKI's avatar
ZeMKI committed
1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">

10
    <title>{{ config('app.name', 'Mesort') }}</title>
ZeMKI's avatar
ZeMKI committed
11
12

    <!-- Scripts -->
ZeMKI's avatar
ZeMKI committed
13
14
15
    <script src="{{ asset('js/manifest.js') }}"></script>
    <script src="{{ asset('js/vendor.js') }}"></script>
    <script src="{{ asset('js/app.js') }}" defer></script>
ZeMKI's avatar
ZeMKI committed
16
17
18
19
20
21
22

    <!-- Fonts -->
    <link rel="dns-prefetch" href="https://fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet" type="text/css">

    <!-- Styles -->
    <link href="{{ asset('css/app.css') }}" rel="stylesheet">
ZeMKI's avatar
ZeMKI committed
23
24
25
26

    <script>
        window.trans = [];
        window.trans = <?php
ZeMKI's avatar
ZeMKI committed
27
28
29
30
31
32
33
34
        if(File::exists(resource_path() . "/lang/" . App::getLocale() . '.json'))
        {
            $json_file = File::get(resource_path() . "/lang/" . App::getLocale() . '.json');
            echo json_decode(json_encode($json_file, true));
        }
        else{
            echo "[]";
        }
ZeMKI's avatar
ZeMKI committed
35
36
        ?>;
    </script>
ZeMKI's avatar
ZeMKI committed
37
38
39
</head>
<body>

40
41
<div id="app" class="bg-blue-900">

ZeMKI's avatar
ZeMKI committed
42
    @yield('content')
43

ZeMKI's avatar
ZeMKI committed
44
</div>
ZeMKI's avatar
ZeMKI committed
45
46
</body>
</html>