@extends('layout.v3.session') @section('content')
{{-- row with recurrence information --}}
{{-- mandatory recurrence stuff --}}

{{ __('firefly.mandatory_for_recurring') }}

{!! ExpandedForm::text('title') !!} {!! ExpandedForm::date('first_date',$preFilled['first_date'], ['helpText' => trans('firefly.help_first_date'), 'min' => $preFilled['first_date']]) !!} {!! ExpandedForm::select('repetition_type', [], null, ['helpText' => trans('firefly.change_date_other_options')]) !!} {!! ExpandedForm::integer('skip',0, ['helpText' => trans('firefly.skip_help_text')]) !!} {!! ExpandedForm::select('weekend', $weekendResponses, null, ['helpText' => trans('firefly.help_weekend')]) !!} {!! ExpandedForm::select('repetition_end', $repetitionEnds) !!} {!! ExpandedForm::date('repeat_until',null) !!} {!! ExpandedForm::integer('repetitions',null) !!} {{-- calendar in popup --}}
{{-- optional recurrence stuff --}}

{{ __('firefly.optional_for_recurring') }}

{!! ExpandedForm::textarea('recurring_description') !!} {{-- only correct way to do active checkbox --}} {!! ExpandedForm::checkbox('active', 1) !!} {!! ExpandedForm::checkbox('apply_rules',1) !!} {!! ExpandedForm::file('attachments[]', ['multiple' => 'multiple','helpText' => trans('firefly.upload_max_file_size', ['size' => print_nice_filesize($uploadSize)])]) !!}
{{-- mandatory transaction information --}}

{{ __('firefly.mandatory_for_transaction') }}

{{ __('firefly.mandatory_fields_for_tranaction') }}

{{-- three buttons to distinguish type of transaction --}} {{-- end of three buttons --}} {!! ExpandedForm::text('transaction_description') !!} {{-- transaction information (mandatory) --}} {!! CurrencyForm::currencyList('transaction_currency_id', $primaryCurrency->id) !!} {!! ExpandedForm::amountNoCurrency('amount') !!} {{-- source account if withdrawal, or if transfer: --}} {!! AccountForm::longAccountList('source_id', null, ['label' => trans('form.asset_source_account')]) !!} {{-- for deposits, a drop down with revenue accounts, loan debt cash and mortgage --}} {!! AccountForm::activeDepositDestinations('deposit_source_id', null, ['label' => trans('form.deposit_source_id')]) !!} {{-- destination if deposit or transfer: --}} {{ AccountForm::longAccountList('destination_id', null, ['label' => trans('form.asset_destination_account')]) }} {{-- destination account name for withdrawals --}} {{-- {!! ExpandedForm::text('destination_name', null, {label: trans('form.expense_account')}) }} --}} {{-- NEW for withdrawals, also a drop down with expense accounts, loans, debts, mortgages or (cash). --}} {{ AccountForm::activeWithdrawalDestinations('withdrawal_destination_id', null, ['label' => trans('form.withdrawal_destination_id')]) }}
{{-- optional transaction information --}}

{{ __('firefly.optional_for_transaction') }}

{{-- transaction information (optional) --}} {!! CurrencyForm::currencyListEmpty('foreign_currency_id') !!} {!! ExpandedForm::amountNoCurrency('foreign_amount') !!} {{-- BUDGET ONLY WHEN CREATING A WITHDRAWAL --}} @if(count($budgets) > 1) {!! ExpandedForm::select('budget_id', $budgets, null) !!} @else {!! ExpandedForm::select('budget_id', $budgets, null, ['helpText' => trans('firefly.no_budget_pointer', ['link' => route('budgets.index')])]) !!} @endif {{-- CATEGORY ALWAYS --}} {!! ExpandedForm::text('category') !!} {{-- BILL / SUBSCRIPTION ONLY FOR WITHDRAWALS --}} @if(count($bills) > 1) {!! ExpandedForm::select('bill_id', $bills, null) !!} @else {!! ExpandedForm::select('bill_id', $bills, null, ['helpText' => trans('firefly.no_bill_pointer', ['link' => route('subscriptions.index')])]) !!} @endif {{-- TAGS --}} {!! ExpandedForm::text('tags') !!} {{-- RELATE THIS TRANSFER TO A PIGGY BANK --}} {!! PiggyBankForm::piggyBankList('piggy_bank_id') !!}
{{-- row with submit stuff. --}}

{{ __('firefly.options') }}

{!! ExpandedForm::optionsList('create','recurrence') !!}
{{--

{{ __('firefly.expected_repetitions') }}

Here.
--}}
{{-- calendar modal --}} @endsection @section('scripts') @vite(['js/pages/generic.js']) @endsection @section('styles') @endsection