@extends('admin.template.master') @section('stylesheets') {!! Html::style('assets/admin/bower_components/select2/dist/css/select2.min.css') !!} @endsection @section('title')

Offer insert and update offer

@endsection @section('main-content')

Entry

{!! Form::open(['url' => '/admin/offers']) !!}
{!! Form::label('Name') !!} {!! Form::text('offer_name', null, ['class' => 'form-control', 'placeholder' => 'Name','id' => 'offer_name']) !!} @if ($errors->has('offer_name')) {!! $errors->first('offer_name') !!}@endif
{!! Form::label('Slug') !!} {!! Form::text('offer_name_slug', null, ['class' => 'form-control', 'placeholder' => 'Name','id' => 'offer_slug']) !!} @if ($errors->has('offer_name_slug')) {!! $errors->first('offer_name_slug') !!}@endif
{!! Form::label('Title') !!} {!! Form::text('offer_title', null, ['class' => 'form-control', 'placeholder' => 'Name']) !!} @if ($errors->has('offer_title')) {!! $errors->first('offer_title') !!}@endif
{!! Form::label('Offer Position') !!} {!! Form::select('offer_position', $offerPosition, null, ['class' => 'form-control', 'placeholder' => 'Select offer position', 'id' => 'offer_position']) !!} @if ($errors->has('offer_position')) {!! $errors->first('offer_position') !!}@endif
{!! Form::label('Offer Sorting') !!} {{-- {!! Form::select('is_store', ['0' => 'Offer', '1' => 'Store', '2' => 'New Arrival'], 0, ['class' => 'form-control', 'placeholder' => 'Select offer type', 'id' => 'is_store']) !!} --}} {!! Form::select('offer_sorting', ['D' => 'Customized', 'LH' => 'Low to High (Price)', 'HL' => 'High to Low (Price)', 'HLD' => 'High to Low (Discount)'], NULL, ['class' => 'form-control', 'placeholder' => 'Select offer sorting', 'id' => 'offer_sorting', 'required' => 'required']) !!} @if ($errors->has('offer_sorting')) {!! $errors->first('offer_sorting') !!}@endif
{!! Form::label('Offer Type') !!} {{-- {!! Form::select('is_store', ['0' => 'Offer', '1' => 'Store', '2' => 'New Arrival'], 0, ['class' => 'form-control', 'placeholder' => 'Select offer type', 'id' => 'is_store']) !!} --}} {!! Form::select('is_store', ['0' => 'Offer', '1' => 'Store', '2' => 'Campaign'], 0, ['class' => 'form-control', 'placeholder' => 'Select offer type', 'id' => 'is_store', 'required' => 'required']) !!} @if ($errors->has('is_store')) {!! $errors->first('is_store') !!}@endif
{!! Form::label('Product Select Type') !!} {!! Form::select('select_type', ['1' => 'Single', '2' => 'Bulk', '3' => 'All Products'], 0, ['class' => 'form-control', 'placeholder' => 'Select Select Type', 'id' => 'select_type', 'required' => 'required']) !!} @if ($errors->has('select_type')) {!! $errors->first('select_type') !!}@endif
{!! Form::label('Product Type') !!} {!! Form::select('is_type', ['0' => 'Item Type Wise', '1' => 'Category Wise'], NULL, ['class' => 'form-control', 'placeholder' => 'Select Product Type', 'id' => 'is_type']) !!} @if ($errors->has('is_type')) {!! $errors->first('is_type') !!}@endif
{!! Form::label('Item Type') !!} {!! Form::select('item_type', $item_type, null, ['class' => 'form-control','id' => 'item_type','placeholder' => 'Select Item Type']) !!} @if ($errors->has('item_type')) {!! $errors->first('item_type') !!}@endif
{!! Form::label('Brand') !!} {!! Form::select('brand', $brand, null, ['class' => 'form-control','id' => 'brand', 'multiple' => 'multiple']) !!} @if ($errors->has('brand')) {!! $errors->first('brand') !!}@endif
{!! Form::label('Category') !!} {!! Form::select('category_id[]', $category, null, ['class' => 'form-control item_type_select2', 'multiple' => 'multiple', 'id' => 'category']) !!} @if ($errors->has('category')) {!! $errors->first('category') !!}@endif
Reset {{-- {!! Form::select('products[]',null, ['class' => 'form-control','id' => 'products' ,'multiple' => 'multiple']) !!} --}} @if ($errors->has('products')) {!! $errors->first('products') !!}@endif
Reset Paste Products {{-- {!! Form::select('products[]',null, ['class' => 'form-control','id' => 'products' ,'multiple' => 'multiple']) !!} --}}
@if ($errors->has('products2')) {!! $errors->first('products2') !!}@endif
{!! Form::label('Short Description') !!} {!! Form::textarea('offer_short_desc', null, ['class' => 'form-control', 'rows' => '8','placeholder' => 'Short Description', 'id' => 'offer_short_desc']) !!} @if ($errors->has('offer_description')) {!! $errors->first('offer_short_desc') !!}@endif
{!! Form::label('Long Description') !!} {!! Form::textarea('offer_description', null, ['class' => 'form-control', 'rows' => '8','placeholder' => 'Description', 'id' => 'offer_description']) !!} @if ($errors->has('offer_description')) {!! $errors->first('offer_description') !!}@endif
{!! Form::label('Note') !!} {!! Form::textarea('offer_note', null, ['class' => 'form-control', 'rows' => '3','placeholder' => 'Note', 'id' => 'offer_note']) !!} @if ($errors->has('offer_note')) {!! $errors->first('offer_note') !!}@endif
{!! Form::label('From') !!} {!! Form::date('from', \Carbon\Carbon::now(), ['class' => 'form-control']) !!}
{!! Form::label('To') !!} {!! Form::date('to', \Carbon\Carbon::now(), ['class' => 'form-control']) !!}
{!! Form::label('Hidden') !!} {!! Form::select('offer_is_hidden', [0 => 'No',1 => 'Yes', ], null, ['class' => 'form-control']) !!}
{!! Form::label('Status') !!} {!! Form::select('offer_is_exist', [1 => 'Active', 0 => 'Inactive'], null, ['class' => 'form-control']) !!}
{!! Form::label('View Style') !!} {!! Form::select('is_offer_style', ['new' => 'Category', 'old' => 'Product'], null, ['class' => 'form-control']) !!}
{!! Form::close() !!}
@endsection @section('javascripts') {!! Html::script('assets/admin/bower_components/select2/dist/js/select2.full.min.js') !!} {!! Html::script('assets/admin/bower_components/ckeditor/ckeditor.js') !!} @endsection