@if(session()->has('vendor_updated')) @endif @if(session()->has('vendor_not_updated')) @endif @include('includes.form_errors') {!! Form::model($vendor, ['method'=>'patch', 'action'=>['ManageVendorsController@update', $vendor->id], 'files'=>true, 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}

User Details


{!! Form::label('name', __('Name:')) !!} {!! Form::text('name', $vendor->user->name, ['class'=>'form-control', 'placeholder'=>__('Enter name'), 'required'])!!}
{!! Form::label('username', __('Username:')) !!} {!! Form::text('username', $vendor->user->username, ['class'=>'form-control', 'placeholder'=>__('Enter username'), 'required'])!!}
{!! Form::label('email', __('Email:')) !!} {!! Form::email('email', $vendor->user->email, ['class'=>'form-control', 'placeholder'=>__('Enter email'), 'required']) !!}
{!! Form::label('verified', __('Email Status:')) !!} {!! Form::select('verified', [true=>__('verified'), false=>__('unverified')], $vendor->user->verified, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{!! Form::label('password', __('Password:')) !!} {!! Form::password('password', ['class'=>'form-control', 'placeholder'=>__('Enter password')]) !!}
{!! Form::label('password_confirmation', __('Confirm Password:')) !!} {!! Form::password('password_confirmation', ['class'=>'form-control', 'placeholder'=>__('Enter password again')]) !!}
{!! Form::label('status', __('Status:')) !!} {!! Form::select('status', [0=>__('inactive'), 1=>__('active')], $vendor->user->is_active, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}

@lang('Vendor Details')


{!! Form::label('shop_name', __('Shop Name:')) !!} {!! Form::text('shop_name', $vendor->shop_name, ['class'=>'form-control', 'placeholder'=>__('Enter shop name'), 'required'])!!}
{!! Form::label('company_name', __('Company Name:')) !!} {!! Form::text('company_name', $vendor->name, ['class'=>'form-control', 'placeholder'=>__('Enter company name'), 'required'])!!}
{!! Form::label('phone-number', __('Phone:')) !!} {!! Form::text('phone-number', $vendor->phone, ['class'=>'form-control', 'placeholder'=>__('Enter phone number'), 'required'])!!}
{!! Form::label('description', __('Description:')) !!} {!! Form::textarea('description', $vendor->description, ['class'=>'form-control', 'placeholder'=>__('Enter description'), 'rows'=>'6'])!!}
{!! Form::label('address', __('Address:')) !!} {!! Form::text('address', $vendor->address, ['class'=>'form-control', 'placeholder'=>__('Enter address')])!!}
{!! Form::label('city', __('City:')) !!} {!! Form::text('city', $vendor->city, ['class'=>'form-control', 'placeholder'=>__('Enter city')])!!}
{!! Form::label('state', __('State:')) !!} {!! Form::text('state', $vendor->state, ['class'=>'form-control', 'placeholder'=>__('Enter state')])!!}
{!! Form::label('amount_percentage_per_sale', __('Percentage of amount per sale that this vendor gets:')) !!} {!! Form::number('amount_percentage_per_sale', $vendor->amount_percentage, ['class'=>'form-control', 'step'=>'any', 'placeholder'=>__('Enter percentage of amount per sale that this vendor gets'), 'required']) !!}
{!! Form::label('profile_status', __('Profile Status:')) !!} {!! Form::select('profile_status', [0=>__('Incomplete'), 1=>__('Completed')], $vendor->profile_completed, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{!! Form::label('account_status', __('Account Status:')) !!} {!! Form::select('account_status', [0=>__('Pending'), 1=>__('Approved')], $vendor->approved, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{!! Form::submit(__('Update Vendor'), ['class'=>'btn btn-primary btn-block', 'name'=>'submit_button']) !!}
{!! Form::close() !!}