<commit_before>@if($post)
    {!! BootForm::open()->action('/admin/posts/' . $post->id)->put() !!}
    {!! BootForm::bind($post) !!}
@else
    {!! BootForm::open()->action('/admin/posts') !!}
@endif
<div class="box-body">

    {!! BootForm::checkbox('Published', 'is_active')->defaultToChecked() !!}

    <div class="nav-tabs-custom">
        <ul class="nav nav-tabs locales" role="tablist">
            @foreach(config('translatable.locales') as $language)
                <li><a href="#{{ $language }}" class="toggle_locale">{{ trans('berrier::locales.' . $language) }}</a></li>
            @endforeach
        </ul>
    </div>

    {!! TranslatableBootForm::text('Slug', 'slug')->addClass('slugit') !!}
    {!! TranslatableBootForm::text('Title', 'title')->addClass('sluggable') !!}
    {!! TranslatableBootForm::textarea('Content', 'content')->addClass('wysiwyg') !!}
    {!! TranslatableBootForm::textarea('Meta description', 'meta_desc') !!}

    {!! BootForm::select('Categories', 'categories[]', $categories)->select($post->categories->pluck('id')->toArray())->attribute('multiple', 'multiple')->addClass('select2') !!}

    <div class="row">
        <div class="col-xs-12">
            <h3 class="text-info">Media management <small>add images and reorder them by drag 'n drop (first image will be the featured image)</small></h3>
            <div id="mediazone" class="dropzone">
                <input type="file" name="file" style="display: none;">
            </div>
        </div>
    </div>

</div><commit_msg>no message<commit_after>@if($post)
    {!! BootForm::open()->action('/admin/posts/' . $post->id)->put() !!}
    {!! BootForm::bind($post) !!}
@else
    {!! BootForm::open()->action('/admin/posts') !!}
@endif
<div class="box-body">

    {!! BootForm::checkbox('Published', 'is_active')->defaultToChecked() !!}

    <div class="nav-tabs-custom">
        <ul class="nav nav-tabs locales" role="tablist">
            @foreach(config('translatable.locales') as $language)
                <li><a href="#{{ $language }}" class="toggle_locale">{{ trans('berrier::locales.' . $language) }}</a></li>
            @endforeach
        </ul>
    </div>

    {!! TranslatableBootForm::text('Slug', 'slug')->addClass('slugit') !!}
    {!! TranslatableBootForm::text('Title', 'title')->addClass('sluggable') !!}
    {!! TranslatableBootForm::textarea('Content', 'content')->addClass('wysiwyg') !!}
    {!! TranslatableBootForm::textarea('Meta description', 'meta_desc') !!}

    @if($post)
        {!! BootForm::select('Categories', 'categories[]', $categories)->select($post->categories()->pluck('id')->toArray())->attribute('multiple', 'multiple')->addClass('select2') !!}
    @else
        {!! BootForm::select('Categories', 'categories[]', $categories)->attribute('multiple', 'multiple')->addClass('select2') !!}
    @endif

    <div class="row">
        <div class="col-xs-12">
            <h3 class="text-info">Media management <small>add images and reorder them by drag 'n drop (first image will be the featured image)</small></h3>
            <div id="mediazone" class="dropzone">
                <input type="file" name="file" style="display: none;">
            </div>
        </div>
    </div>

</div>
{'fraction_non_alphanumeric': 0.22926374650512582, 'fraction_numerical': 0.003417210313762038, 'mean_word_length': 3.7422680412371134, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 75, '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': '4321380', 'n_tokens_mistral': 1001, 'n_tokens_neox': 981, 'n_words': 165}