<commit_before>@extends('backend.layouts.main')
@section('content')
<div class="ibox ibox-table">
    <div class="ibox-title">
        <h5>{{ trans('setting::common.group') }}</h5>
        <div class="ibox-tools">
            <a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
        </div>
    </div>
    <div class="ibox-content">
        <table class="table table-striped table-hover table-list">
            <tbody>
                @foreach ($sections as $section)
                <tr>
                    <td class="min-width">
                        <a href="{{ route('backend.setting.section', ['section' => $section]) }}" class="btn btn-info">{{trans("setting::{$section}.{$section}")}}</a>
                    </td>
                    <td>{{ trans("setting::{$section}.description") }}</td>
                </tr>
                @endforeach
                <tr>
                    <td class="min-width">
                        <a id="btn-restore-default" href="{{ route('backend.setting.default') }}" class="btn btn-danger" data-title="{{trans('setting::common.restore_default')}}" data-label="{{ trans('common.ok') }}" data-icon="wrench">{{trans('setting::common.default')}}</a>
                    </td>
                    <td>
                        {{ trans('setting::common.restore_default_description') }}
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
@stop

@section('script')
    <script type="text/javascript">
        $('#btn-restore-default').click(function(e){
            var url = $(this).attr('href');
            e.preventDefault();
            bootbox.confirm({
                title: '<i class="fa fa-reply-all"></i> {{trans("setting.restore_default")}}',
                message: '<h3 class="text-danger text-center">{{trans("setting.restore_default_confirm")}}</h3>',
                buttons: {
                    cancel: {
                        label: '{{trans('common.cancel')}}'
                    },
                    confirm: {
                        label: '{{trans('common.ok')}}'
                    }
                },
                'callback': function (ok) {
                    if(ok){
                        $.post(url, {_token: window.csrf_token}, function (message) {
                            $.fn.mbHelpers.showMessage(
                                message.type,
                                message.content,
                                {
                                    delay: 1500,
                                    before_close: function (PNotify, timer_hide) {
                                        document.location.reload(true);
                                    }
                                }
                            );
                        }, "json");
                    }
                }
            });
            return false;
        });
    </script>
@stop<commit_msg>Fix translate<commit_after>@extends('backend.layouts.main')
@section('content')
<div class="ibox ibox-table">
    <div class="ibox-title">
        <h5>{{ trans('setting::common.group') }}</h5>
        <div class="ibox-tools">
            <a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
        </div>
    </div>
    <div class="ibox-content">
        <table class="table table-striped table-hover table-list">
            <tbody>
                @foreach ($sections as $section)
                <tr>
                    <td class="min-width">
                        <a href="{{ route('backend.setting.section', ['section' => $section]) }}" class="btn btn-info">{{trans("setting::{$section}.{$section}")}}</a>
                    </td>
                    <td>{{ trans("setting::{$section}.description") }}</td>
                </tr>
                @endforeach
                <tr>
                    <td class="min-width">
                        <a id="btn-restore-default" href="{{ route('backend.setting.default') }}" class="btn btn-danger" data-title="{{trans('setting::common.restore_default')}}" data-label="{{ trans('common.ok') }}" data-icon="wrench">{{trans('setting::common.default')}}</a>
                    </td>
                    <td>
                        {{ trans('setting::common.restore_default_description') }}
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
@stop

@section('script')
    <script type="text/javascript">
        $('#btn-restore-default').click(function(e){
            var url = $(this).attr('href');
            e.preventDefault();
            bootbox.confirm({
                title: '<i class="fa fa-reply-all"></i> {{trans("setting::common.restore_default")}}',
                message: '<h3 class="text-danger text-center">{{trans("setting::common.restore_default_confirm")}}</h3>',
                buttons: {
                    cancel: {
                        label: '{{trans('common.cancel')}}'
                    },
                    confirm: {
                        label: '{{trans('common.ok')}}'
                    }
                },
                'callback': function (ok) {
                    if(ok){
                        $.post(url, {_token: window.csrf_token}, function (message) {
                            $.fn.mbHelpers.showMessage(
                                message.type,
                                message.content,
                                {
                                    delay: 1500,
                                    before_close: function (PNotify, timer_hide) {
                                        document.location.reload(true);
                                    }
                                }
                            );
                        }, "json");
                    }
                }
            });
            return false;
        });
    </script>
@stop
{'fraction_non_alphanumeric': 0.16182432432432434, 'fraction_numerical': 0.002702702702702703, 'mean_word_length': 1.1962166172106825, 'pattern_counts': {'":': 0, '<': 83, '<?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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6678516', 'n_tokens_mistral': 1532, 'n_tokens_neox': 1437, 'n_words': 236}