Akaunting/resources/views/components/documents/form/advanced.blade.php

42 lines
2.3 KiB
PHP
Raw Normal View History

2020-12-23 22:28:38 +00:00
<div class="accordion">
2020-12-24 22:21:46 +00:00
<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">
2020-12-23 22:28:38 +00:00
<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">
2021-01-12 10:23:12 +00:00
@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
2021-01-12 10:23:12 +00:00
</div>
@endif
@stack('recurring_row_end')
2020-12-23 22:28:38 +00:00
2021-01-12 10:23:12 +00:00
@stack('more_row_start')
2021-01-22 09:38:17 +00:00
@if (!$hideCategory)
2021-01-12 10:23:12 +00:00
<div class="{{ $more_class }}">
2020-12-23 22:28:38 +00:00
@if (!$hideCategory)
2021-01-12 21:09:29 +00:00
{{ 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) }}
2020-12-23 22:28:38 +00:00
@endif
</div>
2021-01-12 10:23:12 +00:00
@endif
@stack('more_row_end')
2021-01-22 09:38:17 +00:00
@if (!$hideAttachment)
<div class="col-md-12">
{{ Form::fileGroup('attachment', trans('general.attachment'), '', ['dropzone-class' => 'w-100', 'multiple' => 'multiple', 'options' => ['acceptedFiles' => $file_types]], !empty($document) ? $document->attachment : null , 'col-md-12') }}
2021-01-22 09:38:17 +00:00
</div>
@endif
2020-12-23 22:28:38 +00:00
</div>
</div>
</div>
</div>
</div>