@extends('layout.default') @section('title', $L('Batteries overview')) @section('activeNav', 'batteriesoverview') @section('viewJsName', 'batteriesoverview') @push('pageScripts') @endpush @section('content')

@yield('title')

@foreach($current as $curentBatteryEntry) @endforeach
# {{ $L('Battery') }} {{ $L('Last charged') }} {{ $L('Next planned charge cycle') }} Hidden status
{{ FindObjectInArrayByPropertyValue($batteries, 'id', $curentBatteryEntry->battery_id)->name }} {{ $curentBatteryEntry->last_tracked_time }} @if(FindObjectInArrayByPropertyValue($batteries, 'id', $curentBatteryEntry->battery_id)->charge_interval_days > 0) {{ $curentBatteryEntry->next_estimated_charge_time }} @else ... @endif "@if(FindObjectInArrayByPropertyValue($batteries, 'id', $curentBatteryEntry->battery_id)->charge_interval_days > 0 && $curentBatteryEntry->next_estimated_charge_time < date('Y-m-d H:i:s')) overdue @elseif(FindObjectInArrayByPropertyValue($batteries, 'id', $curentBatteryEntry->battery_id)->charge_interval_days > 0 && $curentBatteryEntry->next_estimated_charge_time < date('Y-m-d H:i:s', strtotime("+$nextXDays days"))) duesoon @endif
@stop