@stack('recurring_row_start') @if (!$hideRecurring)
@if (!empty($document)) {{ Form::recurring('edit', $document, 'col-md-12') }} @else {{ Form::recurring('create', null, 'col-md-12') }} @endif
@endif @stack('recurring_row_end') @stack('more_row_start') @if (!$hideCategory)
@if (!$hideCategory) {{ Form::selectRemoteAddNewGroup('category_id', trans_choice('general.categories', 1), 'folder', $categories, $document->category_id ?? setting('default.' . $categoryType . '_category'), ['required' => 'required', 'path' => route('modals.categories.create') . '?type=' . $categoryType, 'remote_action' => route('categories.index'). '?search=type:' . $categoryType . ' enabled:1'], $more_form_class) }} @endif
@else {{ Form::hidden('category_id', $document->category_id ?? setting('default.' . $categoryType . '_category')) }} @endif @stack('more_row_end') @if (!$hideAttachment)
{{ Form::fileGroup('attachment', trans('general.attachment'), '', ['dropzone-class' => 'w-100', 'multiple' => 'multiple', 'options' => ['acceptedFiles' => $file_types]], !empty($document) ? $document->attachment : null , 'col-md-12') }}
@endif