You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

106 lines
5.1 KiB

@extends('admin.layouts.app')
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<!-- SELECT2 EXAMPLE -->
<div class="card card-default">
<div class="card-header">
<h3 class="card-title">Edit Seo</h3>
<a href="{{url('admin/seo_titles')}}" class="back-button btn-green">List</a>
<a class="btn-green back-button mx-2" href="http://127.0.0.1:8000/admin/seo_titles/create" role="button">Create</a>
</div>
<div class="card-body">
@include('success.success')
@include('errors.error')
{!! Form::open(['url' => '/admin/seo_titles/'.$setting->id, 'class' => 'form-horizontal', 'method'=> 'POST','files' => true]) !!}
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>Seo Type</label>
<select name="seo_type" class="form-control" id="blog_type" required>
<option value="" selected disabled>Please select Blog Type</option>
@foreach(config('custom.seo_types') as $index => $value)
<option value="{{$index}}" {{($setting->seo_type == $index) ? 'selected':''}}>{{$value}}</option>
@endforeach
</select>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Status</label>
<select name="status" class="form-control" id="type" required>
<option value="" selected disabled>Please select Status</option>
@foreach(config('custom.status') as $in => $val)
<option value="{{$in}}" {{($setting->status ==$in) ? 'selected':''}}>{{$val}}</option>
@endforeach
</select>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Seo Title</label>
<input type="text" class="form-control" id="inputPassword3" name="seo_title" value="{{$setting->seo_title}}">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label> Keyword </label>
<input type="text" class="form-control" id="inputPassword3" name="keyword" value="{{$setting->keyword}}">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Seo Description</label>
<textarea class="summernote_class" name="seo_description">{{$setting->seo_description}}</textarea>
{{-- <input type="text" class="form-control" id="inputPassword3" name="seo_description" >--}}
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Meta Keyword</label>
<textarea class="summernote_class" name="meta_keyword" >{{$setting->meta_keyword}}</textarea>
</div>
</div>
<div class="form-group row">
<div class="col-sm-10">
<button type="submit" class="btn btn-green">Update</button>
</div>
</div>
{!! Form::close() !!}
</div>
</div>
</div>
</div>
</section>
</div>
@endsection
@section('script')
<script>
$(document).ready(function() {
$('.summernote_class').summernote()
})
</script>
@endsection