To integrate an admin template in Laravel, download the admin panel template in plain HTML and then create a master file which is a layout file consisting of a header, content, and footer file, and then cover all the other themes files with this master file.
Here is the step-by-step guide to integrating the admin template in Laravel:
Step 1: Install the Laravel
composer create-project laravel/laravel laraveltemplate --prefer-dist
After installation, download the admin Template from the below link:
https://github.com/ColorlibHQ/AdminLTE/releases
Now copy all the files and folders inside the AdminLTE folder and paste them into the public >> admincss folder.
Now, define the route for the admin template.
Route::view('admin', 'master');
We need to create one master template file, which is inherited by all of its child pages.
In the resources >> views folder, make one file called master.blade.php.
Step 2: Make a layout file called master.blade.php
In this file, we will include all the css and js files needed on all the pages.
Create one folder inside the views directory called partials. In that folder, we will put our header and sidebar files. Our master.blade.php file looks like this.
<!DOCTYPE html> <html lang="en"> <head> @include('admin.css') </head> <body class="hold-transition sidebar-mini layout-fixed"> <div class="wrapper"> @include('admin.header') @include('admin.sidebar') @include('admin.body') @include('admin.footer') </body> </html>
This file includes the required CSS and JS that will run the theme smoothly throughout the project.
In the resources >> views folder, make one folder called admin.
Our css.blade.php file looks like this:
<meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>AdminLTE 3 | Dashboard</title> <!-- Google Font: Source Sans Pro --> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"> <!-- Font Awesome --> <link rel="stylesheet" href="admincss/plugins/fontawesome-free/css/all.min.css"> <!-- Ionicons --> <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"> <!-- Tempusdominus Bootstrap 4 --> <link rel="stylesheet" href="admincss/plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css"> <!-- iCheck --> <link rel="stylesheet" href="admincss/plugins/icheck-bootstrap/icheck-bootstrap.min.css"> <!-- JQVMap --> <link rel="stylesheet" href="admincss/plugins/jqvmap/jqvmap.min.css"> <!-- Theme style --> <link rel="stylesheet" href="admincss/dist/css/adminlte.min.css"> <!-- overlayScrollbars --> <link rel="stylesheet" href="admincss/plugins/overlayScrollbars/css/OverlayScrollbars.min.css"> <!-- Daterange picker --> <link rel="stylesheet" href="admincss/plugins/daterangepicker/daterangepicker.css"> <!-- summernote --> <link rel="stylesheet" href="admincss/plugins/summernote/summernote-bs4.min.css">
The header.blade.php file looks like this:
<!-- Preloader --> <div class="preloader flex-column justify-content-center align-items-center"> <img class="animation__shake" src="admincss/dist/img/AdminLTELogo.png" alt="AdminLTELogo" height="60" width="60"> </div> <!-- Navbar --> <nav class="main-header navbar navbar-expand navbar-white navbar-light"> <!-- Left navbar links --> <ul class="navbar-nav"> <li class="nav-item"> <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a> </li> <li class="nav-item d-none d-sm-inline-block"> <a href="index3.html" class="nav-link">Home</a> </li> <li class="nav-item d-none d-sm-inline-block"> <a href="#" class="nav-link">Contact</a> </li> </ul> <!-- Right navbar links --> <ul class="navbar-nav ml-auto"> <!-- Navbar Search --> <li class="nav-item"> <a class="nav-link" data-widget="navbar-search" href="#" role="button"> <i class="fas fa-search"></i> </a> <div class="navbar-search-block"> <form class="form-inline"> <div class="input-group input-group-sm"> <input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search"> <div class="input-group-append"> <button class="btn btn-navbar" type="submit"> <i class="fas fa-search"></i> </button> <button class="btn btn-navbar" type="button" data-widget="navbar-search"> <i class="fas fa-times"></i> </button> </div> </div> </form> </div> </li> <!-- Messages Dropdown Menu --> <li class="nav-item dropdown"> <a class="nav-link" data-toggle="dropdown" href="#"> <i class="far fa-comments"></i> <span class="badge badge-danger navbar-badge">3</span> </a> <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right"> <a href="#" class="dropdown-item"> <!-- Message Start --> <div class="media"> <img src="admincss/dist/img/user1-128x128.jpg" alt="User Avatar" class="img-size-50 mr-3 img-circle"> <div class="media-body"> <h3 class="dropdown-item-title"> Brad Diesel <span class="float-right text-sm text-danger"><i class="fas fa-star"></i></span> </h3> <p class="text-sm">Call me whenever you can...</p> <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p> </div> </div> <!-- Message End --> </a> <div class="dropdown-divider"></div> <a href="#" class="dropdown-item"> <!-- Message Start --> <div class="media"> <img src="admincss/dist/img/user8-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3"> <div class="media-body"> <h3 class="dropdown-item-title"> John Pierce <span class="float-right text-sm text-muted"><i class="fas fa-star"></i></span> </h3> <p class="text-sm">I got your message bro</p> <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p> </div> </div> <!-- Message End --> </a> <div class="dropdown-divider"></div> <a href="#" class="dropdown-item"> <!-- Message Start --> <div class="media"> <img src="admincss/dist/img/user3-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3"> <div class="media-body"> <h3 class="dropdown-item-title"> Nora Silvester <span class="float-right text-sm text-warning"><i class="fas fa-star"></i></span> </h3> <p class="text-sm">The subject goes here</p> <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p> </div> </div> <!-- Message End --> </a> <div class="dropdown-divider"></div> <a href="#" class="dropdown-item dropdown-footer">See All Messages</a> </div> </li> <!-- Notifications Dropdown Menu --> <li class="nav-item dropdown"> <a class="nav-link" data-toggle="dropdown" href="#"> <i class="far fa-bell"></i> <span class="badge badge-warning navbar-badge">15</span> </a> <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right"> <span class="dropdown-item dropdown-header">15 Notifications</span> <div class="dropdown-divider"></div> <a href="#" class="dropdown-item"> <i class="fas fa-envelope mr-2"></i> 4 new messages <span class="float-right text-muted text-sm">3 mins</span> </a> <div class="dropdown-divider"></div> <a href="#" class="dropdown-item"> <i class="fas fa-users mr-2"></i> 8 friend requests <span class="float-right text-muted text-sm">12 hours</span> </a> <div class="dropdown-divider"></div> <a href="#" class="dropdown-item"> <i class="fas fa-file mr-2"></i> 3 new reports <span class="float-right text-muted text-sm">2 days</span> </a> <div class="dropdown-divider"></div> <a href="#" class="dropdown-item dropdown-footer">See All Notifications</a> </div> </li> <li class="nav-item"> <a class="nav-link" data-widget="fullscreen" href="#" role="button"> <i class="fas fa-expand-arrows-alt"></i> </a> </li> <li class="nav-item"> <a class="nav-link" data-widget="control-sidebar" data-controlsidebar-slide="true" href="#" role="button"> <i class="fas fa-th-large"></i> </a> </li> </ul> </nav> <!-- /.navbar -->
The sidebar.blade.php file looks like this:
<!-- Main Sidebar Container --> <aside class="main-sidebar sidebar-dark-primary elevation-4"> <!-- Brand Logo --> <a href="index3.html" class="brand-link"> <img src="admincss/dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8"> <span class="brand-text font-weight-light">AdminLTE 3</span> </a> <!-- Sidebar --> <div class="sidebar"> <!-- Sidebar user panel (optional) --> <div class="user-panel mt-3 pb-3 mb-3 d-flex"> <div class="image"> <img src="admincss/dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image"> </div> <div class="info"> <a href="#" class="d-block">Krunal Lathiya</a> </div> </div> <!-- SidebarSearch Form --> <div class="form-inline"> <div class="input-group" data-widget="sidebar-search"> <input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search"> <div class="input-group-append"> <button class="btn btn-sidebar"> <i class="fas fa-search fa-fw"></i> </button> </div> </div> </div> <!-- Sidebar Menu --> <nav class="mt-2"> <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false"> <!-- Add icons to the links using the .nav-icon class with font-awesome or any other icon font library --> <li class="nav-item menu-open"> <a href="#" class="nav-link active"> <i class="nav-icon fas fa-tachometer-alt"></i> <p> Dashboard <i class="right fas fa-angle-left"></i> </p> </a> <ul class="nav nav-treeview"> <li class="nav-item"> <a href="./index.html" class="nav-link active"> <i class="far fa-circle nav-icon"></i> <p>Dashboard v1</p> </a> </li> <li class="nav-item"> <a href="./index2.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Dashboard v2</p> </a> </li> <li class="nav-item"> <a href="./index3.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Dashboard v3</p> </a> </li> </ul> </li> <li class="nav-item"> <a href="admincss/pages/widgets.html" class="nav-link"> <i class="nav-icon fas fa-th"></i> <p> Widgets <span class="right badge badge-danger">New</span> </p> </a> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="nav-icon fas fa-copy"></i> <p> Layout Options <i class="fas fa-angle-left right"></i> <span class="badge badge-info right">6</span> </p> </a> <ul class="nav nav-treeview"> <li class="nav-item"> <a href="admincss/pages/layout/top-nav.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Top Navigation</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/layout/top-nav-sidebar.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Top Navigation + Sidebar</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/layout/boxed.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Boxed</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/layout/fixed-sidebar.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Fixed Sidebar</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/layout/fixed-sidebar-custom.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Fixed Sidebar <small>+ Custom Area</small></p> </a> </li> <li class="nav-item"> <a href="admincss/pages/layout/fixed-topnav.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Fixed Navbar</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/layout/fixed-footer.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Fixed Footer</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/layout/collapsed-sidebar.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Collapsed Sidebar</p> </a> </li> </ul> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="nav-icon fas fa-chart-pie"></i> <p> Charts <i class="right fas fa-angle-left"></i> </p> </a> <ul class="nav nav-treeview"> <li class="nav-item"> <a href="admincss/pages/charts/chartjs.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>ChartJS</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/charts/flot.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Flot</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/charts/inline.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Inline</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/charts/uplot.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>uPlot</p> </a> </li> </ul> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="nav-icon fas fa-tree"></i> <p> UI Elements <i class="fas fa-angle-left right"></i> </p> </a> <ul class="nav nav-treeview"> <li class="nav-item"> <a href="admincss/pages/UI/general.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>General</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/UI/icons.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Icons</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/UI/buttons.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Buttons</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/UI/sliders.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Sliders</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/UI/modals.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Modals & Alerts</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/UI/navbar.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Navbar & Tabs</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/UI/timeline.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Timeline</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/UI/ribbons.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Ribbons</p> </a> </li> </ul> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="nav-icon fas fa-edit"></i> <p> Forms <i class="fas fa-angle-left right"></i> </p> </a> <ul class="nav nav-treeview"> <li class="nav-item"> <a href="admincss/pages/forms/general.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>General Elements</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/forms/advanced.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Advanced Elements</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/forms/editors.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Editors</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/forms/validation.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Validation</p> </a> </li> </ul> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="nav-icon fas fa-table"></i> <p> Tables <i class="fas fa-angle-left right"></i> </p> </a> <ul class="nav nav-treeview"> <li class="nav-item"> <a href="admincss/pages/tables/simple.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Simple Tables</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/tables/data.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>DataTables</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/tables/jsgrid.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>jsGrid</p> </a> </li> </ul> </li> <li class="nav-header">EXAMPLES</li> <li class="nav-item"> <a href="admincss/pages/calendar.html" class="nav-link"> <i class="nav-icon far fa-calendar-alt"></i> <p> Calendar <span class="badge badge-info right">2</span> </p> </a> </li> <li class="nav-item"> <a href="admincss/pages/gallery.html" class="nav-link"> <i class="nav-icon far fa-image"></i> <p> Gallery </p> </a> </li> <li class="nav-item"> <a href="admincss/pages/kanban.html" class="nav-link"> <i class="nav-icon fas fa-columns"></i> <p> Kanban Board </p> </a> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="nav-icon far fa-envelope"></i> <p> Mailbox <i class="fas fa-angle-left right"></i> </p> </a> <ul class="nav nav-treeview"> <li class="nav-item"> <a href="admincss/pages/mailbox/mailbox.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Inbox</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/mailbox/compose.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Compose</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/mailbox/read-mail.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Read</p> </a> </li> </ul> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="nav-icon fas fa-book"></i> <p> Pages <i class="fas fa-angle-left right"></i> </p> </a> <ul class="nav nav-treeview"> <li class="nav-item"> <a href="admincss/pages/examples/invoice.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Invoice</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/profile.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Profile</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/e-commerce.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>E-commerce</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/projects.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Projects</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/project-add.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Project Add</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/project-edit.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Project Edit</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/project-detail.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Project Detail</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/contacts.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Contacts</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/faq.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>FAQ</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/contact-us.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Contact us</p> </a> </li> </ul> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="nav-icon far fa-plus-square"></i> <p> Extras <i class="fas fa-angle-left right"></i> </p> </a> <ul class="nav nav-treeview"> <li class="nav-item"> <a href="#" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p> Login & Register v1 <i class="fas fa-angle-left right"></i> </p> </a> <ul class="nav nav-treeview"> <li class="nav-item"> <a href="admincss/pages/examples/login.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Login v1</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/register.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Register v1</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/forgot-password.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Forgot Password v1</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/recover-password.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Recover Password v1</p> </a> </li> </ul> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p> Login & Register v2 <i class="fas fa-angle-left right"></i> </p> </a> <ul class="nav nav-treeview"> <li class="nav-item"> <a href="admincss/pages/examples/login-v2.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Login v2</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/register-v2.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Register v2</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/forgot-password-v2.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Forgot Password v2</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/recover-password-v2.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Recover Password v2</p> </a> </li> </ul> </li> <li class="nav-item"> <a href="admincss/pages/examples/lockscreen.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Lockscreen</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/legacy-user-menu.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Legacy User Menu</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/language-menu.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Language Menu</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/404.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Error 404</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/500.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Error 500</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/pace.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Pace</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/examples/blank.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Blank Page</p> </a> </li> <li class="nav-item"> <a href="starter.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Starter Page</p> </a> </li> </ul> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="nav-icon fas fa-search"></i> <p> Search <i class="fas fa-angle-left right"></i> </p> </a> <ul class="nav nav-treeview"> <li class="nav-item"> <a href="admincss/pages/search/simple.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Simple Search</p> </a> </li> <li class="nav-item"> <a href="admincss/pages/search/enhanced.html" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Enhanced</p> </a> </li> </ul> </li> <li class="nav-header">MISCELLANEOUS</li> <li class="nav-item"> <a href="iframe.html" class="nav-link"> <i class="nav-icon fas fa-ellipsis-h"></i> <p>Tabbed IFrame Plugin</p> </a> </li> <li class="nav-item"> <a href="https://adminlte.io/docs/3.1/" class="nav-link"> <i class="nav-icon fas fa-file"></i> <p>Documentation</p> </a> </li> <li class="nav-header">MULTI LEVEL EXAMPLE</li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="fas fa-circle nav-icon"></i> <p>Level 1</p> </a> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="nav-icon fas fa-circle"></i> <p> Level 1 <i class="right fas fa-angle-left"></i> </p> </a> <ul class="nav nav-treeview"> <li class="nav-item"> <a href="#" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Level 2</p> </a> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p> Level 2 <i class="right fas fa-angle-left"></i> </p> </a> <ul class="nav nav-treeview"> <li class="nav-item"> <a href="#" class="nav-link"> <i class="far fa-dot-circle nav-icon"></i> <p>Level 3</p> </a> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="far fa-dot-circle nav-icon"></i> <p>Level 3</p> </a> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="far fa-dot-circle nav-icon"></i> <p>Level 3</p> </a> </li> </ul> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Level 2</p> </a> </li> </ul> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="fas fa-circle nav-icon"></i> <p>Level 1</p> </a> </li> <li class="nav-header">LABELS</li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="nav-icon far fa-circle text-danger"></i> <p class="text">Important</p> </a> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="nav-icon far fa-circle text-warning"></i> <p>Warning</p> </a> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="nav-icon far fa-circle text-info"></i> <p>Informational</p> </a> </li> </ul> </nav> <!-- /.sidebar-menu --> </div> <!-- /.sidebar --> </aside>
The body.blade.php file looks like this:
<!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <div class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1 class="m-0">Dashboard</h1> </div><!-- /.col --> <div class="col-sm-6"> <ol class="breadcrumb float-sm-right"> <li class="breadcrumb-item"><a href="#">Home</a></li> <li class="breadcrumb-item active">Dashboard v1</li> </ol> </div><!-- /.col --> </div><!-- /.row --> </div><!-- /.container-fluid --> </div> <!-- /.content-header --> <!-- Main content --> <section class="content"> <div class="container-fluid"> <!-- Small boxes (Stat box) --> <div class="row"> <div class="col-lg-3 col-6"> <!-- small box --> <div class="small-box bg-info"> <div class="inner"> <h3>150</h3> <p>New Orders</p> </div> <div class="icon"> <i class="ion ion-bag"></i> </div> <a href="#" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a> </div> </div> <!-- ./col --> <div class="col-lg-3 col-6"> <!-- small box --> <div class="small-box bg-success"> <div class="inner"> <h3>53<sup style="font-size: 20px">%</sup></h3> <p>Bounce Rate</p> </div> <div class="icon"> <i class="ion ion-stats-bars"></i> </div> <a href="#" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a> </div> </div> <!-- ./col --> <div class="col-lg-3 col-6"> <!-- small box --> <div class="small-box bg-warning"> <div class="inner"> <h3>44</h3> <p>User Registrations</p> </div> <div class="icon"> <i class="ion ion-person-add"></i> </div> <a href="#" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a> </div> </div> <!-- ./col --> <div class="col-lg-3 col-6"> <!-- small box --> <div class="small-box bg-danger"> <div class="inner"> <h3>65</h3> <p>Unique Visitors</p> </div> <div class="icon"> <i class="ion ion-pie-graph"></i> </div> <a href="#" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a> </div> </div> <!-- ./col --> </div> <!-- /.row --> <!-- Main row --> <div class="row"> <!-- Left col --> <section class="col-lg-7 connectedSortable"> <!-- Custom tabs (Charts with tabs)--> <div class="card"> <div class="card-header"> <h3 class="card-title"> <i class="fas fa-chart-pie mr-1"></i> Sales </h3> <div class="card-tools"> <ul class="nav nav-pills ml-auto"> <li class="nav-item"> <a class="nav-link active" href="#revenue-chart" data-toggle="tab">Area</a> </li> <li class="nav-item"> <a class="nav-link" href="#sales-chart" data-toggle="tab">Donut</a> </li> </ul> </div> </div><!-- /.card-header --> <div class="card-body"> <div class="tab-content p-0"> <!-- Morris chart - Sales --> <div class="chart tab-pane active" id="revenue-chart" style="position: relative; height: 300px;"> <canvas id="revenue-chart-canvas" height="300" style="height: 300px;"></canvas> </div> <div class="chart tab-pane" id="sales-chart" style="position: relative; height: 300px;"> <canvas id="sales-chart-canvas" height="300" style="height: 300px;"></canvas> </div> </div> </div><!-- /.card-body --> </div> <!-- /.card --> <!-- DIRECT CHAT --> <div class="card direct-chat direct-chat-primary"> <div class="card-header"> <h3 class="card-title">Direct Chat</h3> <div class="card-tools"> <span title="3 New Messages" class="badge badge-primary">3</span> <button type="button" class="btn btn-tool" data-card-widget="collapse"> <i class="fas fa-minus"></i> </button> <button type="button" class="btn btn-tool" title="Contacts" data-widget="chat-pane-toggle"> <i class="fas fa-comments"></i> </button> <button type="button" class="btn btn-tool" data-card-widget="remove"> <i class="fas fa-times"></i> </button> </div> </div> <!-- /.card-header --> <div class="card-body"> <!-- Conversations are loaded here --> <div class="direct-chat-messages"> <!-- Message. Default to the left --> <div class="direct-chat-msg"> <div class="direct-chat-infos clearfix"> <span class="direct-chat-name float-left">Alexander Pierce</span> <span class="direct-chat-timestamp float-right">23 Jan 2:00 pm</span> </div> <!-- /.direct-chat-infos --> <img class="direct-chat-img" src="admincss/dist/img/user1-128x128.jpg" alt="message user image"> <!-- /.direct-chat-img --> <div class="direct-chat-text"> Is this template really for free? That's unbelievable! </div> <!-- /.direct-chat-text --> </div> <!-- /.direct-chat-msg --> <!-- Message to the right --> <div class="direct-chat-msg right"> <div class="direct-chat-infos clearfix"> <span class="direct-chat-name float-right">Sarah Bullock</span> <span class="direct-chat-timestamp float-left">23 Jan 2:05 pm</span> </div> <!-- /.direct-chat-infos --> <img class="direct-chat-img" src="admincss/dist/img/user3-128x128.jpg" alt="message user image"> <!-- /.direct-chat-img --> <div class="direct-chat-text"> You better believe it! </div> <!-- /.direct-chat-text --> </div> <!-- /.direct-chat-msg --> <!-- Message. Default to the left --> <div class="direct-chat-msg"> <div class="direct-chat-infos clearfix"> <span class="direct-chat-name float-left">Alexander Pierce</span> <span class="direct-chat-timestamp float-right">23 Jan 5:37 pm</span> </div> <!-- /.direct-chat-infos --> <img class="direct-chat-img" src="admincss/dist/img/user1-128x128.jpg" alt="message user image"> <!-- /.direct-chat-img --> <div class="direct-chat-text"> Working with AdminLTE on a great new app! Wanna join? </div> <!-- /.direct-chat-text --> </div> <!-- /.direct-chat-msg --> <!-- Message to the right --> <div class="direct-chat-msg right"> <div class="direct-chat-infos clearfix"> <span class="direct-chat-name float-right">Sarah Bullock</span> <span class="direct-chat-timestamp float-left">23 Jan 6:10 pm</span> </div> <!-- /.direct-chat-infos --> <img class="direct-chat-img" src="admincss/dist/img/user3-128x128.jpg" alt="message user image"> <!-- /.direct-chat-img --> <div class="direct-chat-text"> I would love to. </div> <!-- /.direct-chat-text --> </div> <!-- /.direct-chat-msg --> </div> <!--/.direct-chat-messages--> <!-- Contacts are loaded here --> <div class="direct-chat-contacts"> <ul class="contacts-list"> <li> <a href="#"> <img class="contacts-list-img" src="admincss/dist/img/user1-128x128.jpg" alt="User Avatar"> <div class="contacts-list-info"> <span class="contacts-list-name"> Count Dracula <small class="contacts-list-date float-right">2/28/2015</small> </span> <span class="contacts-list-msg">How have you been? I was...</span> </div> <!-- /.contacts-list-info --> </a> </li> <!-- End Contact Item --> <li> <a href="#"> <img class="contacts-list-img" src="admincss/dist/img/user7-128x128.jpg" alt="User Avatar"> <div class="contacts-list-info"> <span class="contacts-list-name"> Sarah Doe <small class="contacts-list-date float-right">2/23/2015</small> </span> <span class="contacts-list-msg">I will be waiting for...</span> </div> <!-- /.contacts-list-info --> </a> </li> <!-- End Contact Item --> <li> <a href="#"> <img class="contacts-list-img" src="admincss/dist/img/user3-128x128.jpg" alt="User Avatar"> <div class="contacts-list-info"> <span class="contacts-list-name"> Nadia Jolie <small class="contacts-list-date float-right">2/20/2015</small> </span> <span class="contacts-list-msg">I'll call you back at...</span> </div> <!-- /.contacts-list-info --> </a> </li> <!-- End Contact Item --> <li> <a href="#"> <img class="contacts-list-img" src="admincss/dist/img/user5-128x128.jpg" alt="User Avatar"> <div class="contacts-list-info"> <span class="contacts-list-name"> Nora S. Vans <small class="contacts-list-date float-right">2/10/2015</small> </span> <span class="contacts-list-msg">Where is your new...</span> </div> <!-- /.contacts-list-info --> </a> </li> <!-- End Contact Item --> <li> <a href="#"> <img class="contacts-list-img" src="admincss/dist/img/user6-128x128.jpg" alt="User Avatar"> <div class="contacts-list-info"> <span class="contacts-list-name"> John K. <small class="contacts-list-date float-right">1/27/2015</small> </span> <span class="contacts-list-msg">Can I take a look at...</span> </div> <!-- /.contacts-list-info --> </a> </li> <!-- End Contact Item --> <li> <a href="#"> <img class="contacts-list-img" src="admincss/dist/img/user8-128x128.jpg" alt="User Avatar"> <div class="contacts-list-info"> <span class="contacts-list-name"> Kenneth M. <small class="contacts-list-date float-right">1/4/2015</small> </span> <span class="contacts-list-msg">Never mind I found...</span> </div> <!-- /.contacts-list-info --> </a> </li> <!-- End Contact Item --> </ul> <!-- /.contacts-list --> </div> <!-- /.direct-chat-pane --> </div> <!-- /.card-body --> <div class="card-footer"> <form action="#" method="post"> <div class="input-group"> <input type="text" name="message" placeholder="Type Message ..." class="form-control"> <span class="input-group-append"> <button type="button" class="btn btn-primary">Send</button> </span> </div> </form> </div> <!-- /.card-footer--> </div> <!--/.direct-chat --> <!-- TO DO List --> <div class="card"> <div class="card-header"> <h3 class="card-title"> <i class="ion ion-clipboard mr-1"></i> To Do List </h3> <div class="card-tools"> <ul class="pagination pagination-sm"> <li class="page-item"><a href="#" class="page-link">«</a></li> <li class="page-item"><a href="#" class="page-link">1</a></li> <li class="page-item"><a href="#" class="page-link">2</a></li> <li class="page-item"><a href="#" class="page-link">3</a></li> <li class="page-item"><a href="#" class="page-link">»</a></li> </ul> </div> </div> <!-- /.card-header --> <div class="card-body"> <ul class="todo-list" data-widget="todo-list"> <li> <!-- drag handle --> <span class="handle"> <i class="fas fa-ellipsis-v"></i> <i class="fas fa-ellipsis-v"></i> </span> <!-- checkbox --> <div class="icheck-primary d-inline ml-2"> <input type="checkbox" value="" name="todo1" id="todoCheck1"> <label for="todoCheck1"></label> </div> <!-- todo text --> <span class="text">Design a nice theme</span> <!-- Emphasis label --> <small class="badge badge-danger"><i class="far fa-clock"></i> 2 mins</small> <!-- General tools such as edit or delete--> <div class="tools"> <i class="fas fa-edit"></i> <i class="fas fa-trash-o"></i> </div> </li> <li> <span class="handle"> <i class="fas fa-ellipsis-v"></i> <i class="fas fa-ellipsis-v"></i> </span> <div class="icheck-primary d-inline ml-2"> <input type="checkbox" value="" name="todo2" id="todoCheck2" checked> <label for="todoCheck2"></label> </div> <span class="text">Make the theme responsive</span> <small class="badge badge-info"><i class="far fa-clock"></i> 4 hours</small> <div class="tools"> <i class="fas fa-edit"></i> <i class="fas fa-trash-o"></i> </div> </li> <li> <span class="handle"> <i class="fas fa-ellipsis-v"></i> <i class="fas fa-ellipsis-v"></i> </span> <div class="icheck-primary d-inline ml-2"> <input type="checkbox" value="" name="todo3" id="todoCheck3"> <label for="todoCheck3"></label> </div> <span class="text">Let theme shine like a star</span> <small class="badge badge-warning"><i class="far fa-clock"></i> 1 day</small> <div class="tools"> <i class="fas fa-edit"></i> <i class="fas fa-trash-o"></i> </div> </li> <li> <span class="handle"> <i class="fas fa-ellipsis-v"></i> <i class="fas fa-ellipsis-v"></i> </span> <div class="icheck-primary d-inline ml-2"> <input type="checkbox" value="" name="todo4" id="todoCheck4"> <label for="todoCheck4"></label> </div> <span class="text">Let theme shine like a star</span> <small class="badge badge-success"><i class="far fa-clock"></i> 3 days</small> <div class="tools"> <i class="fas fa-edit"></i> <i class="fas fa-trash-o"></i> </div> </li> <li> <span class="handle"> <i class="fas fa-ellipsis-v"></i> <i class="fas fa-ellipsis-v"></i> </span> <div class="icheck-primary d-inline ml-2"> <input type="checkbox" value="" name="todo5" id="todoCheck5"> <label for="todoCheck5"></label> </div> <span class="text">Check your messages and notifications</span> <small class="badge badge-primary"><i class="far fa-clock"></i> 1 week</small> <div class="tools"> <i class="fas fa-edit"></i> <i class="fas fa-trash-o"></i> </div> </li> <li> <span class="handle"> <i class="fas fa-ellipsis-v"></i> <i class="fas fa-ellipsis-v"></i> </span> <div class="icheck-primary d-inline ml-2"> <input type="checkbox" value="" name="todo6" id="todoCheck6"> <label for="todoCheck6"></label> </div> <span class="text">Let theme shine like a star</span> <small class="badge badge-secondary"><i class="far fa-clock"></i> 1 month</small> <div class="tools"> <i class="fas fa-edit"></i> <i class="fas fa-trash-o"></i> </div> </li> </ul> </div> <!-- /.card-body --> <div class="card-footer clearfix"> <button type="button" class="btn btn-primary float-right"><i class="fas fa-plus"></i> Add item</button> </div> </div> <!-- /.card --> </section> <!-- /.Left col --> <!-- right col (We are only adding the ID to make the widgets sortable)--> <section class="col-lg-5 connectedSortable"> <!-- Map card --> <div class="card bg-gradient-primary"> <div class="card-header border-0"> <h3 class="card-title"> <i class="fas fa-map-marker-alt mr-1"></i> Visitors </h3> <!-- card tools --> <div class="card-tools"> <button type="button" class="btn btn-primary btn-sm daterange" title="Date range"> <i class="far fa-calendar-alt"></i> </button> <button type="button" class="btn btn-primary btn-sm" data-card-widget="collapse" title="Collapse"> <i class="fas fa-minus"></i> </button> </div> <!-- /.card-tools --> </div> <div class="card-body"> <div id="world-map" style="height: 250px; width: 100%;"></div> </div> <!-- /.card-body--> <div class="card-footer bg-transparent"> <div class="row"> <div class="col-4 text-center"> <div id="sparkline-1"></div> <div class="text-white">Visitors</div> </div> <!-- ./col --> <div class="col-4 text-center"> <div id="sparkline-2"></div> <div class="text-white">Online</div> </div> <!-- ./col --> <div class="col-4 text-center"> <div id="sparkline-3"></div> <div class="text-white">Sales</div> </div> <!-- ./col --> </div> <!-- /.row --> </div> </div> <!-- /.card --> <!-- solid sales graph --> <div class="card bg-gradient-info"> <div class="card-header border-0"> <h3 class="card-title"> <i class="fas fa-th mr-1"></i> Sales Graph </h3> <div class="card-tools"> <button type="button" class="btn bg-info btn-sm" data-card-widget="collapse"> <i class="fas fa-minus"></i> </button> <button type="button" class="btn bg-info btn-sm" data-card-widget="remove"> <i class="fas fa-times"></i> </button> </div> </div> <div class="card-body"> <canvas class="chart" id="line-chart" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas> </div> <!-- /.card-body --> <div class="card-footer bg-transparent"> <div class="row"> <div class="col-4 text-center"> <input type="text" class="knob" data-readonly="true" value="20" data-width="60" data-height="60" data-fgColor="#39CCCC"> <div class="text-white">Mail-Orders</div> </div> <!-- ./col --> <div class="col-4 text-center"> <input type="text" class="knob" data-readonly="true" value="50" data-width="60" data-height="60" data-fgColor="#39CCCC"> <div class="text-white">Online</div> </div> <!-- ./col --> <div class="col-4 text-center"> <input type="text" class="knob" data-readonly="true" value="30" data-width="60" data-height="60" data-fgColor="#39CCCC"> <div class="text-white">In-Store</div> </div> <!-- ./col --> </div> <!-- /.row --> </div> <!-- /.card-footer --> </div> <!-- /.card --> <!-- Calendar --> <div class="card bg-gradient-success"> <div class="card-header border-0"> <h3 class="card-title"> <i class="far fa-calendar-alt"></i> Calendar </h3> <!-- tools card --> <div class="card-tools"> <!-- button with a dropdown --> <div class="btn-group"> <button type="button" class="btn btn-success btn-sm dropdown-toggle" data-toggle="dropdown" data-offset="-52"> <i class="fas fa-bars"></i> </button> <div class="dropdown-menu" role="menu"> <a href="#" class="dropdown-item">Add new event</a> <a href="#" class="dropdown-item">Clear events</a> <div class="dropdown-divider"></div> <a href="#" class="dropdown-item">View calendar</a> </div> </div> <button type="button" class="btn btn-success btn-sm" data-card-widget="collapse"> <i class="fas fa-minus"></i> </button> <button type="button" class="btn btn-success btn-sm" data-card-widget="remove"> <i class="fas fa-times"></i> </button> </div> <!-- /. tools --> </div> <!-- /.card-header --> <div class="card-body pt-0"> <!--The calendar --> <div id="calendar" style="width: 100%"></div> </div> <!-- /.card-body --> </div> <!-- /.card --> </section> <!-- right col --> </div> <!-- /.row (main row) --> </div><!-- /.container-fluid --> </section> <!-- /.content --> </div> <!-- /.content-wrapper -->
The footer.blade.php file looks like this:
<footer class="main-footer"> <strong>Copyright © 2014-2021 <a href="https://adminlte.io">AdminLTE.io</a>.</strong> All rights reserved. <div class="float-right d-none d-sm-inline-block"> <b>Version</b> 3.2.0 </div> </footer> <!-- Control Sidebar --> <aside class="control-sidebar control-sidebar-dark"> <!-- Control sidebar content goes here --> </aside> <!-- /.control-sidebar --> </div> <!-- ./wrapper --> <!-- jQuery --> <script src="admincss/plugins/jquery/jquery.min.js"></script> <!-- jQuery UI 1.11.4 --> <script src="admincss/plugins/jquery-ui/jquery-ui.min.js"></script> <!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip --> <script> $.widget.bridge('uibutton', $.ui.button) </script> <!-- Bootstrap 4 --> <script src="admincss/plugins/bootstrap/js/bootstrap.bundle.min.js"></script> <!-- ChartJS --> <script src="admincss/plugins/chart.js/Chart.min.js"></script> <!-- Sparkline --> <script src="admincss/plugins/sparklines/sparkline.js"></script> <!-- JQVMap --> <script src="admincss/plugins/jqvmap/jquery.vmap.min.js"></script> <script src="admincss/plugins/jqvmap/maps/jquery.vmap.usa.js"></script> <!-- jQuery Knob Chart --> <script src="admincss/plugins/jquery-knob/jquery.knob.min.js"></script> <!-- daterangepicker --> <script src="admincss/plugins/moment/moment.min.js"></script> <script src="admincss/plugins/daterangepicker/daterangepicker.js"></script> <!-- Tempusdominus Bootstrap 4 --> <script src="admincss/plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script> <!-- Summernote --> <script src="admincss/plugins/summernote/summernote-bs4.min.js"></script> <!-- overlayScrollbars --> <script src="admincss/plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script> <!-- AdminLTE App --> <script src="admincss/dist/js/adminlte.js"></script> <!-- AdminLTE for demo purposes --> <script src="admincss/dist/js/demo.js"></script> <!-- AdminLTE dashboard demo (This is only for demo purposes) --> <script src="admincss/dist/js/pages/dashboard.js"></script>
Now, hit the following URL in the browser.
http://localhost:8000/admin
Remember, you need to start the laravel development server.
Conclusion
You can further modify the theme by dividing it into smaller dynamic pieces as per your requirements. This is just a demo. Our theme looks like this.
That’s it for the Integrate Admin Template In Laravel Tutorial.
Sadick
Greetings.
i am new to laravel and i have followed your tutorials to the end, but when i start the server and launch the app, the original laravel start page is what shows.
what should i do
Krunal
Route::view(‘admin’, ‘home’);
You need to go to http://localhost:8000/admin route to get the admin view.
Andrew
View [home] not found.
Elivar Largo
Good article, excellent thanks
Reggie
Hi, Does anyone know how reference css and JS with id in the URL?
let me explain. my assets folder is in /public and it works on any page when http://127.0.0.1:8000/register is loaded but it is not working when I click on a user that has the id in the URL http://127.0.0.1:8000/user/id or any page i put like http://127.0.0.1:8000/car/create. Your help will very appreciated. Thanks
john
Am experincing a very serious challege.
Am working on web app.
I have a parent view, where children are inheriting it.
Am new in laravel.
I have this form that when i view within the parent view its fine, but when i try to post some data for saving nothing is happening.
If i do away with the parent view its saving very well.
what could be the problem?
Somebody help.
Obka
hello dear
i do step by step in laravel 5.6 but not show me laravel adminLTE , only show default template why ?
not work in laravel 5.6 ?
Thank you
ravi
how to download/integrate the admin panel template in the plain HTML,
ravi
how to do??.. download or integrate the admin panel template in the plain HTML .. please anyone tell me
Nasiruddin
Nice Article..
Deeptha
I am creating website using laravel with firebase. Is it possible to generate admin panel like this?
Raja Danyal Mushtaq
can it integerate with laravel 6.0
Krunal Lathiya
We have updated this article for Laravel 11. Please have a look.
Fahad
http://localhost:8000/admin
reuslt :
home not found
how do you fix this ?