Dashboard Page Segmentation

Secmentar las secciones, creando:

  • resources/views/admin/body/header.blade.php
  • resources/views/admin/body/sidebar.blade.php
  • resources/views/admin/body/footer.blade.php

En resources/views/admin/admin_dashboard.blade.php

<div class="main-wrapper">

  <!-- partial:partials/_sidebar.html -->
  @include('admin.body.sidebar')

  <div class="page-wrapper">

    <!-- Header Top Bar partial:partials/_navbar.html -->
    @include('admin.body.header')

    {{-- Contenido --}}
    @yield('admin')

    <!-- partial:partials/_footer.html -->
    @include('admin.body.footer')

  </div>

</div>