@extends('_version_02.commons.layouts.admin') @section('content') {!! Form::model($model, ['class'=>'form-horizontal']) !!} @include('_version_02.commons.layouts.partials._alert') {!!Form::hidden('is_from_meter_pairing', $is_from_meter_pairing, ['id'=>'is_from_meter_pairing' , 'value'=>'is_from_meter_pairing']) !!}
{{App\Language::trans('Detail')}}

{!! Form::label('status', App\Language::trans('Status'), ['class'=>'control-label col-md-12']) !!}
{!!$errors->first('status', '')!!}
{!! Form::label('is_power_supply_on', App\Language::trans('Is Power Supply On'), ['class'=>'control-label col-md-12']) !!}
{!!$errors->first('is_power_supply_on', '')!!}
{!! Form::label('leaf_house_id', App\Language::trans('Unit No.'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('leaf_house_id', App\PowerMeterModel\MeterRegister::houses_combobox(), null, ['class'=>'form-control','autofocus','required','onchange'=>'init_room_combobox(this)']) !!} {!!$errors->first('leaf_house_id', '')!!}
{!! Form::label('leaf_room_id', App\Language::trans('Room No'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('leaf_room_id', App\PowerMeterModel\MeterRegister::rooms_combobox($model->leaf_house_id), null, ['class'=>'form-control','required']) !!} {!!$errors->first('leaf_room_id', '')!!}
{!! Form::label('utility_charge_id', App\Language::trans('Usage Charge'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('utility_charge_id', App\UtilityCharge::combobox(), null, ['class'=>'form-control','onchange'=>'init_utility_charge(this, "prices")']) !!} {!!$errors->first('utility_charge_id', '')!!}
{!! Form::label('account_no', App\Language::trans('Account No'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('account_no', null, ['class'=>'form-control']) !!} {!!$errors->first('account_no', '')!!}
{!! Form::label('contract_no', App\Language::trans('Contact No'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('contract_no', null, ['class'=>'form-control']) !!} {!!$errors->first('contract_no', '')!!}
{!! Form::label('deposit', App\Language::trans('Deposit'), ['class'=>'control-label col-md-4']) !!}
{!! Form::number('deposit', null, ['class'=>'form-control','step'=>'0.01','min'=>'0']) !!} {!!$errors->first('deposit', '')!!}
{!! Form::label('meter_class_id', App\Language::trans('Meter Class'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('meter_class_id', App\PowerMeterModel\MeterClass::combobox(), null, ['class'=>'form-control']) !!} {!!$errors->first('meter_class_id', '')!!}

{!! Form::label('ip_address', App\Language::trans('IP Address'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('ip_address', null, ['class'=>'form-control','required']) !!} {!!$errors->first('ip_address', '')!!}
{!! Form::label('meter_id', App\Language::trans('Meter ID'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('meter_id', null, ['class'=>'form-control','required']) !!} {!!$errors->first('meter_id', '')!!}
{{App\Language::trans('Price Information')}}

@foreach($model->display_relation_child('utility_charge_id','prices') as $row) @endforeach
# {{App\Language::trans('Unit Started')}} {{App\Language::trans('Unit Ended')}} {{App\Language::trans('GST')}} {{App\Language::trans('Unit Price')}}
{{$i++}} {{$row->started}} {{$row->ended}} {{$row->is_gst ? App\Language::trans('Yes'):App\Language::trans('No')}} {{$settings->getDouble($row->unit_price)}}
{{App\Language::trans('Billing Information')}}

{!! Form::label('billing_address1', App\Language::trans('Address'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('billing_address1', null, ['class'=>'form-control margin-bottom-15']) !!} {!! Form::text('billing_address2', null, ['class'=>'form-control']) !!} {!!$errors->first('billing_address1', '')!!}
{!! 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(old('billing_country_id') ? old('billing_country_id'):$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(old('billing_state_id') ? old('billing_state_id'):$model->billing_state_id), null, ['class'=>'form-control']) !!} {!!$errors->first('billing_city_id', '')!!}
@include('_version_02.commons.layouts.partials._form_floaring_footer_standard') {!! Form::close() !!} @endsection @section('script') $("[name='ip_address']").mask('099.099.099.099'); @endsection