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

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

{!! Form::label('leaf_house_id', App\Language::trans('House No'), ['class'=>'control-label col-md-4']) !!}

{{$model->convert_house_no($model->leaf_room_id, $rooms)}}

{!! Form::label('leaf_room_id', App\Language::trans('Room No'), ['class'=>'control-label col-md-4']) !!}

{{$model->convert_room_no($model->leaf_room_id, $rooms)}}

{!! Form::label('utility_charge_id', App\Language::trans('Usage Charge'), ['class'=>'control-label col-md-4']) !!}

{{$model->display_relationed('utility_charge_id', 'name')}}

{!! Form::label('account_no', App\Language::trans('Account No'), ['class'=>'control-label col-md-4']) !!}

{{$model->account_no}}

{!! Form::label('contract_no', App\Language::trans('Contact No'), ['class'=>'control-label col-md-4']) !!}

{{$model->contract_no}}

{!! Form::label('deposit', App\Language::trans('Deposit'), ['class'=>'control-label col-md-4']) !!}

{{$model->getDouble($model->deposit)}}

{!! Form::label('meter_class', App\Language::trans('Meter Class'), ['class'=>'control-label col-md-4']) !!}

{{$model->display_relationed('meter_class', 'name')}}


{!! Form::label('ip_address', App\Language::trans('IP Address'), ['class'=>'control-label col-md-4']) !!}

{{$model->ip_address}}

{!! Form::label('meter_id', App\Language::trans('Meter ID'), ['class'=>'control-label col-md-4']) !!}

{{$model->meter_id}}

{{App\Language::trans('Utility Charge Table')}}

@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('Address Detail')}}

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


{!! Form::label('billing_address1', App\Language::trans('Address'), ['class'=>'control-label col-md-4']) !!}

{{$model->billing_address1}}

{{$model->billing_address2}}

{!!$errors->first('billing_address1', '')!!}
{!! Form::label('billing_postcode', App\Language::trans('Postcode'), ['class'=>'control-label col-md-4']) !!}

{{$model->billing_postcode}}

{!! Form::label('billing_country_id', App\Language::trans('Country'), ['class'=>'control-label col-md-4']) !!}

{{$model->display_relationed('billing_country_id', 'name')}}

{!! Form::label('billing_state_id', App\Language::trans('State'), ['class'=>'control-label col-md-4']) !!}

{{$model->display_relationed('billing_state_id', 'name')}}

{!! Form::label('billing_city_id', App\Language::trans('City'), ['class'=>'control-label col-md-4']) !!}

{{$model->display_relationed('billing_city_id', 'name')}}

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

{!! Form::label('status', App\Language::trans('Status'), ['class'=>'control-label col-md-4']) !!}

{{$model->display_status_string('status')}}

{!! Form::close() !!} @endsection @section('script') @endsection