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

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

{!! Form::label('code', App\Language::trans('Code'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('code', null, ['class'=>'form-control']) !!} {!!$errors->first('code', '')!!}
{!! Form::label('text', App\Language::trans('Name'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('name', null, ['class'=>'form-control']) !!} {!!$errors->first('name', '')!!}
{!! Form::label('amount', App\Language::trans('Amount'), ['class'=>'control-label col-md-4']) !!}
{!! Form::number('amount', null, ['min'=>1,'max'=>9999,'step'=>'0.01','class'=>'form-control']) !!} {!!$errors->first('amount', '')!!}
{!! Form::label('room_type', App\Language::trans('Room Type'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('room_type', App\Setting::room_type_combobox(), null, ['class'=>'form-control','autofocus','onchange'=>'init_room_type_subsidize_handle(this)']) !!} {!!$errors->first('room_type', '')!!}
{!! Form::label('starting_date', App\Language::trans('From Month'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('starting_date', App\MeterInvoice::previous_one_year_combobox(), null, ['class'=>'form-control','autofocus']) !!} {!!$errors->first('starting_date', '')!!}
{!! Form::label('ending_date', App\Language::trans('To Month'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('ending_date', App\MeterInvoice::next_one_year_combobox(), null, ['class'=>'form-control']) !!} {!!$errors->first('ending_date', '')!!}
{!! Form::label('implementation_date', App\Language::trans('Implementation Date'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('implementation_date', App\Setting::select_days_combobox(),null, ['class'=>'form-control']) !!} {!!$errors->first('implementation_date', '')!!}
{!! Form::label('status', App\Language::trans('Status'), ['class'=>'control-label col-md-4']) !!}
{!!$errors->first('status', '
:message
')!!}
{!! Form::label('remark', App\Language::trans('Remark'), ['class'=>'control-label col-md-4']) !!}
{!! Form::textarea('remark', null, ['class'=>'form-control']) !!} {!!$errors->first('remark', '')!!}
{{App\Language::trans('Subsidize Tenant List')}}
{!!Form::select("subsidize_tenant_id[]", App\Customer::combobox_from_leaf_by_room_type_member_id('single'), strlen($model->subsidize_tenant_id) > 1 ? json_decode($model->subsidize_tenant_id,true):null, array("style"=>"width: 100%;","class"=>"form-control 3col active","id"=>"subsidize_tenant_id","multiple"=>"multiple"))!!}
{!!Form::select("subsidize_tenant_id[]", App\Customer::combobox_from_leaf_by_room_type_member_id('twin'), strlen($model->subsidize_tenant_id) > 1 ? json_decode($model->subsidize_tenant_id,true):null, array("style"=>"width: 100%;","class"=>"form-control 3col active","id"=>"subsidize_tenant_id","multiple"=>"multiple"))!!}
{!! Form::close() !!} @stop @section('script') $(".input-daterange").datepicker({ format: "dd-mm-yyyy", }); @stop