@extends('_version_02.commons.layouts.admin') @section('content') {!! Form::model($model, ['class'=>'form-horizontal','method'=>'get']) !!}
{{App\Language::trans('Filter By')}}

{!! Form::label('month_started', App\Language::trans('From Month'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('month_started', App\PowerMeterModel\MeterInvoice::previous_one_year_combobox(), (old('month_started') ? old('month_started'):$model->three_month_pass()), ['class'=>'form-control','autofocus']) !!} {!!$errors->first('month_started', '')!!}
{!! Form::label('month_ended', App\Language::trans('To Month'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('month_ended', App\PowerMeterModel\MeterInvoice::previous_one_year_combobox(), (old('month_ended') ? old('month_ended'):$model->last_month()), ['class'=>'form-control']) !!} {!!$errors->first('month_ended', '')!!}
{!! Form::label('leaf_house_id', App\Language::trans('Unit No.'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('leaf_house_id', App\PowerMeterModel\MeterRegister::houses_combobox(), null, ['class'=>'form-control','required','onchange'=>'init_room_combobox(this)']) !!} {!!$errors->first('leaf_house_id', '')!!}
{!! Form::label('leaf_room_id', App\Language::trans('Room No.'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('leaf_room_id', App\PowerMeterModel\MeterRegister::rooms_combobox((old('leaf_house_id') ? old('leaf_house_id'):$model->leaf_house_id)), null, ['class'=>'form-control','onchange'=>'init_room_status(this)']) !!} {!!$errors->first('leaf_room_id', '')!!}
{!! Form::label('export_by', App\Language::trans('Exported By'), ['class'=>'control-label col-md-4']) !!}
{!!$errors->first('export_by', '')!!}
@include('_version_02.commons.layouts.partials._form_floating_footer_report') {!! Form::close() !!} @if(count($listing))
{{App\Language::trans('Result')}}

@foreach($listing as $index => $row) @php $status_text = $row->status == 1 ? 'Success' : 'Fail'; @endphp @php $total += $row->total_amount; @endphp @endforeach
# {{App\Language::trans('Room No.')}} {{App\Language::trans('Document No.')}} {{App\Language::trans('Refernce No.')}} {{App\Language::trans('Description')}} {{App\Language::trans('Document Date')}} {{App\Language::trans('Payment Status')}} {{App\Language::trans('Amount')}}
{{$index+1}} {{$row->house_name}} {{$row->document_no}} {{$row->payment_gateway_reference_no}} {{$row->remark}} {{$row->document_date}} {{ App\Language::trans($status_text)}} {{$row->setDouble($row->total_amount)}}
{{App\Language::trans('Total')}}: {{number_format($total, 2)}}
@elseif(count($listing) == 0 && $is_search_result == true) @include('_version_02.commons.report_modules.no_data_found') @endif @stop @section('script') $(".input-daterange").datepicker({ format: "dd-mm-yyyy", }); @stop