1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 23:42:32 +01:00
my-idlers/resources/views/layouts/app.blade.php
cp6 f0903e08f4 Updated app.blade.php for NPM webpack
Updated app.blade.php for NPM webpack
2022-11-13 15:53:57 +11:00

44 lines
1.1 KiB
PHP

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
@if(isset(Auth::user()->api_token))
<meta name="api_token" content="{{ Auth::user()->api_token }}">
@endif
<title>@yield('title') - @if (config()->has('app.name')) {{ config('app.name') }} @else My idlers @endif</title>
@if(Session::get('dark_mode'))
<link rel="stylesheet" href="{{ asset('css/dark.css') }}">
@else
<link rel="stylesheet" href="{{ asset('css/light.css') }}">
@endif
<link rel="stylesheet" href="{{ asset('css/app.css') }}">
@yield('css_links')
@yield('style')
</head>
<body class="font-sans antialiased">
<div class="container-fluid">
@include('layouts.navigation')
</div>
@if(isset($header))
<div class="container">
<h3 class="ms-2 mt-3">
{{ $header}}
</h3>
</div>
@endif
<div class="container">
{{ $slot }}
</div>
<script src="{{ asset('js/app.js') }}" defer></script>
@yield('scripts')
</body>
</html>