35 lines
1.2 KiB
PHP
35 lines
1.2 KiB
PHP
@extends('admin.base')
|
|
|
|
@section('content')
|
|
<div class="table-heading">
|
|
<h1>Now</h1>
|
|
<a class="pure-button button-black-white" href="{{ route('admin.now.create') }}">Create</a>
|
|
</div>
|
|
<table class="pure-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Id</th>
|
|
<th>Fecha</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($nows as $now)
|
|
<tr>
|
|
<td>{{$now->id}}</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>
|
|
<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>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
@endsection
|