@if($vendor)
@lang('Vendor Profile')
@else
@lang('Register as Vendor')
@endif
@if(isset($vendor->approved) && !$vendor->approved)
@lang('Your vendor profile is pending for approval by an administrator.')
@elseif($vendor->approved)
@endif
@if(session()->has('profile_updated'))
{{session('profile_updated')}}
@endif
@include('includes.form_errors')
{!! Form::model($vendor, ['method'=>'patch', 'action'=>['FrontVendorController@updateProfile'], 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;', 'id'=>'update-profile-form']) !!}
@if($vendor->approved)
@endif
{{$vendor->shop_name}}
{!! Form::label('name', __('Company Name:') ) !!}
{!! Form::text('name', null, ['class'=>'form-control', 'placeholder'=>__('Enter company name'), 'required'])!!}
{!! Form::label('phone-number', __('Phone:') ) !!}
{!! Form::text('phone-number', null, ['class'=>'form-control', 'placeholder'=>__('Enter phone number'), 'required'])!!}
{!! Form::label('description', __('Description:') ) !!}
{!! Form::textarea('description', null, ['class'=>'form-control', 'placeholder'=>__('Enter description'), 'rows'=>'6'])!!}
{!! Form::label('address', __('Address:') ) !!}
{!! Form::text('address', null, ['class'=>'form-control', 'placeholder'=>__('Enter address')])!!}
{!! Form::label('city', __('City:') ) !!}
{!! Form::text('city', null, ['class'=>'form-control', 'placeholder'=>__('Enter city') ])!!}
{!! Form::label('state', __('State:') ) !!}
{!! Form::text('state', null, ['class'=>'form-control', 'placeholder'=>__('Enter state') ])!!}
{!! Form::submit($vendor ? $vendor->profile_completed ? __('Update Profile') : __('Complete Profile') : __('Register as Vendor'), ['class'=>'btn btn-primary btn-block', 'name'=>'submit_button', 'id'=>'update_btn']) !!}
{!! Form::close() !!}