v1.2

Bootstrap 5 responsive admin template

documented by Sean Ngu

Updated on: 23/April/2022
By: Sean Ngu

If you have any questions that are beyond the scope of this help file, please feel free to inbox me your question or send me an email via support email. Thanks so much!

Follow the following step to install the laravel in your localhost
You may refer to their official documentation for how to setup the development environment.
Setup Guide

<!-- run the following command --> 
cd /your-path-url/template_laravel
composer install
npm install
npm run dev
php artisan serve

<!-- browse the url --> 
http://127.0.0.1:8000/

Make sure PHP >= 7.0.0 & node.js has been installed on your localhost / server

File structure overview for Laravel Version

hud_laravel_v1.2/
├──template_laravel_startup/      // version without demo pages
└──template_laravel/              // version include all demo pages
    ├── artisan
    ├── composer.json
    ├── package.json
    ├── phpunit.xml
    ├── server.php
    ├── webpack.mix.js
    ├── app/
    ├── bootstrap/
    ├── config/
    ├── database/
    ├── public/
    ├── resources/
    │   ├── lang
    │   ├── js
    │   ├── scss
    │   └── views
    │       ├── errors
    │       ├── layout
    │       ├── pages             
    │       └── partial
    ├── routes/
    ├── storage/
    └── tests/

We split the header, sidebar, footer and etc into few other part and include it in the base file. Base file has been located in /resources/views/layouts/default.blade.php.

<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}"{{ (!empty($htmlAttribute)) ? $htmlAttribute : '' }}>
<head>
  @include('partial.head')
</head>
<body class="{{ (!empty($bodyClass)) ? $bodyClass : '' }}">
  <!-- BEGIN #app -->
  <div id="app" class="app {{ (!empty($appClass)) ? $appClass : '' }}">
    @includeWhen(empty($appHeaderHide), 'partial.header')

    @includeWhen(empty($appSidebarHide), 'partial.sidebar')

    @if (empty($appContentHide))
      <!-- BEGIN #content -->
      <div id="content" class="app-content  {{ (!empty($appContentClass)) ? $appContentClass : '' }}">
        @yield('content')
      </div>
      <!-- END #content -->
    @else
      @yield('content')
    @endif

    @includeWhen(!empty($appFooter), 'partial.footer')
  </div>
  <!-- END #app -->

  @include('partial.scroll-top-btn')

  @include('partial.theme-panel')

  @include('partial.scripts')
</body>
</html>

Below is the list of supported variable / setting in view file.

Variable Usage
@extends('layout.default', ['htmlAttribute' => '']) Set the attribute for html tag
@extends('layout.default', ['bodyClass' => '']) Set the css class for body tag
@extends('layout.default', ['appClass' => '']) Set the app class for div#app tag
@extends('layout.default', ['appContentClass' => '']) Set the app content class for div#app-content tag
@extends('layout.default', ['appHeaderHide' => true]) Flag to exclude header from your page
@extends('layout.default', ['appSidebarHide' => true]) Flag to exclude sidebar from your page
@extends('layout.default', ['appContentHide' => true]) Flag to place your page content outside #app-content container
@extends('layout.default', ['appFooter' => true]) Flag to include footer in your page

Using laravel stacks to add css / js by page level.

// example for how to add page level css
@push('css')
  <link href="/assets/plugins/photoswipe/dist/photoswipe.css" rel="stylesheet" />
  ...
@endpush

// example for how to add page level js
@push('js')
  <script src="/assets/plugins/photoswipe/dist/photoswipe-ui-default.min.js"></script>
  ...
@endpush

The default sidebar menu generator will set the .menu-item as active stat if the current url match with the pre-defined url for sidebar menu. Below is an example for custom active stat for those dynamic url like /product/edit/124.

// set the menu as active stat from .blade file without matching the url
@php
  config(['sidebar.activeUrl' => '/pos/kitchen-order']);
@endphp

All the css files used in Studio Larvel has been compiled into two files app.min.css and vendor.min.css by laravel mix. You may change the color scheme from /resources/scss/_variables.scss.

vendor.min.css
  1. FontAwesome
  2. Bootstrap Icons
  3. jQuery UI
  4. Animate.css
  5. Pace Loader
  6. Perfect Scrollbar
app.min.css
  1. Bootstrap
  2. HUD Core CSS

This theme compiles 6 javascript library into two files app.min.js and vendor.min.js by laravel mix.

vendor.min.js
  1. Pace Loader
  2. jQuery
  3. jQuery UI
  4. Bootstrap
  5. Perfect Scrollbar
  6. JavaScript Cookie
app.min.js
  1. HUD Core Javascript

Sidebar collapsed:

<div id="app" class="app app-sidebar-collapsed">
  ...
</div>

Full height:

<div id="app" class="app app-content-full-height">
  ...
  <div id="content" class="app-content" data-scrollbar="true" data-height="100%" 
       data-skip-mobile="true">
     ...
  </div>
</div>

Full width:

<div id="app" class="app app-content-full-width">
  ...
</div>

Fixed footer:

<div id="app" class="app app-footer-fixed">
  ...
  <div id="footer" class="app-footer">
    © 2020 seanTheme All Right Reserved
  </div>
</div>

Boxed Layout

<body class="app-with-bg">
  <div id="app" class="app app-boxed-layout">
    ...
  </div>
</body>

I've used the following images, icons or other files as listed.

jQuery Plugins

  1. animate.css: https://daneden.github.io/animate.css/
  2. ApexCharts: https://apexcharts.com/
  3. jQuery File Upload: https://blueimp.github.io/jQuery-File-Upload/
  4. Bootstrap: http://getbootstrap.com/
  5. Bootstrap Datepicker: https://uxsolutions.github.io/bootstrap-datepicker/
  6. Bootstrap Daterangepicker: http://www.daterangepicker.com/
  7. Bootstrap Slider: https://www.eyecon.ro/bootstrap-slider/
  8. Bootstrap Timepicker: http://jdewit.github.io/bootstrap-timepicker/
  9. Bootstrap Table: https://bootstrap-table.com/
  10. Chart.js: https://chartjs.org
  11. DataTables: https://datatables.net/
  12. FontAwesome: https://fontawesome.com/
  13. Fullcalendar: https://fullcalendar.io/
  14. jQuery: https://jquery.com/
  15. jQuery Slimscroll: http://rocha.la/jQuery-slimScroll
  16. jQuery UI: https://jqueryui.com/
  17. jQuery Typeahead: http://www.runningcoder.org/jquerytypeahead/
  18. jquery.maskedinput: https://github.com/excellalabs/jquery.maskedinput
  19. Javascript Cookie: https://github.com/js-cookie/js-cookie
  20. jVectormap: http://jvectormap.com/
  21. Tag-It: http://aehlke.github.io/tag-it/
  22. Selectpicker: https://picker.uhlir.dev/
  23. Spectrum: https://seballot.github.io/spectrum/
  24. kbw-countdown: https://github.com/kbwood/countdown
  25. moment: http://momentjs.com/
  26. Pace: https://github.com/HubSpot/pace
  27. PhotoSwipe: https://photoswipe.com/
  28. Popper.js: https://popper.js.org/
  29. Summernote: https://github.com/summernote/summernote

Photos

  1. Unsplash: https://unsplash.com/
  2. Freepik: https://www.freepik.com/