<commit_before>@extends('backend.layouts.main')
@section('content')
<div id="image-manage-tools" class="hidden">
    <div class="dataTables_toolbar">
        {!! Html::linkButton('#', trans('common.search'), ['class'=>'advanced_search_collapse','type'=>'info', 'size'=>'xs', 'icon' => 'search']) !!}
        {!! Html::linkButton('#', trans('common.all'), ['class'=>'filter-clear', 'type'=>'warning', 'size'=>'xs', 'icon' => 'list']) !!}
        {!! Html::linkButton(route('backend.image.upload'), trans('image::common.add_new'), ['type'=>'success', 'size'=>'xs', 'icon' => 'plus-sign']) !!}
    </div>
    <div class="bg-warning dataTables_advanced_search">
        <form class="form-horizontal" role="form">
            {!! Form::hidden('search_form', 1) !!}
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        {!! Form::label('search_created_at', trans('common.created_at'), ['class' => 'col-md-3 control-label']) !!}
                        <div class="col-md-9">
                            {!! Form::daterange('search_created_at', [], ['class' => 'form-control']) !!}
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        {!! Form::label('search_updated_at', trans('common.updated_at'), ['class' => 'col-md-3 control-label']) !!}
                        <div class="col-md-9">
                            {!! Form::daterange('search_updated_at', [], ['class' => 'form-control']) !!}
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="ibox ibox-table">
    <div class="ibox-title">
        <h5>{!! trans('image::common.library_title') !!}</h5>
        <div class="ibox-tools"><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></div>
    </div>
    <div class="ibox-content">
    {!! $table->render('_datatable') !!}
    </div>
</div>
@stop

@section('script')
<script type="text/javascript">
    var all_tags = '{{$allTags}}';
    function datatableDrawCallback(oTable) {
        oTable.find('a.quick-update').quickUpdate({
            url: '{{ route('backend.image.quick_update', ['image' => '__ID__']) }}',
            container: '#image-manage',
            dataTable: oTable,
            afterShow: function(element, form){
                if($(element).hasClass('a-tags')){
                    $('input._value', form).selectize_tags({options: all_tags});
                }
            },
            processResult: function(result){
                all_tags = result;
            }
        });
    };
</script>
    @include(
        '_datatable_script',
        [
            'name' => trans('image::common.image'),
            'delete_confirm' => trans('image::common.delete_confirm'),
            'data_url' => route('backend.image.data'),
            'drawCallback' => 'window.datatableDrawCallback'
        ]
    )
@stop<commit_msg>fix lỗi process result<commit_after>@extends('backend.layouts.main')
@section('content')
<div id="image-manage-tools" class="hidden">
    <div class="dataTables_toolbar">
        {!! Html::linkButton('#', trans('common.search'), ['class'=>'advanced_search_collapse','type'=>'info', 'size'=>'xs', 'icon' => 'search']) !!}
        {!! Html::linkButton('#', trans('common.all'), ['class'=>'filter-clear', 'type'=>'warning', 'size'=>'xs', 'icon' => 'list']) !!}
        {!! Html::linkButton(route('backend.image.upload'), trans('image::common.add_new'), ['type'=>'success', 'size'=>'xs', 'icon' => 'plus-sign']) !!}
    </div>
    <div class="bg-warning dataTables_advanced_search">
        <form class="form-horizontal" role="form">
            {!! Form::hidden('search_form', 1) !!}
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        {!! Form::label('search_created_at', trans('common.created_at'), ['class' => 'col-md-3 control-label']) !!}
                        <div class="col-md-9">
                            {!! Form::daterange('search_created_at', [], ['class' => 'form-control']) !!}
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        {!! Form::label('search_updated_at', trans('common.updated_at'), ['class' => 'col-md-3 control-label']) !!}
                        <div class="col-md-9">
                            {!! Form::daterange('search_updated_at', [], ['class' => 'form-control']) !!}
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="ibox ibox-table">
    <div class="ibox-title">
        <h5>{!! trans('image::common.library_title') !!}</h5>
        <div class="ibox-tools"><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></div>
    </div>
    <div class="ibox-content">
    {!! $table->render('_datatable') !!}
    </div>
</div>
@stop

@section('script')
<script type="text/javascript">
    var all_tags = '{{$allTags}}';
    function datatableDrawCallback(oTable) {
        oTable.find('a.quick-update').quickUpdate({
            url: '{{ route('backend.image.quick_update', ['image' => '__ID__']) }}',
            container: '#image-manage',
            dataTable: oTable,
            afterShow: function(element, form){
                if($(element).hasClass('a-tags')){
                    $('input._value', form).selectize_tags({options: all_tags});
                }
            },
            processResult: function(element, result){
                all_tags = result;
            }
        });
    };
</script>
    @include(
        '_datatable_script',
        [
            'name' => trans('image::common.image'),
            'delete_confirm' => trans('image::common.delete_confirm'),
            'data_url' => route('backend.image.data'),
            'drawCallback' => 'window.datatableDrawCallback'
        ]
    )
@stop
{'fraction_non_alphanumeric': 0.209185329438494, 'fraction_numerical': 0.0029211295034079843, 'mean_word_length': 2.104785894206549, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 121, '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': '6162682', 'n_tokens_mistral': 1836, 'n_tokens_neox': 1812, 'n_words': 273}