{!! Form::open(['url' => action([\Modules\AccountingReports\Http\Controllers\InvestmentController::class, 'update'], [$investment->id]), 'method' => 'put', 'id' => 'investment_form']) !!}

@lang('accounting-reports::lang.edit_investment')

{!! Form::label('name', __('accounting-reports::lang.investment_name') . ':*') !!} {!! Form::text('name', $investment->name, ['class' => 'form-control', 'required', 'placeholder' => __('accounting-reports::lang.investment_name')]) !!}
{!! Form::label('description', __('accounting-reports::lang.description') . ':') !!} {!! Form::textarea('description', $investment->description, ['class' => 'form-control', 'rows' => '3', 'placeholder' => __('accounting-reports::lang.description')]) !!}
{!! Form::label('investment_date', __('accounting-reports::lang.investment_date') . ':') !!}
{!! Form::text('investment_date', !empty($investment->investment_date) ? @format_date($investment->investment_date) : null, ['class' => 'form-control date-picker', 'readonly', 'placeholder' => __('accounting-reports::lang.investment_date')]) !!}
{!! Form::label('investment_type', __('accounting-reports::lang.investment_type') . ':') !!} {!! Form::select('investment_type', [ '' => __('messages.please_select'), 'stocks' => __('accounting-reports::lang.stocks'), 'bonds' => __('accounting-reports::lang.bonds'), 'mutual_funds' => __('accounting-reports::lang.mutual_funds'), 'commodities' => __('accounting-reports::lang.commodities'), 'real_estate' => __('accounting-reports::lang.real_estate'), 'other' => __('accounting-reports::lang.other') ], $investment->investment_type, ['class' => 'form-control select2', 'style' => 'width:100%']) !!}
{!! Form::label('amount', __('accounting-reports::lang.amount') . ':') !!}
{!! Form::text('amount', $investment->amount, ['class' => 'form-control input_number', 'placeholder' => __('accounting-reports::lang.amount')]) !!}
{!! Form::label('current_value', __('accounting-reports::lang.current_value') . ':') !!}
{!! Form::text('current_value', $investment->current_value, ['class' => 'form-control input_number', 'placeholder' => __('accounting-reports::lang.current_value')]) !!}
@lang('accounting-reports::lang.current_value_help')
{!! Form::close() !!}