@extends('backend.includes.panel') @section('page_css') @stop @section('page_title','Coupon') @section('inner_page_link')
Coupon
Name
{{ Form::text('name',Input::old('name'),['class'=>'form-control','placeholder'=>'Coupon Name','data-parsley-required'=>'true','autofocus'=>'true']) }}
@if(isset($errors) && $errors->first('name'))
{{ $errors->first('name') }}
@endif
Code
{{ Form::text('code',Input::old('code'),['class'=>'form-control','placeholder'=>'Coupon Code','data-parsley-required'=>'true']) }}
@if(isset($errors) && $errors->first('code'))
{{ $errors->first('code') }}
@endif
Type
{{ Form::select('type',\Config::get('custom.coupon-types'),Input::old('type'),['class'=>'form-control','placeholder'=>'Coupon Type','data-parsley-required'=>'true']) }}
@if(isset($errors) && $errors->first('type'))
{{ $errors->first('type') }}
@endif
Usable Limit
{{ Form::number('usable_limit',Input::old('usable_limit'),['class'=>'form-control','placeholder'=>'Usage Limit','data-parsley-required'=>'true','step'=>1,'min' => 1]) }}
@if(isset($errors) && $errors->first('usable_limit'))
{{ $errors->first('usable_limit') }}
@endif