@extends('layout.default') @if($mode == 'edit') @section('title', $__t('Edit battery')) @else @section('title', $__t('Create battery')) @endif @section('content')

@yield('title')


@if($mode == 'edit') @endif
{{ $__t('A name is required') }}
active == 1) checked @endif class="form-check-input custom-control-input" type="checkbox" id="active" name="active" value="1">
@php if($mode == 'edit') { $value = $battery->charge_interval_days; } else { $value = 0; } @endphp @include('components.numberpicker', array( 'id' => 'charge_interval_days', 'label' => 'Charge cycle interval (days)', 'value' => $value, 'min' => '0', 'hint' => $__t('0 means suggestions for the next charge cycle are disabled') )) @include('components.userfieldsform', array( 'userfields' => $userfields, 'entity' => 'batteries' ))
@if($mode == 'edit')
@endif @stop