<commit_before>@extends('backend/layouts/default')

{{-- Page title --}}
@section('title')

 {{{ $category->name }}}
 @lang('general.category') ::
@parent
@stop

{{-- Page content --}}
@section('content')


<div class="row header">
    <div class="col-md-12">
        <div class="btn-group pull-right">
           <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">@lang('button.actions')
                <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
                    <li><a href="{{ route('update/model', $category->id) }}">@lang('admin/categories/general.edit')</a></li>
                    <li><a href="{{ route('clone/model', $category->id) }}">@lang('admin/categories/general.clone')</a></li>
                    <li><a href="{{ route('create/hardware', $category->id) }}">@lang('admin/hardware/form.create')</a></li>
            </ul>
        </div>
        <h3>
            {{{ $category->name }}}
 @lang('general.category')

        </h3>
    </div>
</div>

<div class="user-profile">
<div class="row profile">
<div class="col-md-12 bio">

                            <!-- checked out categories table -->
							@if (count($category->assets) > 0)
                              {{ Datatable::table()
                                ->addColumn(Lang::get('general.name'),
                                            Lang::get('general.asset_tag'),
                                            Lang::get('general.user'), 
                                            Lang::get('table.actions'))
                                ->setOptions(
                                        array(
                                            'sAjaxSource'=>route('api.categories.view', $category->id),
                                            'dom' =>'T<"clear">lfrtip',
                                            'columnDefs'=> array(
                                                array('bSortable'=>false,'targets'=>array(3)),
                                                array('width'=>'auto','targets'=>array(3)),
                                                ),
                                            'order'=>array(array(0,'asc')),
                                        )
                                    )
                                ->render() }}
                            @elseif (count($category->tools) > 0)
                              {{ Datatable::table()
                                ->addColumn(Lang::get('general.name'),
                                            Lang::get('general.total'),
                                            Lang::get('general.remaining'), 
                                            Lang::get('table.actions'))
                                ->setOptions(
                                        array(
                                            'sAjaxSource'=>route('api.categories.view', $category->id),
                                            'dom' =>'T<"clear">lfrtip',
                                            'columnDefs'=> array(
                                                array('bSortable'=>false,'targets'=>array(3)),
                                                array('width'=>'auto','targets'=>array(3)),
                                                ),
                                            'order'=>array(array(0,'asc')),
                                        )
                                    )
                                ->render() }}
							@elseif (count($category->consumables) > 0)
                              {{ Datatable::table()
                                ->addColumn(Lang::get('general.name'),
                                            Lang::get('general.total'),
                                            Lang::get('general.remaining'), 
                                            Lang::get('table.actions'))
                                ->setOptions(
                                        array(
                                            'sAjaxSource'=>route('api.categories.view', $category->id),
                                            'dom' =>'T<"clear">lfrtip',
                                            'columnDefs'=> array(
                                                array('bSortable'=>false,'targets'=>array(3)),
                                                array('width'=>'auto','targets'=>array(3)),
                                                ),
                                            'order'=>array(array(0,'asc')),
                                        )
                                    )
                                ->render() }}
                            @else<commit_msg>fixed localizations for tool/consumable data tables<commit_after>@extends('backend/layouts/default')

{{-- Page title --}}
@section('title')

 {{{ $category->name }}}
 @lang('general.category') ::
@parent
@stop

{{-- Page content --}}
@section('content')


<div class="row header">
    <div class="col-md-12">
        <div class="btn-group pull-right">
           <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">@lang('button.actions')
                <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
                    <li><a href="{{ route('update/model', $category->id) }}">@lang('admin/categories/general.edit')</a></li>
                    <li><a href="{{ route('clone/model', $category->id) }}">@lang('admin/categories/general.clone')</a></li>
                    <li><a href="{{ route('create/hardware', $category->id) }}">@lang('admin/hardware/form.create')</a></li>
            </ul>
        </div>
        <h3>
            {{{ $category->name }}}
 @lang('general.category')

        </h3>
    </div>
</div>

<div class="user-profile">
<div class="row profile">
<div class="col-md-12 bio">

                            <!-- checked out categories table -->
							@if (count($category->assets) > 0)
                              {{ Datatable::table()
                                ->addColumn(Lang::get('general.name'),
                                            Lang::get('general.asset_tag'),
                                            Lang::get('general.user'), 
                                            Lang::get('table.actions'))
                                ->setOptions(
                                        array(
                                            'sAjaxSource'=>route('api.categories.view', $category->id),
                                            'dom' =>'T<"clear">lfrtip',
                                            'columnDefs'=> array(
                                                array('bSortable'=>false,'targets'=>array(3)),
                                                array('width'=>'auto','targets'=>array(3)),
                                                ),
                                            'order'=>array(array(0,'asc')),
                                        )
                                    )
                                ->render() }}
                            @elseif (count($category->tools) > 0)
                              {{ Datatable::table()
                                ->addColumn(Lang::get('general.name'),
                                            Lang::get('admin/tools/general.total'),
                                            Lang::get('admin/tools/general.remaining'), 
                                            Lang::get('table.actions'))
                                ->setOptions(
                                        array(
                                            'sAjaxSource'=>route('api.categories.view', $category->id),
                                            'dom' =>'T<"clear">lfrtip',
                                            'columnDefs'=> array(
                                                array('bSortable'=>false,'targets'=>array(3)),
                                                array('width'=>'auto','targets'=>array(3)),
                                                ),
                                            'order'=>array(array(0,'asc')),
                                        )
                                    )
                                ->render() }}
							@elseif (count($category->consumables) > 0)
                              {{ Datatable::table()
                                ->addColumn(Lang::get('general.name'),
                                            Lang::get('admin/consumables/general.total'),
                                            Lang::get('admin/consumables/general.remaining'), 
                                            Lang::get('table.actions'))
                                ->setOptions(
                                        array(
                                            'sAjaxSource'=>route('api.categories.view', $category->id),
                                            'dom' =>'T<"clear">lfrtip',
                                            'columnDefs'=> array(
                                                array('bSortable'=>false,'targets'=>array(3)),
                                                array('width'=>'auto','targets'=>array(3)),
                                                ),
                                            'order'=>array(array(0,'asc')),
                                        )
                                    )
                                ->render() }}
                            @else
{'fraction_non_alphanumeric': 0.14272290666109835, 'fraction_numerical': 0.003758613489246189, 'mean_word_length': 0.8277046365197481, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 163, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 144, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6602849', 'n_tokens_mistral': 1904, 'n_tokens_neox': 1821, 'n_words': 254}