@extends('layouts.default') @section('title', 'Edit vendor') @section('header-links') @include('includes.headers.vendors') @endsection @section('new_button') remove_red_eye Vendors list @endsection @section('content')
{!! Form::model($vendor, ['route'=>['vendors.update', $vendor->id], 'id'=>'edit_vendor_form', 'data-toggle'=>'validator', 'role'=>'form', 'method'=>'PUT']) !!}
{!! Form::selectGroup('vendor_company_id', 'Vendor company', $vendorCompanies, null, ['id'=>'vendor_company_id', 'required']) !!}
{!! Form::textGroup('name', 'Vendor name', null, ['id'=>'name', 'required'=>'required', 'maxlength'=>'100']) !!}
{!! Form::textGroup('email', 'Vendor email', null, ['id'=>'email', 'required'=>'required', 'pattern'=>'[a-z0-9._-]+@[a-z0-9.-]+\.[a-z.]{2,}$', 'data-pattern-error'=>'Also, include a TLD. (Example: .com, .co.in, .co.us ...)', 'maxlength'=>'50']) !!}
{!! Form::textGroup('mobile', 'Vendor mobile', null, ['id'=>'mobile', 'required'=>'required', 'maxlength'=>'14']) !!}
{!! Form::textGroup('website', 'Website', null, ['id'=>'website', 'required'=>'required', 'maxlength'=>'100']) !!}
{!! Form::textGroup('payrate', 'Payrate', null, ['id'=>'payrate', 'required'=>'required', 'maxlength'=>'100']) !!}
{!! Form::selectGroup('country_id', 'Country', $countries, null, ['id'=>'country_1', 'required'=>'required', 'data-live-search'=>'true', 'onchange'=>'getStates(1)']) !!}
{!! Form::selectGroup('state_id', 'State', $states, null, ['id'=>'state_1', 'data-live-search'=>'true', 'onchange'=>'getCities(1)']) !!}
{!! Form::selectGroup('city_id', 'City', $cities, null, ['id'=>'city_1', 'data-live-search'=>'true']) !!}
{!! Form::textareaGroup('address', 'Address', null, ['id'=>'address']) !!}
{{ Form::saveButton('Save') }}
{!! Form::close() !!}
@include('includes.country-state-city-script') @stop