I'm having a problem here, I need to send a variable to my layout, so I tried:
No controller
$this->layout->page = 'Atendentes';
and in the layout this
@yield('page')
The problem is that I need to compare this page variable within an if in case it is:
@if ( @yield('page') == 'Atendentes' )
//do something
@endif
<?php if ( <?php echo $__env->yieldContent('page') == 'Atendentes' ); ?>: ?>