added yields and hasSections
This commit is contained in:
@@ -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>
|
||||
@@ -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>
|
||||
@@ -1,47 +1,51 @@
|
||||
<!-- Main Sidebar Container -->
|
||||
<aside class="main-sidebar sidebar-dark-primary elevation-4">
|
||||
<!-- Brand Logo -->
|
||||
<a href="#" class="brand-link">
|
||||
<span class="brand-text font-weight-light">W4RP</span>
|
||||
</a>
|
||||
<!-- Brand Logo -->
|
||||
<a href="#" class="brand-link">
|
||||
<span class="brand-text font-weight-light">W4RP</span>
|
||||
</a>
|
||||
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar">
|
||||
<!-- Sidebar user panel (optional) -->
|
||||
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
|
||||
<div class="info">
|
||||
<a href="/profile" class="d-block">{{ auth()->user()->getName() }}</a>
|
||||
</div>
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar">
|
||||
<!-- Sidebar user panel (optional) -->
|
||||
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
|
||||
<div class="info">
|
||||
<a href="/profile" class="d-block">{{ auth()->user()->getName() }}</a>
|
||||
</div>
|
||||
|
||||
<!-- Sidebar Menu -->
|
||||
<nav class="mt-2">
|
||||
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
|
||||
<!-- General Items -->
|
||||
@if(auth()->user()->hasRole('User') || auth()->user()->hasRole('Admin'))
|
||||
@include('layouts.user.sidebarmenu.general')
|
||||
@endif
|
||||
<!-- End General Items -->
|
||||
<!-- Mining Tax Items -->
|
||||
@include('layouts.user.sidebarmenu.miningtax')
|
||||
<!-- End Mining Tax Items -->
|
||||
<!-- After Action Reports -->
|
||||
@if(auth()->user()->hasPermission('fc.team'))
|
||||
@include('layouts.user.sidebarmenu.reports')
|
||||
@endif
|
||||
<!-- End After Action Reports -->
|
||||
<!-- SRP Items -->
|
||||
@include('layouts.user.sidebarmenu.srp')
|
||||
<!-- SRP Items -->
|
||||
<!-- Contracts -->
|
||||
@include('layouts.user.sidebarmenu.contracts')
|
||||
<!-- End Contracts -->
|
||||
<!-- Blacklist -->
|
||||
@include('layouts.user.sidebarmenu.blacklist')
|
||||
<!-- End Blacklist -->
|
||||
</ul>
|
||||
</nav>
|
||||
<!-- /.sidebar-menu -->
|
||||
</div>
|
||||
<!-- /.sidebar -->
|
||||
</aside>
|
||||
|
||||
<!-- Sidebar Menu -->
|
||||
<nav class="mt-2">
|
||||
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
|
||||
<!-- General Items -->
|
||||
@if(auth()->user()->hasRole('User') || auth()->user()->hasRole('Admin'))
|
||||
@include('layouts.user.sidebarmenu.general')
|
||||
@endif
|
||||
<!-- End General Items -->
|
||||
<!-- Mining Tax Items -->
|
||||
@include('layouts.user.sidebarmenu.miningtax')
|
||||
<!-- End Mining Tax Items -->
|
||||
<!-- After Action Reports -->
|
||||
@if(auth()->user()->hasPermission('fc.team'))
|
||||
@include('layouts.user.sidebarmenu.reports')
|
||||
@endif
|
||||
<!-- End After Action Reports -->
|
||||
<!-- SRP Items -->
|
||||
@include('layouts.user.sidebarmenu.srp')
|
||||
<!-- SRP Items -->
|
||||
<!-- Contracts -->
|
||||
@include('layouts.user.sidebarmenu.contracts')
|
||||
<!-- End Contracts -->
|
||||
<!-- Blacklist -->
|
||||
@include('layouts.user.sidebarmenu.blacklist')
|
||||
<!-- End Blacklist -->
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
<!-- /.sidebar-menu -->
|
||||
</div>
|
||||
<!-- /.sidebar -->
|
||||
</aside>
|
||||
@hasSection('sidebar')
|
||||
@yield('sidebar')
|
||||
@endif
|
||||
@@ -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 -->
|
||||
@@ -5,4 +5,7 @@
|
||||
<!-- Bootstrap 4 -->
|
||||
<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>
|
||||
<script src="/bower_components/admin-lte/dist/js/adminlte.min.js"></script>
|
||||
@hasSection('scripts')
|
||||
@yeild('scripts')
|
||||
@endif
|
||||
@@ -0,0 +1,4 @@
|
||||
@extends('layouts.admin.b4')
|
||||
@section('content')
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,4 @@
|
||||
@extends('layouts.admin.b4')
|
||||
@section('content')
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user