@extends('utility_charges.layouts.web_apps') @section('content') {!! Form::model($model, ['class'=>'form-horizontal','method'=>'get']) !!}

{{App\Language::trans('Filter By')}}

{!! Form::label('date_started', App\Language::trans('Date Started'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('date_started', null, ['class'=>'form-control']) !!} {!!$errors->first('date_started', '')!!}
{!! Form::label('date_ended', App\Language::trans('Date Ended'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('date_ended', null, ['class'=>'form-control']) !!} {!!$errors->first('date_ended', '')!!}
{!! Form::label('room_id', App\Language::trans('Room No.'), ['class'=>'control-label col-md-4']) !!}
{!!Form::select('room_id', App\LeafAPI::get_self_houses(), null, ['class'=>'input-room'])!!} {!!$errors->first('room_id', '')!!}
{!! Form::label('export_by', App\Language::trans('Export By'), ['class'=>'control-label col-md-4']) !!}
{!!$errors->first('export_by', '')!!}
{!! Form::close() !!} @if(count($listing))

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

@foreach($listing as $index => $row) @php $total += $row->current_usage; @endphp @endforeach
# {{App\Language::trans('Date')}} {{App\Language::trans('From Time')}} {{App\Language::trans('To Time')}} {{App\Language::trans('Last Meter Reading')}} {{App\Language::trans('Current Meter Reading')}} {{App\Language::trans('Current Usage')}}
{{$index+1}} {{$row->current_date}} {{$row->time_started}} {{$row->time_ended}} {{$row->last_meter_reading}} {{$row->current_meter_reading}} {{$row->current_usage}}
{{App\Language::trans('Total')}}: {{number_format($total, 2)}}
@endif @stop @section('script') @stop