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

@yield('title')


@if($mode == 'edit') @endif
{{ $__t('A name is required') }}
@php if($mode == 'edit' && !empty($mealplanSection->sort_number)) { $value = $mealplanSection->sort_number; } else { $value = ''; } @endphp @include('components.numberpicker', array( 'id' => 'sort_number', 'label' => 'Sort number', 'min' => 0, 'value' => $value, 'isRequired' => false, 'hint' => $__t('Sections will be ordered by that number on the meal plan') ))
@stop