Estoy avanzando en el adminpanel

This commit is contained in:
Daniel Cortés
2019-06-23 18:18:35 -04:00
parent be42d6f599
commit 8753ad62e7
10 changed files with 352 additions and 40 deletions

View File

@@ -0,0 +1,33 @@
@extends('admin.base')
@section('title')
<h1>Posts</h1>
@endsection
@section('content')
<table>
<thead>
<tr>
<th>Id</th>
<th>Titulo</th>
<th>Fecha</th>
<th class="controls"><a href="{{ route('admin.post.create') }}">create</a></th>
</tr>
</thead>
<tbody>
@foreach($posts as $post)
<tr>
<td>{{$post->id}}</td>
<td>{{$post->title}}</td>
<td>{{$post->created_at->format('Y-m-d')}}</td>
<td class="controls">
<a href="#">edit</a>
<a href="#">delete</a>
</td>
</tr>
@endforeach
</tbody>
</table>
@endsection