Skip to content

Instantly share code, notes, and snippets.

@wallacemaxters
Last active April 25, 2016 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wallacemaxters/6114eb2fe53ebd98d1c6926ebd54c38b to your computer and use it in GitHub Desktop.
Save wallacemaxters/6114eb2fe53ebd98d1c6926ebd54c38b to your computer and use it in GitHub Desktop.
@if(auth()->user()->canAccessByName($route))
<p class="text-right">{!! link_to_route($route, 'adicionar', null, ['class'=>'btn btn-primary']); !!}</p>
@endif
<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