@if(session()->has('testimonial_updated')) @endif @include('includes.form_errors') {!! Form::model($testimonial, ['method'=>'patch', 'action'=>['ManageTestimonialsController@update', $testimonial->id], 'files'=>true, 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!} @if($testimonial->photo) Author
@endif
{!! Form::label('author', __('Author:')) !!} {!! Form::text('author', null, ['class'=>'form-control', 'placeholder'=>__("Enter author's name"), 'required'])!!}
{!! Form::label('designation', __('Designation:')) !!} {!! Form::text('designation', null, ['class'=>'form-control', 'placeholder'=>__("Enter author's designation")])!!}
{!! Form::label('review', __('Review:')) !!} {!! Form::textarea('review', null, ['class'=>'form-control', 'placeholder'=>__("Enter author's review"), 'required']) !!}
{!! Form::label('priority', __('Priority:')) !!} {!! Form::number('priority', null, ['class'=>'form-control', 'placeholder'=>__('Enter priority'), 'min'=>'1']) !!}
{!! Form::label('status', __('Status:')) !!} {!! Form::select('status', [0=>__('inactive'), 1=>__('active')], $testimonial->is_active, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{!! Form::label('photo', __('Choose photo (100px*100px)'), ['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 photo chosen')
{!! Form::submit(__('Update'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}