uff creo que ya esta
This commit is contained in:
@@ -5,37 +5,35 @@
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="table-heading">
|
||||
<article>
|
||||
<h1>Projects</h1>
|
||||
<a class="pure-button button-black-white" href="{{ route('admin.project.create') }}">Add Project</a>
|
||||
</div>
|
||||
|
||||
<table class="pure-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Title</th>
|
||||
<th>Date</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($projects as $project)
|
||||
<table class="pure-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>{{$project->id}}</td>
|
||||
<td>{{ Str::limit($project->title, 30, "...") }}</td>
|
||||
<td>{{$project->created_at->format('Y-m-d')}}</td>
|
||||
<td class="controls">
|
||||
<a href="{{ route('admin.project.edit', ['project' => $project->id]) }}" class="pure-button button-black-white">Edit</a>
|
||||
<form action={{ route('admin.project.delete', ['project' => $project->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($projects as $project)
|
||||
<tr>
|
||||
<td>{{$project->id}}</td>
|
||||
<td>{{ Str::limit($project->title, 30, "...") }}</td>
|
||||
<td>{{$project->created_at->format('Y-m-d')}}</td>
|
||||
<td class="controls">
|
||||
<a href="{{ route('admin.project.edit', ['project' => $project->id]) }}" class="pure-button button-black-white">Edit</a>
|
||||
<form action={{ route('admin.project.delete', ['project' => $project->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
|
||||
|
||||
Reference in New Issue
Block a user