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.
114 lines
4.9 KiB
114 lines
4.9 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 Slider</h3>
|
|
<a href="{{url('admin/sliders')}}" class="back-button btn-green">List</a>
|
|
</div>
|
|
<div class="card-body">
|
|
@include('success.success')
|
|
@include('errors.error')
|
|
{!! Form::open(['url' => '/admin/sliders', '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="title1" value="{{old('title1')}}" 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="title2" value="{{old('title2')}}">
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label>Image</label>
|
|
<input type="file" class="form-control" name="image" required>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label>Image Alt</label>
|
|
<input type="text" class="form-control" name="image_alt" >
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="col-md-12" >
|
|
<div class="form-group" >
|
|
<label>Description</label>
|
|
<textarea name="description" class="summernote_class" rows="5" style="height: 658px;" >{{old('description')}}</textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label>Link</label>
|
|
<input type="text" class="form-control" id="inputPassword3" name="link" value="{{old('link')}}">
|
|
</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>
|
|
$(document).ready(function() {
|
|
$('.summernote_class').summernote()
|
|
|
|
})
|
|
|
|
</script>
|
|
@endsection
|
|
|
|
|