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.
198 lines
10 KiB
198 lines
10 KiB
2 years ago
|
@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 Gallery</h3>
|
||
|
<a href="{{url('admin/galleries')}}" class="back-button btn-green">List</a>
|
||
|
|
||
|
</div>
|
||
|
<div class="card-body">
|
||
|
@include('success.success')
|
||
|
@include('errors.error')
|
||
|
{!! Form::open(['url' => '/admin/galleries', 'class' => 'form-horizontal', 'method'=> 'POST','files' => true]) !!}
|
||
|
<div class="row">
|
||
|
<!-- <div class="col-md-4">
|
||
|
<div class="form-group">
|
||
|
<label> Title <span style="color: red";> * </span> </label>
|
||
|
<input type="text" class="form-control" id="inputPassword3" name="title" value="{{old('title')}}">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="col-md-4">
|
||
|
<div class="form-group">
|
||
|
<label> Author </label>
|
||
|
<input type="text" class="form-control" id="inputPassword3" name="author" value="{{old('author')}}">
|
||
|
</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" name="image" required>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- <div class="col-md-4">
|
||
|
<div class="form-group">
|
||
|
<label> Image Caption </label>
|
||
|
<input type="text" class="form-control" id="inputPassword3" name="image_caption" value="{{old('image_caption')}}">
|
||
|
</div>
|
||
|
</div> -->
|
||
|
|
||
|
<!-- <div class="col-md-4">
|
||
|
<div class="form-group">
|
||
|
<label> Image Credit </label>
|
||
|
<input type="text" class="form-control" id="inputPassword3" name="image_credit" value="{{old('image_credit')}}">
|
||
|
</div>
|
||
|
</div> -->
|
||
|
|
||
|
|
||
|
<div class="col-md-4">
|
||
|
<div class="form-group">
|
||
|
<label>Image alt <span style="color: red">*</span> </label>
|
||
|
<input type="text" class="form-control" id="inputPassword3" name="image_alt" value="{{old('image_alt')}}" required>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<!-- <div class="col-md-12" >
|
||
|
<div class="form-group" >
|
||
|
<label>Description <span style="color: red";> * </span></label>
|
||
|
<textarea name="description" class="summernote_class" rows="5" required style="height: 658px;" >{{old('description')}}</textarea>
|
||
|
</div>
|
||
|
</div> -->
|
||
|
<!-- <div class="col-md-12" >
|
||
|
<div class="form-group" >
|
||
|
<label>Middle Description <span style="color: red";> * </span> </label>
|
||
|
<textarea name="middle_description" class="summernote_class" rows="5" required style="height: 658px;" >{{old('middle_description')}}
|
||
|
</textarea>
|
||
|
</div>
|
||
|
</div> -->
|
||
|
<!-- <div class="col-md-12" >
|
||
|
<div class="form-group" >
|
||
|
<label>Sub Description <span style="color: red";> * </span></label>
|
||
|
<textarea name="bottom_description" class="summernote_class" rows="5" required style="height: 658px;" >{{old('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="{{old('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="{{old('keyword')}}" required>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-md-6">
|
||
|
<div class="form-group">
|
||
|
<label>Seo Description </label>
|
||
|
<textarea class="summernote_class" name="seo_description">{{old('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" >{{old('meta_keyword')}}</textarea>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
<!-- <div class="col-md-4">
|
||
|
<div class="form-group">
|
||
|
<label> Publish Date <span style="color: red";> * </span> </label>
|
||
|
<input type="text" class="form-control getDate" id="inputPassword3" name="publish_date" value="{{old('publish_date')}}">
|
||
|
|
||
|
</div>
|
||
|
</div> -->
|
||
|
<!-- <div class="col-md-4">
|
||
|
<div class="form-group">
|
||
|
<label>Type <span style="color: red";> * </span> </label>
|
||
|
<select name="blog_type" class="form-control" id="blog_type" required>
|
||
|
<option value="" selected disabled>Please select Type</option>
|
||
|
@foreach(config('custom.blog_types') as $index => $value)
|
||
|
<option value="{{$index}}" {{(old('blog_type')==$index) ? 'selected':''}}>{{$value}}</option>
|
||
|
@endforeach
|
||
|
|
||
|
</select>
|
||
|
</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}}" {{(old('status')==$in) ? 'selected':''}}>{{$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>
|
||
|
$(document).ready(function() {
|
||
|
$('.summernote_class').summernote()
|
||
|
})
|
||
|
|
||
|
var point_count = 1;
|
||
|
function getPoint(count){
|
||
|
point_count = point_count +1;
|
||
|
debugger;
|
||
|
var html = '<div id="point'+point_count+'" class="point1">'+
|
||
|
'<input type="text" class="point" name="point[]" placeholder="Points"> <br>'+
|
||
|
'<button type="button" class="close-point" onclick="deletePoint('+point_count+')"><i class="fa fa-trash" aria-hidden="true"></i></button>'+
|
||
|
'</div>';
|
||
|
$('#point_g_1').append(html);
|
||
|
}
|
||
|
function deletePoint(count){
|
||
|
if($('.point').length > 1){
|
||
|
$('#point'+count).remove();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
|
||
|
|
||
|
@endsection
|
||
|
|