<commit_before>@can('supplier.modify', $supplier)
    <div class="row">
        <div class="col-md-12">
            @include('commons.addingbutton', [
                'template' => 'product.base-edit',
                'typename' => 'product',
                'target_update' => 'product-list-' . $supplier->id,
                'typename_readable' => _i('Prodotto'),
                'targeturl' => 'products',
                'extra' => [
                    'supplier_id' => $supplier->id
                ]
            ])

            @include('commons.importcsv', [
                'modal_id' => 'importCSV' . $supplier->id,
                'import_target' => 'products',
                'modal_extras' => [
                    'supplier_id' => $supplier->id
                ]
            ])

            <button class="btn btn-default export-custom-list" data-export-url="{{ url('suppliers/catalogue/' . $supplier->id . '/pdf') }}">{{ _i('Listino PDF') }} <span class="glyphicon glyphicon-download" aria-hidden="true"></span></button>
            <button class="btn btn-default export-custom-list" data-export-url="{{ url('suppliers/catalogue/' . $supplier->id . '/csv') }}">{{ _i('Listino CSV') }} <span class="glyphicon glyphicon-download" aria-hidden="true"></span></button>
        </div>
    </div>

    <div class="clearfix"></div>

    <div class="middle-tabs">
        <hr/>
        <ul class="nav nav-pills" role="tablist">
            <li role="presentation" class="active">
                <a role="tab" data-toggle="tab" href="#product-full-list-{{ $supplier->id }}" data-async-load="{{ url('suppliers/' . $supplier->id . '/products') }}">{{ _i('Dettagli') }}</a>
            </li>
            <li role="presentation">
                <a role="tab" data-toggle="tab" href="#product-rapid-list-{{ $supplier->id }}" data-async-load="{{ url('suppliers/' . $supplier->id . '/products_grid') }}">{{ _i('Modifica Rapida') }}</a>
            </li>
        </ul>
    </div>

    <div class="tab-content">
        <div role="tabpanel" class="tab-pane details-list active" id="product-full-list-{{ $supplier->id }}">
            @include('supplier.products_details', ['supplier' => $supplier])
        </div>
        <div role="tabpanel" class="tab-pane rapid-list" id="product-rapid-list-{{ $supplier->id }}">
        </div>
    </div>
@else
    @include('supplier.products_details', ['supplier' => $supplier])
@endcan<commit_msg>messaggio di avvertimento per modifica prodotti di ordini aperti<commit_after>@can('supplier.modify', $supplier)
    <div class="row">
        <div class="col-md-12">
            @include('commons.addingbutton', [
                'template' => 'product.base-edit',
                'typename' => 'product',
                'target_update' => 'product-list-' . $supplier->id,
                'typename_readable' => _i('Prodotto'),
                'targeturl' => 'products',
                'extra' => [
                    'supplier_id' => $supplier->id
                ]
            ])

            @include('commons.importcsv', [
                'modal_id' => 'importCSV' . $supplier->id,
                'import_target' => 'products',
                'modal_extras' => [
                    'supplier_id' => $supplier->id
                ]
            ])

            <button class="btn btn-default export-custom-list" data-export-url="{{ url('suppliers/catalogue/' . $supplier->id . '/pdf') }}">{{ _i('Listino PDF') }} <span class="glyphicon glyphicon-download" aria-hidden="true"></span></button>
            <button class="btn btn-default export-custom-list" data-export-url="{{ url('suppliers/catalogue/' . $supplier->id . '/csv') }}">{{ _i('Listino CSV') }} <span class="glyphicon glyphicon-download" aria-hidden="true"></span></button>
        </div>
    </div>

    <div class="clearfix"></div>

    @if($supplier->orders()->whereNotIn('status', ['shipped', 'archived'])->count() != 0)
        <br>
        <div class="alert alert-danger">
            {{ _i('Attenzione: ci sono ordini non ancora consegnati ed archiviati per questo fornitore, eventuali modifiche ai prodotti saranno applicate anche a tali ordini.') }}
        </div>
        <br>
        <div class="clearfix"></div>
    @endif

    <div class="middle-tabs">
        <hr/>
        <ul class="nav nav-pills" role="tablist">
            <li role="presentation" class="active">
                <a role="tab" data-toggle="tab" href="#product-full-list-{{ $supplier->id }}" data-async-load="{{ url('suppliers/' . $supplier->id . '/products') }}">{{ _i('Dettagli') }}</a>
            </li>
            <li role="presentation">
                <a role="tab" data-toggle="tab" href="#product-rapid-list-{{ $supplier->id }}" data-async-load="{{ url('suppliers/' . $supplier->id . '/products_grid') }}">{{ _i('Modifica Rapida') }}</a>
            </li>
        </ul>
    </div>

    <div class="tab-content">
        <div role="tabpanel" class="tab-pane details-list active" id="product-full-list-{{ $supplier->id }}">
            @include('supplier.products_details', ['supplier' => $supplier])
        </div>
        <div role="tabpanel" class="tab-pane rapid-list" id="product-rapid-list-{{ $supplier->id }}">
        </div>
    </div>
@else
    @include('supplier.products_details', ['supplier' => $supplier])
@endcan
{'fraction_non_alphanumeric': 0.1993611424276588, 'fraction_numerical': 0.0009394964299135663, 'mean_word_length': 2.275692307692308, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 128, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3131014', 'n_tokens_mistral': 1673, 'n_tokens_neox': 1623, 'n_words': 296}