Last active
April 25, 2016 12:41
-
-
Save wallacemaxters/6114eb2fe53ebd98d1c6926ebd54c38b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if(auth()->user()->canAccessByName($route)) | |
<p class="text-right">{!! link_to_route($route, 'adicionar', null, ['class'=>'btn btn-primary']); !!}</p> | |
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Matérias</h1> | |
@include('botao_adicionar', ['route' => 'materias.create']); | |
@if($materias->count() | |
@foreach($materias as $materia) | |
/// ... | |
@endif | |
@endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment