Eshop-Laravel/resources/views/cms/cms-edit-menu.blade.php
2019-10-18 12:25:37 +03:00

54 lines
1.5 KiB
PHP

@extends('cms.cms-master')
@section('main_content')
<h1>Add New Menu Link</h1>
@if ($errors -> any() )
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<div class="row">
<div class="col-md-6">
<form action="{{url('cms/menu') .'/'. $menu[0]->id}}" method="post">
{{csrf_field()}}
{{method_field('PUT')}}
<input type="hidden" name="item_id" value="{{$menu[0]->id}}">
<div class="form-group">
<label for="link" class="form-label">Link :</label>
<input value="{{ $menu[0]->link }}" id="link" name="link" type="text" class="origin_text form-control">
</div>
<div class="form-group">
<label for="title" class="form-label">Title : </label>
<input value="{{ $menu[0]->mtitle }}" id="title" name="title" type="text" class="form-control">
</div>
<div class="form-group">
<label for="url" class="form-label">Url :</label>
<input value="{{ $menu[0]->url }}" id="url" name="url" type="text" class="target-text form-control">
</div>
{{-- <div class="form-group">
<label for="url" class="form-label">Content :</label>
<textarea name="content" rows="8" cols="80" name="content">{{old('content')}}</textarea>
</div> --}}
<div class="form-group text-center">
<button type="submit" class="btn btn-primary"><i class="icon-profile"></i> Update </button>
</div>
</form>
</div>
</div>
@endsection