Eshop-Laravel/resources/views/cms/delete-product.blade.php

30 lines
701 B
PHP
Raw Permalink Normal View History

2019-10-18 09:25:37 +00:00
@extends('cms.cms-master')
@section('main_content')
<h1>Are You sure you want to delete this item ?</h1>
<h2>title :<b> {{$item[0] ->title}}</b></h2>
<p>Url : <b>{{$item[0]->url}}</b></p>
<img width="100" src="{{asset('images/' . $item[0]->image)}}" alt="">
<br>
<br>
<br>
<div class="row">
<div class="col-md-6">
<form action="{{url('cms/products' . '/'.$item[0] ->id)}}" method="post">
{{csrf_field()}}
{{method_field('DELETE')}}
{{-- <input type="hidden" name="_method" value="DELETE"> --}}
<a href="{{url('cms/products')}}" class="btn btn-default">Cancel</a>
<input type="submit" name="submit" value="Delete" class="btn btn-danger">
</form>
</div>
</div>
@endsection