Created
June 11, 2018 17:25
-
-
Save betinho37/20b0b992fd4bf79dc1c82cdbbc55e2a3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| @extends('layouts.app') | |
| @section('content') | |
| <h1 align="center" >Publicacões</h1> | |
| <div class="div1" style="padding:30px"> | |
| <a class="btn btn-primary" href="/home" >Voltar</a> | |
| <a class="btn btn-primary" href="/publicacao/create">Nova Publicação</a> | |
| <table align="center" class="table"><p></p> | |
| <th>Nome</th> | |
| <th>Titulo da Imagem</th> | |
| <th>Data</th> | |
| <th>Situação</th> | |
| <th>Opcões</th> | |
| </tr> | |
| @foreach($publicacao as $publicacoes) | |
| <tr> | |
| <td>{{$publicacoes -> nome }}</td> | |
| <td>{{$publicacoes -> titulo }}</td> | |
| <td>{{ date( 'd/m/Y' , strtotime($publicacoes->created_at ))}}</td> | |
| <td>{{isset($publicacoes->situacao) && $publicacoes->situacao == 0 ? 'Pendente' : 'Publicado' }}</td> | |
| <td><a href="{{@url('publicacao').'/edit/'.$publicacoes->id.''}}" class="btn btn-primary">Visualizar</a> | |
| @if (Auth::user()->tipousuario == 0 ) | |
| <td><a href="{{@url('publicacao').'/destroy/'.$publicacoes->id.''}}" class="btn btn-danger">Excluir</a></td> | |
| @else | |
| @endif | |
| </td> | |
| @endforeach | |
| </table> | |
| </div> | |
| @endsection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment