@extends('layout.default') @section('title', $__t('Batteries overview')) @section('activeNav', 'batteriesoverview') @section('viewJsName', 'batteriesoverview') @push('pageStyles') @endpush @section('content')
 {{ $__t('Status') }}
@include('components.userfields_thead', array( 'userfields' => $userfields )) @foreach($current as $currentBatteryEntry) @include('components.userfields_tbody', array( 'userfields'=> $userfields, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $currentBatteryEntry->battery_id) )) @endforeach
{{ $__t('Battery') }} {{ $__t('Used in') }} {{ $__t('Last charged') }} {{ $__t('Next planned charge cycle') }} Hidden status
{{ FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->used_in }} {{ $currentBatteryEntry->last_tracked_time }} @if(FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->charge_interval_days > 0) {{ $currentBatteryEntry->next_estimated_charge_time }} @else ... @endif "@if(FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->charge_interval_days > 0 && $currentBatteryEntry->next_estimated_charge_time < date('Y-m-d H:i:s')) overdue @elseif(FindObjectInArrayByPropertyValue($batteries, 'id' , $currentBatteryEntry->battery_id)->charge_interval_days > 0 && $currentBatteryEntry->next_estimated_charge_time < date('Y-m-d H:i:s', strtotime('+' . $nextXDays . ' days' ))) duesoon @endif
@stop