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

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

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

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

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

{{$model->document_no}}

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

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

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

{{$model->over_due_amount}}

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

{{$model->current_meter_reading}}

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

{{$model->last_meter_reading}}

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

@php $total=0; @endphp @php $meter_gst=0; @endphp @php $meter_without_gst=0; @endphp @php $amount_gst=0; @endphp @php $amount_without_gst=0; @endphp @foreach($model->items as $row) @if ($row->is_gst) @php $meter_gst+=$row->meter_usage; @endphp @php $amount_gst+=$row->total_price; @endphp @else @php $meter_without_gst+=$row->meter_usage; @endphp @php $amount_without_gst+=$row->total_price; @endphp @endif @php $total+=$row->total_price; @endphp @endforeach
{{App\Language::trans('Meter Block')}} {{App\Language::trans('Meter Usage')}} {{App\Language::trans('Unit Price')}} {{App\Language::trans('Total')}}
{{$row->meter_block}} {{$row->meter_usage}} {{$model->getDouble($row->unit_price)}} {{$model->getDouble($row->total_price)}}
{{App\Language::trans('Total')}} : {{$model->getDouble($total)}}

{{App\Language::trans('Description')}} {{App\Language::trans('With GST')}} {{App\Language::trans('Without GST')}} {{App\Language::trans('Total')}}
{{App\Language::trans('Usage')}}kwH {{$model->getDouble($meter_gst)}} {{$model->getDouble($meter_without_gst)}} {{$model->getDouble($meter_gst+$meter_without_gst)}}
{{App\Language::trans('Usage')}}RM {{$model->getDouble($amount_gst)}} {{$model->getDouble($amount_without_gst)}} {{$model->getDouble($amount_gst+$amount_without_gst)}}
{{App\Language::trans('ICPT')}} (RM0.0152-)RM {{$model->getDouble($meter_gst*0.0152)}}- {{$model->getDouble($meter_without_gst*0.0152)}}- {{$model->getDouble(($meter_gst*0.0152)+($meter_without_gst*0.0152))}}-
{{App\Language::trans('Current Month Usage')}}RM {{$model->getDouble($model->current_month_amount)}}
6% GST {{-- (6% X RM{{$model->getDouble(($model->gst_amount/6)*100)}}) --}}RM {{$model->getDouble($model->gst_amount)}}
KWTBB (1.6%)RM {{$model->getDouble($model->kwtbb_amount)}}
Late Payment ChargeRM {{$model->getDouble($model->late_charge)}}
Current ChargeRM {{$model->getDouble($model->total_amount)}}
{!! Form::close() !!} @endsection @section('script') @endsection