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

Member Detail

Select a Member

{!!Form::select('customer_id', App\Customer::combobox(), null, ['class'=>'form-control','onchange'=>'init_customer_info_arpa(this)','required']) !!}

{!! Form::label('name', App\Language::trans('Name'), ['class'=>'control-label']) !!} {!! Form::text('name', null, ['class'=>'form-control','required']) !!} {!!$errors->first('name', '')!!}
{!! Form::label('contact_person', App\Language::trans('Contact Person'), ['class'=>'control-label','required']) !!} {!! Form::text('contact_person', null, ['class'=>'form-control']) !!} {!!$errors->first('contact_person', '')!!}
{{App\Language::trans('Billing Information')}}

{!! Form::email('email', null, ['class'=>'form-control','required']) !!} {!!$errors->first('email', '')!!}
{!! Form::text('billing_address1', null, ['class'=>'form-control','required']) !!} {!!$errors->first('billing_address1', '')!!}
{!! Form::text('billing_address2', null, ['class'=>'form-control','autofocus']) !!} {!!$errors->first('billing_address2', '')!!}
{!! Form::select('delivery_country_id', App\Country::combobox(), null, ['class'=>'form-control','onchange'=>'init_state_selectbox(this)']) !!} {!!$errors->first('delivery_country_id', '')!!}
{!! 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::text('delivery_postcode', null, ['class'=>'form-control']) !!} {!!$errors->first('delivery_postcode', '')!!}

Select Item(s)

Select Item(s)

@include('_version_02.billings.ar_payment_receiveds.partials._list_by_product_to_invoice')

Trasaction Detail

Choose payment method

{!! Form::label('status', App\Language::trans('Document Status'), ['class'=>'control-label','required']) !!} {!! Form::text('status', null, ['class'=>'form-control','required']) !!} {!!$errors->first('status', '')!!}
{!! Form::label('document_date', App\Language::trans('Document Date'), ['class'=>'control-label','required']) !!} {!! Form::text('document_date', null, ['class'=>'form-control','required']) !!} {!!$errors->first('document_date', '')!!}
{!! Form::label('document_no', App\Language::trans('Document No.'), ['class'=>'control-label','required']) !!} {!! Form::text('document_no', null, ['class'=>'form-control','required']) !!} {!!$errors->first('document_no', '')!!}
{!! Form::label('po_no', App\Language::trans('P.O. No.'), ['class'=>'control-label']) !!} {!! Form::text('po_no', null, ['class'=>'form-control']) !!} {!!$errors->first('po_no', '')!!}
{!! Form::label('payment_term_id', App\Language::trans('Payment Term'), ['class'=>'control-label']) !!} {!! Form::select('payment_term_id', App\PaymentTerm::combobox(), null, ['class'=>'form-control','required']) !!} {!!$errors->first('payment_term_id', '')!!}
{!! Form::label('currency_id', App\Language::trans('Currency'), ['class'=>'control-label','required']) !!} {!! Form::select('currency_id', App\Currency::combobox(), null, ['class'=>'form-control','onchange'=>'init_currency_rate(this)','required']) !!} {!!$errors->first('currency_id', '')!!}
{!! Form::label('currency_rate', App\Language::trans('Currency Rate'), ['class'=>'control-label','required']) !!} {!! Form::text('currency_rate', null, ['class'=>'form-control','required']) !!} {!!$errors->first('currency_rate', '')!!}
{!! Form::label('sales_person', App\Language::trans('Sales Person'), ['class'=>'control-label','required']) !!} {!! Form::text('sales_person', null, ['class'=>'form-control','required']) !!} {!!$errors->first('sales_person', '')!!}
Summary
Sub Total
Tax
To Pay

Summary

Summary

Sub Total
Tax
To Pay

Finish

As a member, you agree to our terms and conditions to use.
{!! Form::close() !!}
@endsection @section('script') var customerInfoUrl = "{{action('CustomersController@getInfo')}}"; var productInfoUrl = "{{action('ProductsController@getInfo')}}"; function init_customer_info(me) { $.get(customerInfoUrl, {customer_id:$(me).val()}, function(fdata){ for (var key in fdata.data) { if(key != "status") { $("input[name="+key+"]").val(fdata.data[key]); if(key == "phone_no_1") { $("input[name=phone_no]").val(fdata.data[key]); } if(key == "currency_label") { $(".currency_label").html(fdata.data[key]); } if(key.match(/_id/g)) { $("select[name="+key+"]").val(fdata.data[key]).trigger("change"); } } } setTimeout(function(){ var billingStateSelectbox = $("select[name*=billing_state_id]"); billingStateSelectbox.empty(); var billing_state = $.get(statesComboboxUrl, {country_id:fdata.data["billing_country_id"]}, function(data){ for (var i = 0; i < data.length; i++) { billingStateSelectbox.append($("