@if(session()->has('offers_updated')) @endif @include('includes.form_errors')
@lang('Location:') @if($offer->location) {{$offer->location->name}} @else @lang('None') @endif

{!! Form::model($offer, ['method'=>'patch', 'action'=>['ManageOffersController@update', $offer->id], 'files'=>true, 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}
@if($offer->photo)
Offer


@endif {{-- @if($offer->appPhoto)
Offer


@endif --}}
{!! 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)')], $offer->position, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default', 'required']) !!}
{!! Form::label('priority', __('Priority:')) !!} {!! Form::number('priority', $offer->priority, ['class'=>'form-control', 'placeholder'=>__('Enter priority'), 'min'=>'1', 'required']) !!}
{!! Form::label('status', __('Status:')) !!} {!! Form::select('status', [0=>__('Inactive'), 1=>__('Active')], $offer->is_active, ['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 Offer APP 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(__('Update'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}