Ahora todos los elementos tienen la opcion de publicarlos mas tarde

This commit is contained in:
Daniel Cortés
2019-10-17 08:38:37 -03:00
parent e67473b3c5
commit 0ccf88d85e
13 changed files with 110 additions and 26 deletions

View File

@@ -9,6 +9,7 @@
<thead>
<tr>
<th>Id</th>
<th>Published</th>
<th>Date</th>
<th></th>
</tr>
@@ -17,9 +18,10 @@
@foreach($nows as $now)
<tr>
<td>{{$now->id}}</td>
<td>{{$now->is_published ? "Yes" : "No"}}</td>
<td>{{$now->created_at->format('Y-m-d')}}</td>
<td class="controls">
<a class="pure-button button-black-white" href="{{ route('admin.now.edit', ['now' => $now->id]) }}">Edit</a>
<a href="{{ route('admin.now.edit', ['now' => $now->id]) }}" class="pure-button button-black-white">Edit</a>
<form action={{ route('admin.now.delete', ['now' => $now->id]) }} method="post">
@csrf
<button type="submit" class="pure-button button-black-white" onclick="return confirm('Estas seguro?')">Delete</button>