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

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

{!! Form::label('name', __('accounting-reports::lang.asset_name') . ':*') !!} {!! Form::text('name', $fixed_asset->name, ['class' => 'form-control', 'required', 'placeholder' => __('accounting-reports::lang.asset_name')]) !!}
{!! Form::label('description', __('accounting-reports::lang.description') . ':') !!} {!! Form::textarea('description', $fixed_asset->description, ['class' => 'form-control', 'rows' => '3', 'placeholder' => __('accounting-reports::lang.description')]) !!}
{!! Form::label('purchase_date', __('accounting-reports::lang.purchase_date') . ':') !!}
{!! Form::text('purchase_date', !empty($fixed_asset->purchase_date) ? @format_date($fixed_asset->purchase_date) : @format_date('now'), ['class' => 'form-control date-picker', 'placeholder' => __('accounting-reports::lang.purchase_date'), 'id' => 'purchase_date']) !!}
{!! Form::label('amount', __('accounting-reports::lang.amount') . ':') !!}
{!! Form::text('amount', $fixed_asset->amount, ['class' => 'form-control input_number', 'placeholder' => __('accounting-reports::lang.amount')]) !!}
{!! Form::label('depreciation_percentage', __('accounting-reports::lang.depreciation_percentage') . ':') !!}
{!! Form::text('depreciation_percentage', $fixed_asset->depreciation_percentage, ['class' => 'form-control input_number', 'placeholder' => __('accounting-reports::lang.depreciation_percentage'), 'step' => '0.01', 'min' => '0', 'max' => '100']) !!} %
@lang('accounting-reports::lang.depreciation_percentage_help')
{!! Form::close() !!}