<commit_before>@if($category)

<?php $relation = $model ? getModelSlug($model) . 's' : '';?>

@foreach($category->ancestorsAndSelf()->extrasWithValues($model)->get() as $ancestorCategory)

    @foreach($ancestorCategory->extras as $extra)

        {{-- Extra Column --}}
        <div class="form-group">
            <label class="control-label"> {{ $extra->name_uc_first }} </label>

            {{-- Input Element --}}
            @if($extra->type === 'date')
                <div class="input-group date date-picker" data-date-format="dd.mm.yyyy">
                    {!! Form::text( "extras[{$extra->id}][value]", $model && ! is_null($extra->$relation->first()) ? $extra->$relation->first()->pivot->value : null, [
                        'class'         => 'form-control form-filter',
                        'placeholder'   => $extra->name_uc_first,
                        'readonly'      => true
                    ]) !!}
                    <span class="input-group-btn">
                        <button class="btn green btn-outline" type="button">
                            <i class="fa fa-calendar"></i>
                        </button>
                    </span>
                </div>
            @else
                {!! Form::text( "extras[{$extra->id}][value]", $model && ! is_null($extra->$relation->first()) ? $extra->$relation->first()->pivot->value : null, [
                    'class'         => 'form-control form-control-solid placeholder-no-fix',
                    'placeholder'   => $extra->name_uc_first
                ]) !!}
            @endif
            {{-- /Input Element --}}

        </div>
        {{-- /Extra Column --}}

    @endforeach
<commit_msg>extra<commit_after>@if($category)

<?php $relation = $model ? getModelSlug($model) . 's' : '';?>

@foreach($category->ancestorsAndSelf()->extrasWithValues($model)->get() as $ancestorCategory)

    @foreach($ancestorCategory->extras as $extra)

        {{-- Extra Column --}}
        <div class="form-group">
            <label class="control-label"> {{ $extra->name_uc_first }} </label>

            {{-- Input Element --}}
            @if($extra->type === 'date')
                <div class="input-group date date-picker" data-date-format="dd.mm.yyyy">
                    {!! Form::text( "extras[{$extra->id}][value]", $model && ! is_null($extra->$relation->first()) ? $extra->$relation->first()->pivot->value : null, [
                        'class'         => 'form-control form-filter',
                        'placeholder'   => $extra->name_uc_first,
                        'readonly'      => true
                    ]) !!}
                    <span class="input-group-btn">
                        <button class="btn green btn-outline" type="button">
                            <i class="fa fa-calendar"></i>
                        </button>
                    </span>
                </div>
                <span class="help-block">Tarih alanı zorunludur.</span>
            @else
                {!! Form::text( "extras[{$extra->id}][value]", $model && ! is_null($extra->$relation->first()) ? $extra->$relation->first()->pivot->value : null, [
                    'class'         => 'form-control form-control-solid placeholder-no-fix',
                    'placeholder'   => $extra->name_uc_first
                ]) !!}
            @endif
            {{-- /Input Element --}}

        </div>
        {{-- /Extra Column --}}

    @endforeach

{'fraction_non_alphanumeric': 0.186558516801854, 'fraction_numerical': 0.0, 'mean_word_length': 1.5923423423423424, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 85, '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': '7318029', 'n_tokens_mistral': 975, 'n_tokens_neox': 935, 'n_words': 154}