@php $addExpenseCategoryPermission = user()->permission('manage_expense_category'); @endphp @php $billingCycle = $expense->unlimited_recurring == 1 ? -1 : $expense->billing_cycle; @endphp

@lang('app.expense') @lang('app.details')

@foreach ($currencies as $currency) @endforeach
@if (user()->permission('add_expenses') == 'all') @if(count($expense->recurrings) > 0) @endif
@else @endif
@foreach ($projects as $project) @endforeach
@if($linkExpensePermission == 'all')
@if($viewBankAccountPermission != 'none') @foreach ($bankDetails as $bankDetail) @endforeach @endif
@endif
@if ($addExpenseCategoryPermission == 'all' || $addExpenseCategoryPermission == 'added') @endif

recurrings) > 0) readonly @endif>
@lang('modules.recurringInvoice.invoiceDate')
@php switch ($expense->rotation) { case 'daily': $rotationType = __('app.daily'); break; case 'weekly': $rotationType = __('modules.recurringInvoice.week'); break; case 'bi-weekly': $rotationType = __('app.bi-week'); break; case 'monthly': $rotationType = __('app.month'); break; case 'quarterly': $rotationType = __('app.quarter'); break; case 'half-yearly': $rotationType = __('app.half-year'); break; case 'annually': $rotationType = __('app.year'); break; default: // } @endphp

@lang('modules.expensesRecurring.expenseGenerated') @if($expense->rotation != 'daily') @lang('app.every') @endif {{$rotationType}}

@if (count($expense->recurrings) == 0)

@lang('modules.expensesRecurring.currentExpenseDate') {{$expense->issue_date->translatedFormat(company()->date_format)}}

@endif

@if (count($expense->recurrings) == 0)

@lang('modules.recurringInvoice.soOn')

@endif

@lang('modules.recurringInvoice.billingCycle') {{$billingCycle}}

@lang('app.save') @lang('app.cancel')