added yields and hasSections

This commit is contained in:
2021-06-01 22:02:38 +09:00
parent a07151f507
commit 27e05fdfde
7 changed files with 74 additions and 43 deletions

View File

@@ -1,9 +1,18 @@
<!-- Main Footer -->
<footer class="main-footer">
<!-- To the right -->
@hasSection('footer-right')
@yield('footer-right')
@endif
<div class="float-right d-none d-sm-inline">
</div>
@hasSection('footer-center')
@yield('footer-center')
@endif
<!-- Default to the left -->
<strong><a href="https://services.w4rp.space">Warped Intentions</a></strong>
@hasSection('footer-left')
@yeild('footer-left')
@endif
</footer>

View File

@@ -25,4 +25,5 @@
<link rel="stylesheet" href="/bower_components/admin-lte/dist/css/adminlte.min.css">
<!-- Google Font: Source Sans Pro -->
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
@yield('header')
</head>

View File

@@ -39,9 +39,13 @@
<!-- Blacklist -->
@include('layouts.user.sidebarmenu.blacklist')
<!-- End Blacklist -->
</ul>
</nav>
<!-- /.sidebar-menu -->
</div>
<!-- /.sidebar -->
</aside>
@hasSection('sidebar')
@yield('sidebar')
@endif

View File

@@ -14,6 +14,9 @@
</li>
@endif
</ul>
@hasSection('navbar-upper-left')
@yield('navbar-upper-left')
@endif
<!-- Right navbar links -->
<ul class="navbar-nav ml-auto">
@@ -44,5 +47,8 @@
class="fas fa-th-large"></i></a>
</li>
</ul>
@hasSection('navbar-upper-right')
@yeild('navbar-upper-right')
@endif
</nav>
<!-- /.navbar -->

View File

@@ -6,3 +6,6 @@
<script src="/bower_components/admin-lte/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="/bower_components/admin-lte/dist/js/adminlte.min.js"></script>
@hasSection('scripts')
@yeild('scripts')
@endif

View File

@@ -0,0 +1,4 @@
@extends('layouts.admin.b4')
@section('content')
@endsection

View File

@@ -0,0 +1,4 @@
@extends('layouts.admin.b4')
@section('content')
@endsection