Rendering templates with Blade

Asked

Viewed 110 times

0

My problem is time to render this section below: The part: @include('admin::layouts.includes.footer') stay out of the div#wrapper, someone would tell me why and how to get you inside?

layout.blade.php

<div id="app">
    @include('admin::layouts.includes.header')
    @include('admin::layouts.includes.navigation')

    <!-- Main Wrapper -->
    <div id="wrapper">
        @yield('content')
        @include('admin::layouts.includes.footer')
    </div>
</div>

Content of @include('admin::layouts.includes.footer')

<!-- Footer-->
<footer class="footer">
    <span class="pull-right">
        {{ __('Por') }} <a href="https://www.mauricioschmitz.com.br" target="_blank">Mauricio Schmitz</a>
    </span>
    {{ config('app.name', '') }} 2017-<?php  $date = new \DateTime(); echo $date->format('Y');?>
</footer>

Rendered HTML visualized in Inspect

<!-- Main Wrapper -->
    <div id="wrapper" style="min-height: 570px;">
        <div class="content">    
        </div>
    </div>
    <!-- Footer-->
    <footer class="footer">
        <span class="pull-right">
            Por <a href="https://www.mauricioschmitz.com.br" target="_blank">Mauricio Schmitz</a>
        </span>
        SGQ TOTAL 2017-2017</footer>
    </div>
  • Put in the complete code of @include('admin::layouts.includes.footer') also.

  • Your @yield('content') has content or is it empty? If you have something check if you have none div the more being closed without having been opened.

  • 1

    Wow, Valew @Darleifernandozillmer, I waver my... I hadn’t even thought about it... Solved

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.