@extends('admin.layouts.master') @section('title') Generate Deals @stop @section('content')
Generate Deals
{{ Form::open(array('url' => 'admin/flyers/generate','class'=>'', 'id' => 'flyer_generator_form')) }}
{{ Form::select('general_type', ['fix' => 'Fix', 'rent_hour_range' => 'Rent Hour Range'], null, array('class'=>'bs-select form-control', 'data-live-search'=>'true', 'data-size'=>'8')) }} {{ Form::label('general_type') }}
{{ Form::text('group_name', null, array('class' => 'form-control')) }} {{ Form::label('group_name', 'Promotion Title') }}
{{ Form::text('prefix', null, array('class' => 'form-control', 'maxlength' => 1)) }}
{{ Form::text('code_from', null, array('class' => 'form-control')) }}
{{ Form::text('code_to', null, array('class' => 'form-control')) }} {{ Form::label('code_to') }}
{{ Form::select('promoter', $promoters, null, array('class'=>'bs-select form-control', 'data-live-search'=>'true', 'data-size'=>'8')) }} {{ Form::label('promoter') }}
{{ Form::select('type', array('percentage' => '%', 'fixed_value' => 'Fixed Value'), null, array('class'=>'bs-select form-control', 'data-live-search'=>'true', 'data-size'=>'8')) }} {{ Form::label('type', 'Discount Type') }}
{{ Form::text('amount', 0, array('class' => 'form-control')) }} {{ Form::label('amount') }}
{{ Form::text('start_date', null, array('data-provide' => 'datepicker', 'data-date-format' => 'yyyy/mm/dd', 'class' => 'form-control')) }} {{ Form::label('start_date') }}
{{ Form::text('end_date', null, array('data-provide' => 'datepicker', 'data-date-format' => 'yyyy/mm/dd', 'class' => 'form-control')) }} {{ Form::label('end_date') }}
@for($i = 0; $i < $_counter; $i++)
{{ Form::text('from_hour_' . $i, null, array('class' => 'form-control')) }} {{ Form::label('from_hour_' . $i, 'From Hour') }}
{{ Form::text('to_hour_' . $i, null, array('class' => 'form-control')) }} {{ Form::label('to_hour_' . $i, 'To Hour') }}
{{ Form::text('discount_amount_' . $i, 0, array('class' => 'form-control')) }} {{ Form::label('discount_amount_' . $i, 'Discount Amount') }}
@if($i != 0) remove @endif
@endfor
{{ Form::submit('Generate', array('class' => 'btn btn-primary btn-lg')) }}
{{ Form::close() }}
@stop @section('scripts') @parent @stop