@if(session()->has('offers_created'))
{{session('offers_created')}}
@endif
@include('includes.form_errors')
{!! Form::open(['method'=>'post', 'action'=>'ManageOffersController@store', 'files'=>true, 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}
{!! Form::label('name', __('Title:')) !!}
{!! Form::text('name', null, ['class'=>'form-control', 'placeholder'=>__('Enter offer title'), '']) !!}
{!! Form::label('position', __('Show in Page:')) !!}
{!! Form::select('position', ['Small Image'=>__('Small Image (630px × 300px)')], 1, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default', 'required']) !!}
{!! Form::label('priority', __('Priority:')) !!}
{!! Form::number('priority', 1, ['class'=>'form-control', 'placeholder'=>__('Enter priority'), 'min'=>'1', 'required']) !!}
{!! Form::label('status', __('Status:')) !!}
{!! Form::select('status', [0=>__('Inactive'), 1=>__('Active')], 1, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default', 'required']) !!}
{!! Form::label('photo', __('Choose Offer Web Image'), ['class'=>'btn btn-default btn-file']) !!}
{!! Form::file('photo',['class'=>'form-control', 'style'=>'display: none;','onchange'=>'$("#upload-file-info").html(files[0].name)']) !!}
@lang('No image chosen')
{{--
{!! Form::label('app_photo', __('Choose APP Offer Image'), ['class'=>'btn btn-default btn-file']) !!}
{!! Form::file('app_photo',['class'=>'form-control', 'style'=>'display: none;','onchange'=>'$("#upload-files-info").html(files[0].name)']) !!}
@lang('No image chosen')
--}}
{!! Form::submit(__('Add Offer'), ['class'=>'btn btn-primary btn-block', 'name'=>'submit_button']) !!}
{!! Form::close() !!}