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

43 lines
959 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 Menus</h2>
<div class="row">
<div class="col-md-12">
<p>
<a class="btn btn-primary" href="{{ url('cms/menu/create') }}">+Add New Menu Link</a>
</p>
</div>
</div>
<br><br>
<div class="row">
<div class="col-md-8">
<table class="table table-bordered">
<thead>
<tr>
<th>Link</th>
<th>Updated_at</th>
<th>Created_at</th>
</tr>
</thead>
<tbody>
@foreach ($menu as $item)
<tr>
<td>{{$item['link']}}</td>
<td>{{$item['updated_at']}}</td>
<td>{{$item['created_at']}}</td>
<td>
<a href="{{url('cms/menu/'.$item['id'] . '/' . 'edit')}}">Edit </a>|
<a href="{{url('cms/menu' .'/' . $item['id'])}}">Delete</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endsection