You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
<!DOCTYPE html>
|
|
<html lang="{{ 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">
|
|
|
|
<!-- CSRF Token -->
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
|
|
<title>{{ config('app.name', 'Laravel') }}</title>
|
|
|
|
<!-- Styles -->
|
|
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
|
|
@yield('ext_css')
|
|
<style>
|
|
.page-header {
|
|
margin-top: 0px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="app">
|
|
@include('layouts.partials.nav')
|
|
|
|
<div class="container">
|
|
@yield('content')
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Scripts -->
|
|
<script src="{{ asset('js/app.js') }}"></script>
|
|
@yield('ext_js')
|
|
@yield('script')
|
|
<script>
|
|
var header = $('h2.page-header').contents();
|
|
str = '';
|
|
mainText = header.filter(function () {
|
|
// return type of text
|
|
return this.nodeType === 3;
|
|
})[0];
|
|
str += mainText.data.trim();
|
|
|
|
if (mainText.nextSibling) {
|
|
// next siblings should be a small tag text
|
|
str += " - "+mainText.nextSibling.innerText;
|
|
}
|
|
$('title').prepend(str+" - ");
|
|
</script>
|
|
</body>
|
|
</html>
|