@extends('billings.layouts.admin') @section('content') {!! Form::model($model, ['class'=>'form-horizontal']) !!} @include('_version_02.billings.layouts.partials._alert')

{{App\Language::trans('Detail Form')}}

{!! Form::label('code', App\Language::trans('Code'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('code', null, ['class'=>'form-control','autofocus','required']) !!} {!!$errors->first('code', '')!!}
{!! Form::label('name', App\Language::trans('Name'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('name', null, ['class'=>'form-control']) !!} {!!$errors->first('name', '')!!}
{!! Form::label('registration_no', App\Language::trans('Registration No'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('registration_no', null, ['class'=>'form-control','autofocus']) !!} {!!$errors->first('registration_no', '')!!}
{!! Form::label('gst_no', App\Language::trans('GST No'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('gst_no', null, ['class'=>'form-control']) !!} {!!$errors->first('gst_no', '')!!}
{!! Form::label('currency_id', App\Language::trans('Currency'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('currency_id', App\Currency::combobox(), null, ['class'=>'form-control','autofocus']) !!} {!!$errors->first('currency_id', '')!!}
{!! Form::label('customer_group_id', App\Language::trans('Group'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('customer_group_id', App\CustomerGroup::combobox(), null, ['class'=>'form-control']) !!} {!!$errors->first('customer_group_id', '')!!}
{!! Form::label('payment_term_id', App\Language::trans('Payment Term'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('payment_term_id', App\PaymentTerm::combobox(), null, ['class'=>'form-control','autofocus']) !!} {!!$errors->first('payment_term_id', '')!!}
{!! Form::label('sales_person', App\Language::trans('Sales Person'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('sales_person', null, ['class'=>'form-control']) !!} {!!$errors->first('sales_person', '')!!}
{!! Form::label('credit_limit', App\Language::trans('Credit Limit'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('credit_limit', null, ['class'=>'form-control','onchange'=>'init_double(this)']) !!} {!!$errors->first('credit_limit', '')!!}

{{App\Language::trans('Contact Detail Form')}}

{!! Form::label('contact_person', App\Language::trans('Contact Person'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('contact_person', null, ['class'=>'form-control']) !!} {!!$errors->first('contact_person', '')!!}
{!! Form::label('phone_no_1', App\Language::trans('Phone No. (1)'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('phone_no_1', null, ['class'=>'form-control']) !!} {!!$errors->first('phone_no_1', '')!!}
{!! Form::label('phone_no_2', App\Language::trans('Phone No. (2)'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('phone_no_2', null, ['class'=>'form-control']) !!} {!!$errors->first('phone_no_2', '')!!}
{!! Form::label('fax_no', App\Language::trans('Fax No.'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('fax_no', null, ['class'=>'form-control']) !!} {!!$errors->first('fax_no', '')!!}
{!! Form::label('email', App\Language::trans('Email'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('email', null, ['class'=>'form-control']) !!} {!!$errors->first('email', '')!!}
{!! Form::label('website', App\Language::trans('Website'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('website', null, ['class'=>'form-control']) !!} {!!$errors->first('website', '')!!}

{{App\Language::trans('Addresses Detail Form')}}

{{App\Language::trans('Billing Address')}}

{!! Form::label('billing_address1', App\Language::trans('Address'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('billing_address1', null, ['class'=>'form-control']) !!} {!!$errors->first('billing_address1', '')!!}
{!! Form::text('billing_address2', null, ['class'=>'form-control']) !!} {!!$errors->first('billing_address2', '')!!}
{!! Form::label('billing_postcode', App\Language::trans('Postcode'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('billing_postcode', null, ['class'=>'form-control']) !!} {!!$errors->first('billing_postcode', '')!!}
{!! Form::label('billing_country_id', App\Language::trans('Country'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('billing_country_id', App\Country::combobox(), null, ['class'=>'form-control','onchange'=>'init_state_selectbox(this)']) !!} {!!$errors->first('billing_country_id', '')!!}
{!! Form::label('billing_state_id', App\Language::trans('State'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('billing_state_id', App\State::combobox($model->billing_country_id), null, ['class'=>'form-control','onchange'=>'init_city_selectbox(this)']) !!} {!!$errors->first('billing_state_id', '')!!}
{!! Form::label('billing_city_id', App\Language::trans('City'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('billing_city_id', App\City::combobox($model->billing_state_id), null, ['class'=>'form-control']) !!} {!!$errors->first('billing_city_id', '')!!}

{{App\Language::trans('Delivery Address')}}

{!! Form::label('delivery_address1', App\Language::trans('Address'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('delivery_address1', null, ['class'=>'form-control']) !!} {!!$errors->first('delivery_address1', '')!!}
{!! Form::text('delivery_address2', null, ['class'=>'form-control']) !!} {!!$errors->first('delivery_address2', '')!!}
{!! Form::label('delivery_postcode', App\Language::trans('Postcode'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('delivery_postcode', null, ['class'=>'form-control']) !!} {!!$errors->first('delivery_postcode', '')!!}
{!! Form::label('delivery_country_id', App\Language::trans('Country'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('delivery_country_id', App\Country::combobox(), null, ['class'=>'form-control','onchange'=>'init_state_selectbox(this)']) !!} {!!$errors->first('delivery_country_id', '')!!}
{!! Form::label('delivery_state_id', App\Language::trans('State'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('delivery_state_id', App\State::combobox($model->delivery_country_id), null, ['class'=>'form-control','onchange'=>'init_city_selectbox(this)']) !!} {!!$errors->first('delivery_state_id', '')!!}
{!! Form::label('delivery_city_id', App\Language::trans('City'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('delivery_city_id', App\City::combobox($model->delivery_state_id), null, ['class'=>'form-control']) !!} {!!$errors->first('delivery_city_id', '')!!}

{{App\Language::trans('Other Detail Form')}}

{!! Form::label('status', App\Language::trans('Status'), ['class'=>'control-label col-md-4']) !!}
{!!$errors->first('status', '')!!}
{!! Form::label('is_suspend', App\Language::trans('Account Suspend'), ['class'=>'control-label col-md-4']) !!}
{!!$errors->first('is_suspend', '')!!}
{!! Form::label('remark', App\Language::trans('Remark'), ['class'=>'control-label col-md-2']) !!}
{!! Form::textarea('remark', null, ['rows'=>'5','class'=>'form-control']) !!} {!!$errors->first('remark', '')!!}
{!! Form::close() !!} @endsection @section('script') @endsection