uff creo que ya esta

This commit is contained in:
Daniel Cortés
2019-10-15 16:57:31 -03:00
parent a7929c0097
commit 9f77ef6dd4
13 changed files with 372 additions and 258 deletions

View File

@@ -1,36 +1,35 @@
@extends('admin.base')
@section('content')
<div class="table-heading">
<article>
<h1>Setups</h1>
<a class="pure-button button-black-white" href="{{ route('admin.setup.create') }}">Add Setup</a>
</div>
<table class="pure-table">
<thead>
<tr>
<th>Id</th>
<th>Title</th>
<th>Date</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach($setups as $setup)
<table class="pure-table">
<thead>
<tr>
<td>{{$setup->id}}</td>
<td>{{ Str::limit($setup->title, 30, "...") }}</td>
<td>{{$setup->created_at->format('Y-m-d')}}</td>
<td class="controls">
<a href="{{ route('admin.setup.edit', ['setup' => $setup->id]) }}" class="pure-button button-black-white">Edit</a>
<form action={{ route('admin.setup.delete', ['setup' => $setup->id]) }} method="post">
@csrf
<button type="submit" class="pure-button button-black-white" onclick="return confirm('Estas seguro?')">Delete</button>
</form>
</td>
<th>Id</th>
<th>Title</th>
<th>Date</th>
<th></th>
</tr>
@endforeach
</tbody>
</table>
</thead>
<tbody>
@foreach($setups as $setup)
<tr>
<td>{{$setup->id}}</td>
<td>{{ Str::limit($setup->title, 30, "...") }}</td>
<td>{{$setup->created_at->format('Y-m-d')}}</td>
<td class="controls">
<a href="{{ route('admin.setup.edit', ['setup' => $setup->id]) }}" class="pure-button button-black-white">Edit</a>
<form action={{ route('admin.setup.delete', ['setup' => $setup->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>
</article>
@endsection