@foreach($data as $key => $value)

{{ $value['site']['fullname'] }}

{{ $value['service_config_details']['description'] }} ( @if (count($value['previous_consumptions']) > 0) {{ tenantFormatDate($value['previous_consumptions'][0]['survey_start_date'], $preferences) }} - {{ tenantFormatDate($value['survey_start_date'], $preferences) }} @else {{ tenantFormatDate($value['lot']['last_reading_date'], $preferences) }} - {{ tenantFormatDate($value['survey_start_date'], $preferences) }} @endif )

Document Number Lot Number Date
{{ $value['id'] }} {{ $value['lot']['lot_no'] }} {{ tenantFormatDate($value['survey_end_date'], $preferences) }}
Lot Owner: {{ $value['lot']['lot_owner']['name'] }}
Address: {{ $value['lot']['lot_owner']['address'] }}

Meter Reading Data

Previous Current Consumption
Date @if(count($value['previous_consumptions']) > 0) {{ tenantFormatDate($value['previous_consumptions'][0]['survey_start_date'], $preferences) }} @else {{ tenantFormatDate($value['lot']['last_reading_date'], $preferences) }} @endif {{ tenantFormatDate($value['survey_start_date'], $preferences) }}
Meter Reading {{ $value['previous_unit'] }} {!! tenantUnitLabel($value['service_type_id'], $preferences) !!} {{ $value['current_unit'] }} {!! tenantUnitLabel($value['service_type_id'], $preferences) !!} {{-- {{ $value['current_unit'] - $value['previous_unit'] }} --}} {{-- {{ $value['units_consumed'] }} --}} {{ (float)number_format($value['units_consumed'], 2, '.', '') }} @if($value['service_type_id'] == 3) KG @else {!! tenantUnitLabel($value['service_type_id'], $preferences) !!} @endif
Last 3 Consumptions: @foreach ($value['previous_consumptions'] as $session) {{ tenantFormatDate($session['survey_end_date'], $preferences) }} - {{ number_format((float)$session['units_consumed'], 3, '.', '') }} {!! tenantUnitLabel($value['service_type_id'], $preferences) !!} | @endforeach {{-- Nov,18 - 45 | Dec,18 - 45 | Jan,18 - 45 --}}

Notes

{!! nl2br( e($value['service_config_details']['custom_message'])) !!}
Generated with Snap & Bill — www.snapnbill.com
@if(count($data) > 1)
@endif @endforeach