{{ $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 ) |
| Invoice Number | Lot Number | Invoice Date | Due Date |
|---|---|---|---|
| {{ $value['id'] }} | {{ $value['lot']['lot_no'] }} | {{ tenantFormatDate($value['survey_end_date'], $preferences) }} | {{ tenantFormatDate($value['due_date'], $preferences) }} |
| Billed to: | {{ $value['lot']['lot_owner']['name'] }} | ||
| Address: | {{ $value['lot']['lot_owner']['address'] }} | ||
Meter Reading Data |
| Previous | Current | |
|---|---|---|
| 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) !!} |
| 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 --}} |
Amount Due |
| Item | Rate | Total |
|---|---|---|
| {{ (float) number_format($value['units_consumed'], 2, '.', '') }} {!! tenantUnitLabel($value['service_type_id'], $preferences) !!} Consumed | @if ($value['rate_details']['method'] == 'variable_rate') {{ $value['rate_details']['name'] }} @else {!! tenantFormatMoney((float) $value['per_unit_rate'], $preferences) !!} per @if ($value['service_type_id'] == 3) KG @else {!! tenantUnitLabel($value['service_type_id'], $preferences) !!} @endif @endif | {!! tenantFormatMoney((float) $value['bill_rate'], $preferences) !!} |
| WMA Charge | {!! $value['wma_rate'] ? tenantFormatMoney((float) $value['wma_rate'], $preferences) : '-' !!} | |
| Load Charge | {!! $value['load_rate'] ? tenantFormatMoney((float) $value['load_rate'], $preferences) : '-' !!} | |
| Meter Rental | {!! tenantFormatMoney((float) $value['service_config_details']['meter_rental'], $preferences) !!} | |
| Service Charge | {!! tenantFormatMoney((float) $value['service_config_details']['service_charge'], $preferences) !!} | |
| Bowser Allocation | @php $tankerTotal = (float) ($value['total_bowser_allocated'] ?? 0); $lotPct = $tankerTotal > 0 ? number_format((float) $value['bowser_amount'] / $tankerTotal * 100, 2) : '0.00'; @endphp {{ $lotPct }}% of {!! tenantFormatMoney($tankerTotal, $preferences) !!} total tanker cost | {!! tenantFormatMoney((float) $value['bowser_amount'], $preferences) !!} |
| Total | {!! tenantFormatMoney($totalDue, $preferences) !!} |
Tariff Details |
| {{ $value['rate_details']['details'] }} |
Notes |
| {!! nl2br(e($value['service_config_details']['custom_message'])) !!} |