Eshop-Laravel/resources/views/cms/content.blade.php

42 lines
927 B
PHP
Raw Permalink Normal View History

2019-10-18 09:25:37 +00:00
@extends('cms.cms-master')
@section('main_content')
<h2>Edit Site Content</h2>
<div class="row">
<div class="col-md-12">
<p>
<a class="btn btn-primary" href="{{ url('cms/content/create') }}">+Add New Content</a>
</p>
</div>
</div>
<br><br>
<div class="row">
<div class="col-md-8">
<table class="table table-bordered">
<thead>
<tr>
<th>Title</th>
<th>Updated_at</th>
<th>Oparation</th>
</tr>
</thead>
<tbody>
@foreach ($content as $item)
<tr>
<td>{{$item['title']}}</td>
<td>{{$item['updated_at']}}</td>
<td>
<a href="{{url('cms/content/'.$item['id'] . '/' . 'edit')}}">Edit </a>|
<a href="{{url('cms/content' .'/' . $item['id'])}}">Delete</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endsection