sifangpay/resources/views/web/layouts/base.blade.php

67 lines
2.1 KiB
PHP

<!DOCTYPE html>
@section('html')
<html>
@show
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
@section('title')
<title>{{ isset($title)?$title:config('website.name') }}</title>
<meta name="keywords" content="{{ isset($keyword)?$keyword:config('website.name') }}">
<meta name="description" content="{{ isset($description)?$description:config('website.name') }}">
<meta name="csrf-token" content="{{ csrf_token() }}">
@show
@section('theme_css')
<link rel="stylesheet" href="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="{{ $style_path }}/css/home.css">
@show
@yield('add_css')
@section('font_css')
<!-- 图标 CSS-->
@show
</head>
@section('body')
<body class="">
@show
<div class="wraper">
@section('header')
@include('web.layouts.header')
@show
@yield('content')
</div>
@include('web.layouts.footer')
@section('base_js')
<script src="{{ $style_path }}/js/home.js"></script>
<script src="{{ ____('/layui/layui.js') }}"></script>
<script>
layui.config({
base: '{{ ____("") }}/' //静态资源所在路径
}).extend({
index: 'lib/index' //主入口模块
});
</script>
@show
@yield('foot_js')
</body>
</html>