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

{{-- Page title --}}
@section('title')
{{ trans('admin/models/table.view') }}
{{ $model->model_tag }}
@parent
@stop

@section('header_right')
  @can('superuser')
  <div class="btn-group pull-right">
     <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">{{ trans('button.actions') }}
          <span class="caret"></span>
      </button>
      <ul class="dropdown-menu">
          @if ($model->deleted_at=='')
            <li><a href="{{ route('models.edit', $model->id) }}">{{ trans('admin/models/table.edit') }}</a></li>
            <li><a href="{{ route('clone/model', $model->id) }}">{{ trans('admin/models/table.clone') }}</a></li>
            <li><a href="{{ route('hardware.create', ['model_id' => $model->id]) }}">{{ trans('admin/hardware/form.create') }}</a></li>
          @else
            <li><a href="{{ route('restore/model', $model->id) }}">{{ trans('admin/models/general.restore') }}</a></li>
          @endif
      </ul>
  </div>
  @endcan
@stop

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

<div class="row">
  <div class="col-md-9">
    <div class="box box-default">
      @if ($model->id)
        <div class="box-header with-border">
          <div class="box-heading">
            <h2 class="box-title"> {{ $model->name }}
                {{ ($model->model_number) ? '(#'.$model->model_number.')' : '' }}
            </h2>
          </div>
        </div><!-- /.box-header -->
      @endif
      <div class="box-body">
          <div class="row">
              <div class="col-md-12">
                  {{ Form::open([
                     'method' => 'POST',
                     'route' => ['hardware/bulkedit'],
                     'class' => 'form-inline',
                      'id' => 'bulkForm']) }}
                  <div id="toolbar">
                      <select name="bulk_actions" class="form-control select2">
                          <option value="edit">{{ trans('button.edit') }}</option>
                          <option value="delete">{{ trans('button.delete') }}</option>
                          <option value="labels">{{ trans_choice('button.generate_labels', 2) }}</option>
                      </select>
                      <button class="btn btn-primary" id="bulkEdit" disabled>{{ trans('button.go') }}</button>
                  </div>

                  <table
                  data-columns="{{ \App\Presenters\AssetPresenter::dataTableLayout() }}"
                  data-cookie-id-table="assetListingTable"
                  data-pagination="true"
                  data-id-table="assetListingTable"
                  data-search="true"
                  data-side-pagination="server"
                  data-show-columns="true"
                  data-toolbar="#toolbar"
                  data-show-export="true"
                  data-show-refresh="true"
                  data-sort-order="asc"
                  id="assetListingTable"
                  data-url="{{ route('api.assets.index',['model_id'=> $model->id]) }}"
                  class="table table-striped snipe-table"
                  data-export-options='{
                "fileName": "export-models-{{ str_slug($model->name) }}-assets-{{ date('Y-m-d') }}",
                "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
                }'><commit_msg>Use partial for asset bulk edit<commit_after>@extends('layouts/default')

{{-- Page title --}}
@section('title')
{{ trans('admin/models/table.view') }}
{{ $model->model_tag }}
@parent
@stop

@section('header_right')
  @can('superuser')
  <div class="btn-group pull-right">
     <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">{{ trans('button.actions') }}
          <span class="caret"></span>
      </button>
      <ul class="dropdown-menu">
          @if ($model->deleted_at=='')
            <li><a href="{{ route('models.edit', $model->id) }}">{{ trans('admin/models/table.edit') }}</a></li>
            <li><a href="{{ route('clone/model', $model->id) }}">{{ trans('admin/models/table.clone') }}</a></li>
            <li><a href="{{ route('hardware.create', ['model_id' => $model->id]) }}">{{ trans('admin/hardware/form.create') }}</a></li>
          @else
            <li><a href="{{ route('restore/model', $model->id) }}">{{ trans('admin/models/general.restore') }}</a></li>
          @endif
      </ul>
  </div>
  @endcan
@stop

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

<div class="row">
  <div class="col-md-9">
    <div class="box box-default">
      @if ($model->id)
        <div class="box-header with-border">
          <div class="box-heading">
            <h2 class="box-title"> {{ $model->name }}
                {{ ($model->model_number) ? '(#'.$model->model_number.')' : '' }}
            </h2>
          </div>
        </div><!-- /.box-header -->
      @endif
      <div class="box-body">

          @include('partials.asset-bulk-actions')




                  <table
                  data-columns="{{ \App\Presenters\AssetPresenter::dataTableLayout() }}"
                  data-cookie-id-table="assetListingTable"
                  data-pagination="true"
                  data-id-table="assetListingTable"
                  data-search="true"
                  data-side-pagination="server"
                  data-show-columns="true"
                  data-toolbar="#toolbar"
                  data-show-export="true"
                  data-show-refresh="true"
                  data-sort-order="asc"
                  id="assetListingTable"
                  data-url="{{ route('api.assets.index',['model_id'=> $model->id]) }}"
                  class="table table-striped snipe-table"
                  data-export-options='{
                "fileName": "export-models-{{ str_slug($model->name) }}-assets-{{ date('Y-m-d') }}",
                "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
                }'>
{'fraction_non_alphanumeric': 0.2069081153588196, 'fraction_numerical': 0.001676727028839705, 'mean_word_length': 1.952970297029703, 'pattern_counts': {'":': 4, '<': 89, '<?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': '6597378', 'n_tokens_mistral': 1779, 'n_tokens_neox': 1720, 'n_words': 275}