<commit_before>@extends('layouts.default')
@section('content')
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $account) !!}
{!! Form::model($account, ['class' => 'form-horizontal','id' => 'update','url' => route('accounts.update',$account->id)]) !!}
<div class="row">
    <div class="col-lg-6 col-md-6 col-sm-12">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <i class="fa {{{$subTitleIcon}}}"></i> Mandatory fields
            </div>
            <div class="panel-body">
                {!! ExpandedForm::text('name') !!}
            </div>
        </div>
        <p>
            <button type="submit" class="btn btn-lg btn-success">
                Update account
            </button>
        </p>
    </div>
    <div class="col-lg-6 col-md-6 col-sm-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                <i class="fa fa-smile-o"></i> Optional fields
            </div>
            <div class="panel-body">
                @if($account->accounttype->type == 'Default account' || $account->accounttype->type == 'Asset account')
                    {!! ExpandedForm::balance('openingBalance',null, ['currency' => $openingBalance ? $openingBalance->transactionCurrency : null]) !!}
                    {!! ExpandedForm::date('openingBalanceDate') !!}
                    {!! ExpandedForm::select('accountRole',Config::get('firefly.accountRoles')) !!}
                    {!! Form::hidden('id',$account->id) !!}
                @endif<commit_msg>New hidden id field.<commit_after>@extends('layouts.default')
@section('content')
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $account) !!}
{!! Form::model($account, ['class' => 'form-horizontal','id' => 'update','url' => route('accounts.update',$account->id)]) !!}

<input type="hidden" name="id" value="{{$account->id}}" />

<div class="row">
    <div class="col-lg-6 col-md-6 col-sm-12">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <i class="fa {{{$subTitleIcon}}}"></i> Mandatory fields
            </div>
            <div class="panel-body">
                {!! ExpandedForm::text('name') !!}
            </div>
        </div>
        <p>
            <button type="submit" class="btn btn-lg btn-success">
                Update account
            </button>
        </p>
    </div>
    <div class="col-lg-6 col-md-6 col-sm-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                <i class="fa fa-smile-o"></i> Optional fields
            </div>
            <div class="panel-body">
                @if($account->accounttype->type == 'Default account' || $account->accounttype->type == 'Asset account')
                    {!! ExpandedForm::balance('openingBalance',null, ['currency' => $openingBalance ? $openingBalance->transactionCurrency : null]) !!}
                    {!! ExpandedForm::date('openingBalanceDate') !!}
                    {!! ExpandedForm::select('accountRole',Config::get('firefly.accountRoles')) !!}
                    {!! Form::hidden('id',$account->id) !!}
                @endif
{'fraction_non_alphanumeric': 0.19800124921923798, 'fraction_numerical': 0.004996876951905059, 'mean_word_length': 2.3226141078838176, 'pattern_counts': {'":': 0, '<': 48, '<?xml version=': 0, '>': 73, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5381728', 'n_tokens_mistral': 940, 'n_tokens_neox': 921, 'n_words': 154}