@if(session()->has('vendor_created')) @endif @if(session()->has('vendor_not_created')) @endif @include('includes.form_errors') {!! Form::open(['method'=>'post', 'action'=>'ManageVendorsController@store', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}

@lang('User Details')


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

@lang('Vendor Details')


{!! Form::label('shop_name', __('Shop Name:')) !!} {!! Form::text('shop_name', null, ['class'=>'form-control', 'placeholder'=>__('Enter shop name'), 'required'])!!}
{!! Form::label('company_name', __('Company Name:')) !!} {!! Form::text('company_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::label('amount_percentage_per_sale', __('Percentage of amount per sale that this vendor gets:')) !!} {!! Form::number('amount_percentage_per_sale', null, ['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')], null, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{!! Form::label('account_status', __('Account Status:')) !!} {!! Form::select('account_status', [0=>__('Pending'), 1=>__('Approved')], null, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{!! Form::submit(__('Add Vendor'), ['class'=>'btn btn-primary btn-block', 'name'=>'submit_button']) !!}
{!! Form::close() !!}