@php $addExpenseCategoryPermission = user()->permission('manage_expense_category'); $approveExpensePermission = user()->permission('approve_expenses'); @endphp
@method('PUT')

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

@foreach ($currencies as $currency) @endforeach
@if (user()->permission('add_expenses') == 'all')
@else @endif
@if ($addExpenseCategoryPermission == 'all' || $addExpenseCategoryPermission == 'added') @endif
@if ( $approveExpensePermission != 'none' && ( $approveExpensePermission == 'all' || ($approveExpensePermission == 'added' && $expense->added_by == user()->id) || ($approveExpensePermission == 'owned' && $expense->user_id == user()->id) || ($approveExpensePermission == 'both' && ($expense->user_id == user()->id || $expense->added_by == user()->id)) ) )
@endif @if($linkExpensePermission == 'all')
@if($viewBankAccountPermission != 'none') @foreach ($bankDetails as $bankDetail) @endforeach @endif
@endif
{!! $expense->description !!}
@if (!is_null($expense->bill)) @endif
@lang('app.save') @lang('app.cancel')