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

{!! Form::label('status', App\Language::trans('Status'), ['class'=>'control-label col-md-12']) !!}
status) == true ? ($model->status == true ? 'checked' : '') : 'checked'}}>
status) == true ? ($model->status == false ? 'checked' : '') : ''}}>
{!!$errors->first('status', '')!!}
{!! Form::label('house_unit', App\Language::trans('Unit No'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('house_unit', null, ['class'=>'form-control','required']) !!} {!!$errors->first('house_unit', '')!!}
{!! Form::label('house_floor', App\Language::trans('Floor'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('house_floor', null, ['class'=>'form-control','required']) !!} {!!$errors->first('house_floor', '')!!}
{!! Form::label('country_id', App\Language::trans('Country'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('country_id', App\Country::combobox(), null, ['class'=>'form-control','autofocus','onchange'=>'init_state_selectbox(this)']) !!} {!!$errors->first('country_id', '')!!}
{!! Form::label('state_id', App\Language::trans('State'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('state_id', App\State::combobox($model->country_id), null, ['class'=>'form-control']) !!} {!!$errors->first('state_id', '')!!}
@php if(isset($model->id)){ $landlord_information = json_decode($model->landlord_information); $house_other_information = json_decode($model->house_other_information); } @endphp
{{App\Language::trans('Landlord Information')}}

{!! Form::label('landlord_information', App\Language::trans('Name'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('landlord_information[name]', (isset($landlord_information->name) ? $landlord_information->name : null), ['class'=>'form-control','placeholder'=>'Name']) !!} {!!$errors->first('landlord_information[name]', '')!!}
{!! Form::label('landlord_information', App\Language::trans('Contact No.'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('landlord_information[contact_no]', (isset($landlord_information->contact_no) ? $landlord_information->contact_no : null), ['class'=>'form-control','placeholder'=>'Contact No.']) !!} {!!$errors->first('landlord_information[contact_no]', '')!!}
{!! Form::label('landlord_information', App\Language::trans('Ic No.'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('landlord_information[ic_no]', (isset($landlord_information->ic_no) ? $landlord_information->ic_no : null), ['class'=>'form-control','placeholder'=>'Ic No.']) !!} {!!$errors->first('landlord_information[ic_no]', '')!!}
{!! Form::label('landlord_information', App\Language::trans('House Address'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('landlord_information[house_address]', (isset($landlord_information->house_address) ? $landlord_information->house_address : null), ['class'=>'form-control','placeholder'=>'House Address']) !!} {!!$errors->first('landlord_information[house_address]', '')!!}
{{App\Language::trans('Misc.')}}

{!! Form::label('house_other_information', App\Language::trans('Property Type'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('house_other_information[property_type]', (isset($house_other_information->property_type) ? $house_other_information->property_type : null), ['class'=>'form-control','placeholder'=>'Property Type']) !!} {!!$errors->first('house_other_information[property_type]', '')!!}
{!! Form::label('house_other_information', App\Language::trans('Rental'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('house_other_information[rental]', (isset($house_other_information->rental) ? $house_other_information->rental : null), ['class'=>'form-control','placeholder'=>'Rental']) !!} {!!$errors->first('house_other_information[rental]', '')!!}
{!! Form::label('house_other_information[is_aircond_unit]', App\Language::trans('Is Air Cond Unit'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('house_other_information[is_aircond_unit]', App\Setting::status_combobox(), (isset($house_other_information->is_aircond_unit) ? $house_other_information->is_aircond_unit : null), ['class'=>'form-control','autofocus','onchange'=>'init_state_selectbox(this)']) !!} {!!$errors->first('house_other_information[is_aircond_unit]', '')!!}
{!! Form::label('house_other_information', App\Language::trans('Fix Air Cond Electric Charges'), ['class'=>'control-label col-md-4']) !!}
{!! Form::number('house_other_information[fix_aircond_electric_fee_charges]', (isset($house_other_information->fix_aircond_electric_fee_charges) ? $house_other_information->fix_aircond_electric_fee_charges : null), ['class'=>'form-control','placeholder'=>'Fix Charges']) !!} {!!$errors->first('house_other_information[fix_aircond_electric_fee_charges]', '')!!}
{!! Form::label('house_other_information', App\Language::trans('Parking Lot No.'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('house_other_information[parking_lot_no]', (isset($house_other_information->parking_lot_no) ? $house_other_information->parking_lot_no : null), ['class'=>'form-control','placeholder'=>'Parking Lot No.']) !!} {!!$errors->first('house_other_information[parking_lot_no]', '')!!}
{!! Form::label('house_other_information', App\Language::trans('House Lot'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('house_other_information[house_lot]', (isset($house_other_information->house_lot) ? $house_other_information->house_lot : null), ['class'=>'form-control','placeholder'=>'House Lot']) !!} {!!$errors->first('house_other_information[house_lot]', '')!!}
{{App\Language::trans('Utility List')}}
{!!Form::select("house_fee_items[]", App\UtilityKy\House::utility_combobox(), strlen($model->house_fee_items) > 1 ? json_decode($model->house_fee_items,true):null, array("style"=>"width: 100%;","class"=>"form-control 3col active","id"=>"house_fee_items","multiple"=>"multiple"))!!}
@include('_version_02.commons.utilityKy.houses.partials._utility_fee')
@include('_version_02.commons.layouts.partials._form_floaring_footer_standard') {!! Form::close() !!} @endsection @section('script') @endsection