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.
147 lines
5.8 KiB
147 lines
5.8 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">Create Page</h3>
|
|
<a href="{{url('admin/pages')}}" class="back-button btn-green">List</a>
|
|
</div>
|
|
<div class="card-body">
|
|
@include('success.success')
|
|
@include('errors.error')
|
|
{!! Form::open(['url' => '/admin/pages', 'class' => 'form-horizontal', 'method'=> 'POST','files' => true]) !!}
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label>Title </label>
|
|
<input type="text" class="form-control" id="inputPassword3" name="title" value="{{old('title')}}" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label>Sub Title</label>
|
|
<input type="text" class="form-control" id="inputPassword3" name="sub_title" value="{{old('sub_title')}}">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label>Banner Image</label>
|
|
<input type="file" class="form-control" name="banner_image" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-12" >
|
|
<div class="form-group" >
|
|
<label>Description <span style="color: red";> * </span></label>
|
|
<textarea name="description" id="body" rows="5">{{old('description')}}</textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-12" >
|
|
<div class="form-group" >
|
|
<label>Sub Description <span style="color: red";> * </span></label>
|
|
<textarea name="sub_description" id="body1" rows="5">{{old('sub_description')}}</textarea>
|
|
</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}}" @if(old('status') == $in) selected @endif >{{$val}}</option>
|
|
@endforeach
|
|
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
</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()}}',
|
|
},
|
|
fontColor:{
|
|
colors: [
|
|
{
|
|
color: 'hsl(0, 0%, 0%)',
|
|
label: 'Black'
|
|
},
|
|
{
|
|
color: 'hsl(0, 0%, 30%)',
|
|
label: 'Dim grey'
|
|
},
|
|
{
|
|
color: 'hsl(0, 0%, 60%)',
|
|
label: 'Grey'
|
|
},
|
|
{
|
|
color: 'hsl(0, 0%, 90%)',
|
|
label: 'Light grey'
|
|
},
|
|
{
|
|
color: 'hsl(0, 0%, 100%)',
|
|
label: 'White',
|
|
hasBorder: true
|
|
}
|
|
],
|
|
columns: 5
|
|
}
|
|
|
|
})
|
|
ClassicEditor
|
|
.create( document.querySelector( '#body1' ),
|
|
{
|
|
ckfinder: {
|
|
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}',
|
|
}
|
|
|
|
})
|
|
|
|
</script>
|
|
@endsection
|
|
|
|
|