@extends('layout.default') @if($mode == 'edit') @section('title', $L('Edit chore')) @else @section('title', $L('Create chore')) @endif @section('viewJsName', 'choreform') @section('content')

@yield('title')

@if($mode == 'edit') @endif
{{ $L('A name is required') }}
{{ $L('A period type is required') }}
@php if($mode == 'edit') { $value = $chore->period_days; } else { $value = 0; } @endphp @include('components.numberpicker', array( 'id' => 'period_days', 'label' => 'Period days', 'value' => $value, 'min' => '0', 'additionalCssClasses' => 'input-group-chore-period-type', 'invalidFeedback' => $L('This cannot be negative'), 'hintId' => 'chore-period-type-info' ))
@stop