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.
 
 
 
 

108 lines
5.3 KiB

@extends('admin.layouts.app')
@section('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">Create Testimonial</h3>
<a href="{{url('admin/testimonials')}}" class="back-button btn-green">List</a>
</div>
<div class="card-body">
@include('success.success')
@include('errors.error')
{!! Form::open(['url' => 'admin/testimonials', 'class' => 'form-horizontal', 'method'=> 'POST','files' => true]) !!}
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label>Heading <span style="color: red">*</span></label>
<input type="text" class="form-control" id="heading" name="heading"value="{{old('heading')}}">
</div>
</div>
<!-- <div class="col-md-4">
<div class="form-group">
<label>Title <span style="color: red">*</span> </label>
<input type="text" class="form-control" id="title" name="title" required value="{{old('title')}}">
</div>
</div> -->
<div class="col-md-4">
<div class="form-group">
<label>Image <span style="color: red">*</span> </label>
<input type="file" class="form-control" id="image" name="image" required value="{{old('image')}}">
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label>Review <span style="color: red">*</span> </label>
<textarea id="body" name="review">{{old('review')}}</textarea>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label>Author Name <span style="color: red">*</span> </label>
<input type="text" class="form-control" id="author_name" name="author_name" required value="{{old('author_name')}}">
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Author Designation <span style="color: red">*</span> </label>
<input type="text" class="form-control" id="author_designation" name="author_designation" required value="{{old('author_designation')}}">
</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="status" required>
<option value="" selected disabled>Please Select Status</option>
@foreach(config('custom.status') as $in => $val)
<option value="{{$in}}" @if(old('status') == $in) selected @endif>{{$val}}</option>
@endforeach
</select>
</div>
</div>
</div>
<div class="form-group row create-button">
<div class="col-sm-10 col-md-12">
<button type="submit" class="btn btn-green">Create</button>
</div>
</div>
{!! Form::close() !!}
</div>
</div>
</div>
</section>
</div>
@endsection
@section('script')
<script>
ClassicEditor
.create( document.querySelector( '#body' ),
{
ckfinder: {
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}',
}
})
</script>
@endsection