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.
168 lines
7.7 KiB
168 lines
7.7 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 About Us</h3>
|
|
<a href="{{url('admin/about_us')}}" class="back-button btn-green">List</a>
|
|
<a href="{{url('admin/about_us/create')}}" class="back-button btn-green mx-2">Create</a>
|
|
</div>
|
|
<div class="card-body">
|
|
@include('success.success')
|
|
@include('errors.error')
|
|
{!! Form::open(['url' => '/admin/about_us/'.$about_us->id, 'class' => 'form-horizontal', 'method'=> 'PUT','files' => true]) !!}
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label>Image</label>
|
|
<input type="file" class="form-control" name="image" >
|
|
<br>
|
|
<span>
|
|
<a href="{{url($about_us->image)}}" target="_blank">
|
|
<img src="{{url($about_us->image)}}" alt="" style="width: 100px">
|
|
</a>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12" >
|
|
<div class="form-group" >
|
|
<label>Top Description <span style="color: red";> * </span></label>
|
|
<textarea name="description" id="body" rows="5" style="height: 658px;" >{{$about_us->description}}
|
|
</textarea>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12" >
|
|
<div class="form-group" >
|
|
<label>Middle Description <span style="color: red";> * </span> </label>
|
|
<textarea name="sub_description" id="body1" rows="5" style="height: 658px;" >{{$about_us->sub_description}}
|
|
</textarea>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12" >
|
|
<div class="form-group" >
|
|
<label>Bottom Description <span style="color: red";> * </span> </label>
|
|
<textarea name="bottom_description" id="body2" rows="5" required style="height: 658px;" >{{$about_us->bottom_description}}
|
|
</textarea>
|
|
</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="{{$about_us->seo_title}}">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label> Keyword <span style="color: red";> * </span> </label>
|
|
<input type="text" class="form-control" id="inputPassword3" name="keyword" value="{{$about_us->keyword}}">
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label>Seo Description</label>
|
|
<textarea id="body3" name="seo_description">{{$about_us->seo_description}}</textarea>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label>Meta Keyword</label>
|
|
<textarea id="body4" name="meta_keyword" >{{$about_us->meta_keyword}}</textarea>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="form-group">
|
|
<label>Status <span style="color: red";> * </span> </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}}" {{($about_us->status ==$in) ? 'selected':''}}>{{$val}}</option>
|
|
@endforeach
|
|
|
|
</select>
|
|
</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>
|
|
</section>
|
|
</div>
|
|
@endsection
|
|
@section('script')
|
|
<script>
|
|
$.ajaxSetup({
|
|
headers: {
|
|
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
|
}
|
|
});
|
|
|
|
ClassicEditor
|
|
.create( document.querySelector( '#body' ),
|
|
{
|
|
ckfinder: {
|
|
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}',
|
|
}
|
|
|
|
})
|
|
ClassicEditor
|
|
.create( document.querySelector( '#body1' ),
|
|
{
|
|
ckfinder: {
|
|
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}',
|
|
}
|
|
})
|
|
ClassicEditor
|
|
.create( document.querySelector( '#body2' ),
|
|
{
|
|
ckfinder: {
|
|
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}', }
|
|
})
|
|
ClassicEditor
|
|
.create( document.querySelector( '#body3' ),
|
|
{
|
|
ckfinder: {
|
|
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}', }
|
|
})
|
|
ClassicEditor
|
|
.create( document.querySelector( '#body4' ),
|
|
{
|
|
ckfinder: {
|
|
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}', }
|
|
})
|
|
.catch( error =>
|
|
{ console.error( error );
|
|
}
|
|
);
|
|
|
|
|
|
</script>
|
|
@endsection
|
|
|
|
|