{!! Form::open(['url' => action([\Modules\Accounting\Http\Controllers\CoaController::class, 'update'], $account->id), 'method' => 'put', 'id' => 'create_client_form' ]) !!}

@lang( 'accounting::lang.edit_account' )

{!! Form::label('account_primary_type', __( 'accounting::lang.account_type' ) . ':*') !!}
{!! Form::label('account_sub_type', __( 'accounting::lang.account_sub_type' ) . ':*') !!}
{!! Form::label('detail_type', __( 'accounting::lang.detail_type' ) . ':*') !!}

{{$account->detail_type->account_type_description ?? ''}}

{!! Form::label('name', __( 'user.name' ) . ':*') !!} {!! Form::text('name', $account->name, ['class' => 'form-control', 'required', 'placeholder' => __( 'user.name' ) ]); !!}
{!! Form::label('gl_code', __( 'accounting::lang.gl_code' ) . ':') !!} {!! Form::text('gl_code', $account->gl_code, ['class' => 'form-control', 'placeholder' => __( 'accounting::lang.gl_code' ) ]); !!}

@lang( 'accounting::lang.gl_code_help' )

{!! Form::label('parent_account', __( 'accounting::lang.parent_account' ) . ':') !!}
{!! Form::label('description', __( 'lang_v1.description' ) . ':') !!} {!! Form::textarea('description', $account->description, ['class' => 'form-control', 'placeholder' => __( 'lang_v1.description' ) ]); !!}
{!! Form::close() !!}