@inject('formService', 'App\Services\FormService') {{ csrf_field() }}

{{ trans('crud.panels.general_information') }}

{!! Form::text('name', $formService->prefill('name', $source), ['placeholder' => trans('calendars.placeholders.name'), 'class' => 'form-control', 'maxlength' => 191]) !!}
@include('cruds.fields.type', ['base' => \App\Models\Calendar::class, 'trans' => 'calendars'])
{!! Form::text('suffix', $formService->prefill('suffix', $source), ['placeholder' => trans('calendars.placeholders.suffix'), 'class' => 'form-control', 'maxlength' => 191]) !!}
@include('cruds.fields.tags') @include('cruds.fields.attribute_template') @if (Auth::user()->isAdmin())
@include('cruds.fields.private') @endif

{{ trans('crud.panels.appearance') }}

@include('cruds.fields.image')

{{ trans('calendars.fields.date') }}

{!! Form::number('current_year', !empty($model) ? $model->currentDate('year') : null, ['class' => 'form-control']) !!}
{!! Form::number('current_month', !empty($model) ? $model->currentDate('month') : null, ['class' => 'form-control']) !!}
{!! Form::number('current_day', !empty($model) ? $model->currentDate('date') : null, ['class' => 'form-control']) !!}

{{ trans('calendars.fields.months') }}

{{ __('calendars.hints.months') }}

{{ trans('calendars.parameters.month.name') }}
{{ trans('calendars.parameters.month.length') }}
{{ trans('calendars.parameters.month.type') }}