Blade Template Folder

Download dan Extract ke dalam folder Public

public/template


 

Layouts/master.blade.php

<!DOCTYPE html>  
 <html>  
 @include('partials.head')  
 @yield('styles')  
 <body class="hold-transition skin-blue sidebar-mini">  
   <div class="wrapper">  
     <!-- Main Header -->  
     @include('partials.header')  
     <!-- Left side column. contains the logo and sidebar -->  
     @include('partials.sidebar')  
     <!-- Content Wrapper. Contains page content -->  
     <div class="content-wrapper">  
       <!-- Main content -->  
       <section class="content container-fluid">  
         @yield('content')  
       </section>  
       <!-- /.content -->  
     </div>  
     <!-- /.content-wrapper -->  
     <!-- Main Footer -->  
     @include('partials.footer')  
   </div>  
   <!-- ./wrapper -->  
   <!-- REQUIRED JS SCRIPTS -->  
   @include('partials.script')  
   @stack('scripts')  
 </body>  
 </html>  

Partials/head.blade.php

<head>  
   <meta charset="utf-8">  
   <meta http-equiv="X-UA-Compatible" content="IE=edge">  
   <title>@yield('title')</title>  
   <!-- Tell the browser to be responsive to screen width -->  
   <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">  
   <link rel="stylesheet" href="{{{ URL::asset('template/bower_components/bootstrap/dist/css/bootstrap.min.css')}}}">  
   <!-- Font Awesome -->  
   <link rel="stylesheet" href="{{{ URL::asset('template/bower_components/font-awesome/css/font-awesome.min.css')}}}">  
   <!-- Ionicons -->  
   <link rel="stylesheet" href="{{{ URL::asset('template/bower_components/Ionicons/css/ionicons.min.css')}}}">  
   <!-- Theme style -->  
   <link rel="stylesheet" href="{{{ URL::asset('template/dist/css/AdminLTE.min.css')}}}">  
   <link rel="stylesheet" href="{{{ URL::asset('template/dist/css/skins/skin-blue.min.css')}}}">  
   <!-- Google Font -->  
   <!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic"> -->  
   <link rel="stylesheet" href="https://cdn.datatables.net/1.12.1/css/dataTables.bootstrap4.min.css">  
   <link rel="stylesheet" href="https://cdn.datatables.net/buttons/2.2.3/css/buttons.bootstrap4.min.css">  
   <!-- DataTables -->  
   <link rel="stylesheet" href="{{{URL::asset('template/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css')}}}">  
 </head>

Partials/header.blade.php

<header class="main-header">  
   <!-- Logo -->  
   <a href="index2.html" class="logo">  
     <!-- mini logo for sidebar mini 50x50 pixels -->  
     <span class="logo-mini"><b>A</b>LT</span>  
     <!-- logo for regular state and mobile devices -->  
     <span class="logo-lg"><b>Admin</b>LTE</span>  
   </a>  
   <!-- Header Navbar -->  
   <nav class="navbar navbar-static-top" role="navigation">  
     <!-- Sidebar toggle button-->  
     <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">  
       <span class="sr-only">Toggle navigation</span>  
     </a>  
     <!-- Navbar Right Menu -->  
     <div class="navbar-custom-menu">  
       <ul class="nav navbar-nav">  
         <!-- User Account Menu -->  
         <li class="dropdown user user-menu">  
           <!-- Menu Toggle Button -->  
           <a href="#" class="dropdown-toggle" data-toggle="dropdown">  
             <!-- The user image in the navbar-->  
             <img src="{{{ URL::asset('template/dist/img/user2-160x160.jpg')}}}" class="user-image" alt="User Image">  
             <!-- hidden-xs hides the username on small devices so only the image appears. -->  
             <span class="hidden-xs">Alexander Pierce</span>  
           </a>  
           <ul class="dropdown-menu">  
             <!-- The user image in the menu -->  
             <li class="user-header">  
               <img src="{{{ URL::asset('template/dist/img/user2-160x160.jpg')}}}" class="img-circle" alt="User Image">  
               <p>  
                 Alexander Pierce - Web Developer  
                 <small>Member since Nov. 2012</small>  
               </p>  
             </li>  
             <!-- Menu Body -->  
             <!-- Menu Footer-->  
             <li class="user-footer">  
               <div class="pull-left">  
                 <a href="#" class="btn btn-default btn-flat">Profile</a>  
               </div>  
               <div class="pull-right">  
                 <a href="#" class="btn btn-default btn-flat">Sign out</a>  
               </div>  
             </li>  
           </ul>  
         </li>  
         <!-- Control Sidebar Toggle Button -->  
         <li>  
           <a href="#"><i class="fa fa-gears"></i></a>  
         </li>  
       </ul>  
     </div>  
   </nav>  
 </header>

Partials/sidebar.blade.php

<aside class="main-sidebar">  
   <!-- sidebar: style can be found in sidebar.less -->  
   <section class="sidebar">  
     <!-- Sidebar user panel (optional) -->  
     <div class="user-panel">  
       <div class="pull-left image">  
         <img src="{{{ URL::asset('template/dist/img/user2-160x160.jpg')}}}" class="img-circle" alt="User Image">  
       </div>  
       <div class="pull-left info">  
         <p>Alexander Pierce</p>  
         <!-- Status -->  
         <a href="#"><i class="fa fa-circle text-success"></i> Online</a>  
       </div>  
     </div>  
     <!-- search form (Optional) -->  
     <form action="#" method="get" class="sidebar-form">  
       <div class="input-group">  
         <input type="text" name="q" class="form-control" placeholder="Search...">  
         <span class="input-group-btn">  
           <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>  
           </button>  
         </span>  
       </div>  
     </form>  
     <!-- /.search form -->  
     <!-- Sidebar Menu -->  
     <ul class="sidebar-menu" data-widget="tree">  
       <li class="header">Dashboard</li>  
       <!-- Optionally, you can add icons to the links -->  
       <li class="active"><a href="{{route('dashboard')}}"><i class="fa fa-link"></i> <span>Dashboard</span></a></li>  
       <li><a href="{{route('user.index')}}"><i class="fa fa-link"></i> <span>Users</span></a></li>  
       <li class="treeview">  
         <a href=""><i class="fa fa-link"></i> <span>Role Permission</span>  
           <span class="pull-right-container">  
             <i class="fa fa-angle-left pull-right"></i>  
           </span>  
         </a>  
         <ul class="treeview-menu">  
           <li><a href="{{ route ('roles.index') }}"><i class="fa fa-circle-o"></i>Roles</a></li>  
           <li><a href="{{ route ('permission.index') }}"><i class="fa fa-circle-o"></i>Permission</a></li>  
           <li><a href="{{ route('assign.create')}}"><i class="fa fa-circle-o"></i>Assign Permission</a></li>  
           <li><a href="{{route('assign.user.create')}}"><i class="fa fa-circle-o"></i>Permission to User</a></li>  
         </ul>  
       </li>  
     </ul>  
     <!-- /.sidebar-menu -->  
   </section>  
   <!-- /.sidebar -->  
 </aside>  

Partials/script.blade.php

<!-- jQuery 3 -->  
 <script src="{{{ URL::asset('template/bower_components/jquery/dist/jquery.min.js')}}}"></script>  
 <!-- Bootstrap 3.3.7 -->  
 <script src="{{{ URL::asset('template/bower_components/bootstrap/dist/js/bootstrap.min.js')}}}"></script>  
 <!-- AdminLTE App -->  
 <script src="{{{ URL::asset('template/dist/js/adminlte.min.js')}}}"></script>  
 <!-- DataTables -->  
 <script src="https://cdn.datatables.net/1.12.1/js/jquery.dataTables.min.js"></script>  
 <script src="https://cdn.datatables.net/1.12.1/js/dataTables.bootstrap4.min.js"></script>  
 <script src="https://cdn.datatables.net/buttons/2.2.3/js/dataTables.buttons.min.js"></script>  
 <script src="https://cdn.datatables.net/buttons/2.2.3/js/buttons.bootstrap4.min.js"></script>  
 <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>  
 <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script>  
 <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script>  
 <script src="https://cdn.datatables.net/buttons/2.2.3/js/buttons.html5.min.js"></script>  
 <script src="https://cdn.datatables.net/buttons/2.2.3/js/buttons.print.min.js"></script>  
 <script src="https://cdn.datatables.net/buttons/2.2.3/js/buttons.colVis.min.js"></script>  
 <script>  
   $(document).ready(function() {  
     var table = $('#datatable').DataTable({  
       lengthChange: false,  
       buttons: ['copy', 'excel', 'pdf'],  
       "lengthMenu": [  
         [5, 10, 25, 50, -1],  
         [5, 10, 25, 50, "All"]  
       ],  
       dom: "<'row'<'col-sm-4'l><'col-sm-4 text-center'B><'col-sm-4'f>>" +  
         "<'row'<'col-sm-12'tr>>" +  
         "<'row'<'col-sm-5'i><'col-sm-7'p>>",  
     });  
     table.buttons().container()  
       .appendTo('#datatable .col-md-6:eq(0)');  
   });  
 </script>  

Partials/footer.blade.php

<footer class="main-footer">  
   <!-- To the right -->  
   <div class="pull-right hidden-xs">  
     Anything you want  
   </div>  
   <!-- Default to the left -->  
   <strong>Copyright &copy; 2016 <a href="#">Company</a>.</strong> All rights reserved.  
 </footer>  
 <div class="control-sidebar-bg"></div> 

 

Post a Comment

Previous Post Next Post