42 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <div class="accordion">
 | |
|     <div class="card border-1 box-shadow-none">
 | |
|         <div class="card-header background-none collapsed" id="accordion-recurring-and-more-header" data-toggle="collapse" data-target="#accordion-recurring-and-more-body" aria-expanded="false" aria-controls="accordion-recurring-and-more-body">
 | |
|             <h4 class="mb-0">{{ trans('general.recurring_and_more') }}</h4>
 | |
|         </div>
 | |
| 
 | |
|         <div id="accordion-recurring-and-more-body" class="collapse hide" aria-labelledby="accordion-recurring-and-more-header">
 | |
|             <div class="card-body">
 | |
|                 <div class="row">
 | |
|                     @stack('recurring_row_start')
 | |
|                     @if (!$hideRecurring)
 | |
|                         <div class="{{ $recurring_class }}">
 | |
|                             @if (!empty($document))
 | |
|                                 {{ Form::recurring('edit', $document, 'col-md-12') }}
 | |
|                             @else
 | |
|                                 {{ Form::recurring('create', null, 'col-md-12') }}
 | |
|                             @endif
 | |
|                         </div>
 | |
|                     @endif
 | |
|                     @stack('recurring_row_end')
 | |
| 
 | |
|                     @stack('more_row_start')
 | |
|                     @if (!$hideCategory)
 | |
|                     <div class="{{ $more_class }}">
 | |
|                         @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], $more_form_class) }}
 | |
|                         @endif
 | |
|                     </div>
 | |
|                     @endif
 | |
|                     @stack('more_row_end')
 | |
| 
 | |
|                     @if (!$hideAttachment)
 | |
|                     <div class="col-md-12">
 | |
|                         {{ Form::fileGroup('attachment', trans('general.attachment'), '', ['dropzone-class' => 'w-100', 'multiple' => 'multiple'], !empty($document) ? $document->attachment : null , 'col-md-12') }}
 | |
|                     </div>
 | |
|                     @endif
 | |
|                 </div>
 | |
|             </div>
 | |
|         </div>
 | |
|     </div>
 | |
| </div>
 |