hypothetical/resources/views/templates/public.blade.php

37 lines
1.1 KiB
PHP
Raw Permalink Normal View History

@extends('templates.base')
@section('page-includes')
<script src="/js/lib.js?version={{ Version::get() }}"></script>
<link rel="stylesheet" href="/css/app.css?version={{ Version::get() }}" />
2019-03-19 14:38:27 -04:00
<script>
var env = {
appName: "{!! env('APP_NAME') !!}",
appLang: "{{ Language::getSessionLanguage() }}",
appDefaultLang: "{{ env('APP_LOCALE') }}",
apiToken: "{{ Auth::check() ? '?api_token=' . Auth::user()->api_token : '' }}",
currentUrl: "{{ Request::url() }}",
csrfToken: "{{ csrf_token() }}",
debug: {{ Config::get('app.debug') ? 'true' : 'false' }}
};
</script>
@endsection
@section('page-content')
<div id="vue-container">
<nav-component></nav-component>
<div class="page-container">
<div id="router-view" class="main-content">
<router-view></router-view>
</div>
<footer-component></footer-component>
</div>
</div>
@endsection
@section('page-bottom')
<script src="/js/app.js?version={{ Version::get() }}"></script>
@endsection