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

@yield('title')

@if($mode == 'edit') @endif
{{ $__t('A name is required') }}
{{ $__t('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' => $__t('This cannot be negative'), 'hintId' => 'chore-period-type-info', 'additionalGroupCssClasses' => 'period-type-input period-type-dynamic-regular period-type-monthly' ))
@include('components.userfieldsform', array( 'userfields' => $userfields, 'entity' => 'chores' ))
@stop