added yields for extra content in the admin dashboard

This commit is contained in:
2021-06-01 22:12:48 +09:00
parent 27e05fdfde
commit 17b1db88c1
8 changed files with 63 additions and 38 deletions

View File

@@ -2,8 +2,16 @@
<footer class="main-footer"> <footer class="main-footer">
<!-- To the right --> <!-- To the right -->
<div class="float-right d-none d-sm-inline"> <div class="float-right d-none d-sm-inline">
Anything you want @hasSection('footer-right')
@yeild('footer-right')
@endif
</div> </div>
@hasSection('footer-center')
@yeild('footer-center')
@endif
<!-- Default to the left --> <!-- Default to the left -->
<strong>Copyright &copy; 2014-2019 <a href="https://adminlte.io">AdminLTE.io</a>.</strong> All rights reserved. <strong>Copyright &copy; 2014-2019 <a href="https://adminlte.io">AdminLTE.io</a>.</strong> All rights reserved.
@hasSection('footer-left')
@yeild('footer-left')
@endif
</footer> </footer>

View File

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

View File

@@ -31,4 +31,7 @@
<!-- /.sidebar-menu --> <!-- /.sidebar-menu -->
</div> </div>
<!-- /.sidebar --> <!-- /.sidebar -->
@hasSection('sidebar')
@yeild('sidebar')
@endif
</aside> </aside>

View File

@@ -9,6 +9,9 @@
<a href="/dashboard" class="nav-link">Dashboard</a> <a href="/dashboard" class="nav-link">Dashboard</a>
</li> </li>
</ul> </ul>
@hasSection('navbar-upper-left')
@yeild('navbar-upper-left')
@endif
<!-- Right navbar links --> <!-- Right navbar links -->
<ul class="navbar-nav ml-auto"> <ul class="navbar-nav ml-auto">
@@ -27,5 +30,8 @@
class="fas fa-th-large"></i></a> class="fas fa-th-large"></i></a>
</li> </li>
</ul> </ul>
@hasSection('navbar-upper-right')
@yeild('navbar-upper-right')
@endif
</nav> </nav>
<!-- /.navbar --> <!-- /.navbar -->

View File

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

View File

@@ -1,11 +1,11 @@
<!-- Main Footer --> <!-- Main Footer -->
<footer class="main-footer"> <footer class="main-footer">
<!-- To the right --> <!-- To the right -->
<div class="float-right d-none d-sm-inline">
@hasSection('footer-right') @hasSection('footer-right')
@yield('footer-right') @yield('footer-right')
@endif @endif
<div class="float-right d-none d-sm-inline">
</div> </div>
@hasSection('footer-center') @hasSection('footer-center')
@yield('footer-center') @yield('footer-center')

View File

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

View File

@@ -45,7 +45,7 @@
<!-- /.sidebar-menu --> <!-- /.sidebar-menu -->
</div> </div>
<!-- /.sidebar --> <!-- /.sidebar -->
</aside>
@hasSection('sidebar') @hasSection('sidebar')
@yield('sidebar') @yield('sidebar')
@endif @endif
</aside>