<commit_before>@component($typeForm,get_defined_vars())
    <table class="table table-bordered border-right-0"
           data-controller="fields--matrix"
           data-fields--matrix-index="{{ count($value) }}"
           data-fields--matrix-rows="{{ $maxRows }}"
    >
        <thead>
        <tr>
            @foreach($columns as $column)
                <th scope="col" class="text-capitalize">
                    {{ $column }}
                </th>
            @endforeach
        </tr>
        </thead>
        <tbody>

        @foreach($value as $key => $row)
            @include('platform::partials.fields.matrixRow',['row' => $row, 'key' => $key])
        @endforeach

        <tr class="add-row">
            <th colspan="{{ count($columns) }}" class="text-center p-0">
                <a href="#" data-action="fields--matrix#addRow" class="btn btn-block text-xs text-muted">
                    <i class="icon-plus-alt"></i>
                    <span>{{ __('Add row') }}</span>
                </a>
            </th>
        </tr>

        <template>
            @include('platform::partials.fields.matrixRow',['row' => [], 'key' => '{index}'])
        </template>
        </tbody>
    </table>
@endcomponent
<commit_msg>refs #910 Added support key title<commit_after>@component($typeForm,get_defined_vars())
    <table class="table table-bordered border-right-0"
           data-controller="fields--matrix"
           data-fields--matrix-index="{{ count($value) }}"
           data-fields--matrix-rows="{{ $maxRows }}"
    >
        <thead>
        <tr>
            @foreach($columns as $key => $column)
                <th scope="col" class="text-capitalize">
                    {{ is_int($key) ? $column : $key }}
                </th>
            @endforeach
        </tr>
        </thead>
        <tbody>

        @foreach($value as $key => $row)
            @include('platform::partials.fields.matrixRow',['row' => $row, 'key' => $key])
        @endforeach

        <tr class="add-row">
            <th colspan="{{ count($columns) }}" class="text-center p-0">
                <a href="#" data-action="fields--matrix#addRow" class="btn btn-block text-xs text-muted">
                    <i class="icon-plus-alt"></i>
                    <span>{{ __('Add row') }}</span>
                </a>
            </th>
        </tr>

        <template>
            @include('platform::partials.fields.matrixRow',['row' => [], 'key' => '{index}'])
        </template>
        </tbody>
    </table>
@endcomponent

{'fraction_non_alphanumeric': 0.18636003172085647, 'fraction_numerical': 0.0027755749405233942, 'mean_word_length': 1.724622030237581, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 58, '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': '4138683', 'n_tokens_mistral': 758, 'n_tokens_neox': 725, 'n_words': 136}