@extends('su-admin.layout.master') @section('content') @php if(!isset($_GET['tab'])){ $tab = ''; }else{ $tab = $_GET['tab']; } @endphp
@if (session()->has('message')) @endif

Catalogo

{!! Form::open(['url' => Request::url(), 'method' => 'post', 'class' => 'form-horizontal']) !!}

Visualizzazione


{!! Form::label('num_items', 'Numero prodotti', ['class' => 'form-label']) !!}
{!! Form::input('number', 'num_items', get_setting('settings', 'num_items', 'catalog'), [ 'class' => 'form-control', ]) !!}
{!! Form::label('num_columns', 'Numero colonne', ['class' => 'form-label']) !!}
{!! Form::select( 'num_columns', [2 => 'Due', 3 => 'Tre', 4 => 'Quattro', 5 => 'Cinque'], get_setting('settings', 'num_columns', 'catalog'), ['class' => 'form-select'], ) !!}
{!! Form::label('num_columns_tablet', 'Numero colonne tablet', ['class' => 'form-label']) !!}
{!! Form::select( 'num_columns_tablet', [2 => 'Due', 3 => 'Tre', 4 => 'Quattro', 5 => 'Cinque'], get_setting('settings', 'num_columns_tablet', 'catalog'), ['class' => 'form-select'], ) !!}
{!! Form::label('num_columns_mobile', 'Numero colonne mobile', ['class' => 'form-label']) !!}
{!! Form::select( 'num_columns_mobile', [1 => 'Una', 2 => 'Due', 3 => 'Tre'], get_setting('settings', 'num_columns_mobile', 'catalog'), ['class' => 'form-select'], ) !!}
{!! Form::checkbox('default_season_customers', '1', get_setting('settings', 'default_season_customers', 'catalog'), [ 'class' => 'form-check-input', 'id' => 'default_season_customers', ]) !!} {!! Form::label('default_season_customers', 'Clienti: Seleziona di default la stagione corrente', ['class' => 'form-check-label']) !!}
{!! Form::checkbox('default_season_agents', '1', get_setting('settings', 'default_season_agents', 'catalog'), [ 'class' => 'form-check-input', 'id' => 'default_season_agents', ]) !!} {!! Form::label('default_season_agents', 'Agenti: Seleziona di default la stagione corrente', ['class' => 'form-check-label']) !!}

Ordinamento


Pubblica
{!! Form::label('sort_by', 'Campo ordinamento', ['class' => 'form-label']) !!}
{!! Form::select( 'sort_by', [ 'name' => 'Nome', 'sku' => 'Codice', 'date' => 'Novità', 'stock_asc' => 'Giacenza crescente', 'stock_desc' => 'Giacenza decrescente', 'price_asc' => 'Prezzo crescente', 'price_desc' => 'Prezzo decrescente', 'sort' => 'Ordinamento personalizato', 'custom' => 'Custom', ], get_setting('settings', 'sort_by', 'catalog'), ['class' => 'form-select'], [ 'custom' => [ "disabled" => true ] ], ) !!}
{!! Form::label('sort', 'Tipo ordinamento', ['class' => 'form-label']) !!}
{!! Form::select( 'sort', ['asc' => 'Crescente', 'desc' => 'Descrescente'], get_setting('settings', 'sort', 'catalog'), ['class' => 'form-select'], ) !!}
{!! Form::label('sort_by_custom', 'Campo custom ordinamento', ['class' => 'form-label']) !!}
{!! Form::input('text', 'sort_by_custom', get_setting('settings', 'sort_by_custom', 'catalog'), [ 'class' => 'form-control', ]) !!}
Clienti
{!! Form::label('sort_by_customers', 'Campo ordinamento', ['class' => 'form-label']) !!}
{!! Form::select( 'sort_by_customers', [ 'name' => 'Nome', 'sku' => 'Codice', 'date' => 'Novità', 'stock_asc' => 'Giacenza crescente', 'stock_desc' => 'Giacenza decrescente', 'price_asc' => 'Prezzo crescente', 'price_desc' => 'Prezzo decrescente', 'sort' => 'Ordinamento personalizato', 'custom' => 'Custom', ], get_setting('settings', 'sort_by_customers', 'catalog'), ['class' => 'form-select'], [ 'custom' => [ "disabled" => true ] ], ) !!}
{!! Form::label('sort_customers', 'Tipo ordinamento', ['class' => 'form-label']) !!}
{!! Form::select( 'sort_customers', ['asc' => 'Crescente', 'desc' => 'Descrescente'], get_setting('settings', 'sort_customers', 'catalog'), ['class' => 'form-select'], ) !!}
{!! Form::label('sort_by_custom_customers', 'Campo custom ordinamento', ['class' => 'form-label']) !!}
{!! Form::input('text', 'sort_by_custom_customers', get_setting('settings', 'sort_by_custom_customers', 'catalog'), [ 'class' => 'form-control', ]) !!}
Agenti
{!! Form::label('sort_by_agents', 'Campo ordinamento', ['class' => 'form-label']) !!}
{!! Form::select( 'sort_by_agents', [ 'name' => 'Nome', 'sku' => 'Codice', 'date' => 'Novità', 'price_asc' => 'Prezzo crescente', 'price_desc' => 'Prezzo decrescente', 'sort' => 'Ordinamento personalizato', 'custom' => 'Custom', ], get_setting('settings', 'sort_by_agents', 'catalog'), ['class' => 'form-select'], [ 'custom' => [ "disabled" => true ] ], ) !!}
{!! Form::label('sort_agents', 'Tipo ordinamento', ['class' => 'form-label']) !!}
{!! Form::select( 'sort_agents', ['asc' => 'Crescente', 'desc' => 'Descrescente'], get_setting('settings', 'sort_agents', 'catalog'), ['class' => 'form-select'], ) !!}
{!! Form::label('sort_by_custom_agents', 'Campo custom ordinamento', ['class' => 'form-label']) !!}
{!! Form::input('text', 'sort_by_custom_agents', get_setting('settings', 'sort_by_custom_agents', 'catalog'), [ 'class' => 'form-control', ]) !!}

Testi


Pubblica
{!! Form::label('product_title', 'Titolo', ['class' => 'form-label']) !!}
{!! Form::select( 'product_title', ['name' => 'Nome', 'sku' => 'Codice', 'name_sku' => 'Nome e codice'], get_setting('settings', 'product_title', 'catalog'), ['class' => 'form-select'], ) !!}
{!! Form::label('product_info_view', 'Info visualizzate', ['class' => 'form-label']) !!}
{!! Form::select( 'product_info_view', ['title_price' => 'Titolo e prezzo', 'title' => 'Solo titolo', 'price' => 'Solo prezzo'], get_setting('settings', 'product_info_view', 'catalog'), ['class' => 'form-select'], ) !!}
{!! Form::label('product_info_view_sort', 'Posizione', ['class' => 'form-label']) !!}
{!! Form::select( 'product_info_view_sort', ['title_price' => 'Titolo, Prezzo', 'price_title' => 'Prezzo, Titolo'], get_setting('settings', 'product_info_view_sort', 'catalog'), ['class' => 'form-select'], ) !!}
{!! Form::label('product_info_view_align', 'Allineamento', ['class' => 'form-label']) !!}
{!! Form::select( 'product_info_view_align', ['left' => 'Sinistra', 'center' => 'Centro'], get_setting('settings', 'product_info_view_align', 'catalog'), ['class' => 'form-select'], ) !!}
Clienti
{!! Form::label('product_title_customers', 'Titolo', ['class' => 'form-label']) !!}
{!! Form::select( 'product_title_customers', ['name' => 'Nome', 'sku' => 'Codice', 'name_sku' => 'Nome e codice'], get_setting('settings', 'product_title_customers', 'catalog'), ['class' => 'form-select'], ) !!}
{!! Form::label('product_info_view_customers', 'Info visualizzate', ['class' => 'form-label']) !!}
{!! Form::select( 'product_info_view_customers', ['title_price' => 'Titolo e prezzo', 'title' => 'Solo titolo', 'price' => 'Solo prezzo'], get_setting('settings', 'product_info_view_customers', 'catalog'), ['class' => 'form-select'], ) !!}
{!! Form::label('product_info_view_sort_customers', 'Posizione', ['class' => 'form-label']) !!}
{!! Form::select( 'product_info_view_sort_customers', ['title_price' => 'Titolo, Prezzo', 'price_title' => 'Prezzo, Titolo'], get_setting('settings', 'product_info_view_sort_customers', 'catalog'), ['class' => 'form-select'], ) !!}
{!! Form::label('product_info_view_align_customers', 'Allineamento', ['class' => 'form-label']) !!}
{!! Form::select( 'product_info_view_align_customers', ['left' => 'Sinistra', 'center' => 'Centro'], get_setting('settings', 'product_info_view_align_customers', 'catalog'), ['class' => 'form-select'], ) !!}
Agenti
{!! Form::label('product_title_agents', 'Titolo', ['class' => 'form-label']) !!}
{!! Form::select( 'product_title_agents', ['name' => 'Nome', 'sku' => 'Codice', 'name_sku' => 'Nome e codice'], get_setting('settings', 'product_title_agents', 'catalog'), ['class' => 'form-select'], ) !!}
{!! Form::label('product_info_view_agents', 'Info visualizzate', ['class' => 'form-label']) !!}
{!! Form::select( 'product_info_view_agents', ['title_price' => 'Titolo e prezzo', 'title' => 'Solo titolo', 'price' => 'Solo prezzo'], get_setting('settings', 'product_info_view_agents', 'catalog'), ['class' => 'form-select'], ) !!}
{!! Form::label('product_info_view_sort_agents', 'Posizione', ['class' => 'form-label']) !!}
{!! Form::select( 'product_info_view_sort_agents', ['title_price' => 'Titolo, Prezzo', 'price_title' => 'Prezzo, Titolo'], get_setting('settings', 'product_info_view_sort_agents', 'catalog'), ['class' => 'form-select'], ) !!}
{!! Form::label('product_info_view_align_agents', 'Allineamento', ['class' => 'form-label']) !!}
{!! Form::select( 'product_info_view_align_agents', ['left' => 'Sinistra', 'center' => 'Centro'], get_setting('settings', 'product_info_view_align_agents', 'catalog'), ['class' => 'form-select'], ) !!}

Settaggi


{!! Form::checkbox('product_image_hover', '1', get_setting('settings', 'product_image_hover', 'catalog'), [ 'class' => 'form-check-input', 'id' => 'product_image_hover', ]) !!} {!! Form::label('product_image_hover', 'Attiva immagine hover', ['class' => 'form-check-label']) !!}
{!! Form::checkbox('product_gallery', '1', get_setting('settings', 'product_gallery', 'catalog'), [ 'class' => 'form-check-input', 'id' => 'product_gallery', 'disabled' => (plus_active()) ? false : true, ]) !!} {!! Form::label('product_gallery', 'Attiva galleria', ['class' => 'form-check-label admin-plus-setting']) !!}
{!! Form::checkbox('product_quick_cart', '1', get_setting('settings', 'product_quick_cart', 'catalog'), [ 'class' => 'form-check-input', 'id' => 'product_quick_cart', 'disabled' => (plus_active()) ? false : true, ]) !!} {!! Form::label('product_quick_cart', 'Attiva quick cart', ['class' => 'form-check-label admin-plus-setting']) !!}
{!! Form::checkbox('product_quick_view', '1', get_setting('settings', 'product_quick_view', 'catalog'), [ 'class' => 'form-check-input', 'id' => 'product_quick_view', ]) !!} {!! Form::label('product_quick_view', 'Attiva quick view', ['class' => 'form-check-label']) !!}
{!! Form::checkbox('product_incart', '1', get_setting('settings', 'product_incart', 'catalog'), [ 'class' => 'form-check-input', 'id' => 'product_incart', ]) !!} {!! Form::label('product_incart', 'Attiva icona articolo nel carrello', ['class' => 'form-check-label']) !!}
{!! Form::label('product_badge_position', 'Posizione badge', ['class' => 'form-label']) !!}
{!! Form::select( 'product_badge_position', ['left' => 'Sinistra', 'right' => 'Destra'], get_setting('settings', 'product_badge_position', 'catalog'), ['class' => 'form-select'], ) !!}
{!! Form::label('product_actions_position', 'Posizione azioni', ['class' => 'form-label']) !!}
{!! Form::select( 'product_actions_position', ['left' => 'Sinistra', 'right' => 'Destra'], get_setting('settings', 'product_actions_position', 'catalog'), ['class' => 'form-select'], ) !!}
{!! Form::label('product_gallery_link', 'Azione link immagini galleria', ['class' => 'form-label']) !!}
{!! Form::select( 'product_gallery_link', ['zoom' => 'Zoom', 'link' => 'Link prodotto'], get_setting('settings', 'product_gallery_link', 'catalog'), ['class' => 'form-select'], ) !!}

Sezione info


{!! Form::label('product_attributes_view_type', 'Tipo visualizzazione', ['class' => 'form-label']) !!}
{!! Form::select( 'product_attributes_view_type', ['none' => 'Non visualizzare', 'text' => 'Testo', 'list' => 'Lista'], get_setting('settings', 'product_attributes_view_type', 'catalog'), ['class' => 'form-select','disabled' => (plus_active()) ? false : true], ) !!}
@php $attributes_text = []; $attributes_text[''] = 'Non selezionato'; foreach ($attributes as $attribute) { $attributes_text[$attribute['sku']] = $attribute['name']; } @endphp
{!! Form::label('product_attributes_view_selected', 'Attributo tipo testo', ['class' => 'form-label']) !!}
{!! Form::select( 'product_attributes_view_selected', $attributes_text, get_setting('settings', 'product_attributes_view_selected', 'catalog'), ['class' => 'form-select','disabled' => (plus_active()) ? false : true], ) !!}
Attributi tipo lista @php $active_attributes = (array) get_setting('settings', 'product_attributes_view', 'catalog'); @endphp @php $attribute_views = []; foreach ($attributes as $attribute) { $selected = in_array($attribute['sku'], $active_attributes) ? $attribute['sku'] : ''; $args = ['class' => 'form-check-input', 'id' => 'attr-' . $attribute['sku'], 'disabled' => (plus_active()) ? false : true]; $attribute_views[$attribute['sku']] = [ 'selected' => $selected, 'args' => $args ]; } @endphp @foreach ($attributes as $attribute)
{!! Form::checkbox( 'attributes_active[]', $attribute['sku'], $attribute_views[$attribute['sku']]['selected'], $attribute_views[$attribute['sku']]['args'], ) !!} {!! Html::decode(Form::label('attr-' . $attribute['sku'], $attribute['name'], ['class' => 'form-check-label'])) !!}
@if ($attribute_views[$attribute['sku']]['selected'])
{!! Form::label('product_attributes_list_view_type', 'Tipo visualizzazione per ' . $attribute['sku'], [ 'class' => 'col-lg-12 form-label', ]) !!}
{!! Form::select( 'product_attributes_list_view_type[' . $attribute['sku'] . ']', ['color_text' => 'Colore e testo','color' => 'Colore','text' => 'Testo' ], get_setting('settings', 'product_attributes_list_view_type.' . $attribute['sku'], 'catalog'), ['class' => 'form-select', 'disabled' => (plus_active()) ? false : true], ) !!}
@endif @endforeach
{!! Form::label('attributes_sort', 'Seleziona l\'ordinamento degli attributi', [ 'class' => 'col-lg-12 form-label', ]) !!}
@if (empty($active_attributes))

Nessun attributo selezionato. Attiva gli attributi da visualizzare e clicca su salva. Successivamente potrai ordinarli.

@else
    @foreach ($active_attributes as $attribute) @php $key = array_search($attribute, array_column($attributes, 'sku')); if ($key === false) { continue; } $attribute = $attributes[$key]; @endphp
  • {{ $attribute['name'] }}{!! Form::hidden('attributes_sort[]', $attribute['sku']) !!}
  • @endforeach
@endif

Sezione badge


@php $active_attributes = (array) get_setting('settings', 'product_attributes_badge_view', 'catalog'); @endphp @php $attribute_views = []; foreach ($attributes as $attribute) { $selected = in_array($attribute['sku'], $active_attributes) ? $attribute['sku'] : ''; $args = ['class' => 'form-check-input', 'id' => 'attr-badge-' . $attribute['sku'], 'disabled' => (plus_active()) ? false : true]; $attribute_views[$attribute['sku']] = [ 'selected' => $selected, 'args' => $args, ]; } @endphp @foreach ($attributes as $attribute)
{!! Form::checkbox( 'attributes_badge_active[]', $attribute['sku'], $attribute_views[$attribute['sku']]['selected'], $attribute_views[$attribute['sku']]['args'], ) !!} {!! Html::decode(Form::label('attr-badge-' . $attribute['sku'], $attribute['name'], ['class' => 'form-check-label'])) !!}
@if ($attribute_views[$attribute['sku']]['selected'])
{!! Form::label('product_attributes_badge_options', 'Colore badge per ' . $attribute['name'], ['class' => 'form-label'] ) !!} {!! Form::input('color', 'product_attributes_badge_options[' . $attribute['sku'] . '][color]',get_setting('settings', 'product_attributes_badge_options.' . $attribute['sku'] . '.color', 'catalog'), ['class' => 'form-control form-control-color', 'disabled' => (plus_active()) ? false : true]) !!}
{!! Form::label('product_attributes_badge_options', 'Colore testo badge per ' . $attribute['name'], ['class' => 'form-label'] ) !!} {!! Form::input('color', 'product_attributes_badge_options[' . $attribute['sku'] . '][color_text]',get_setting('settings', 'product_attributes_badge_options.' . $attribute['sku'] . '.color_text', 'catalog'), ['class' => 'form-control form-control-color', 'disabled' => (plus_active()) ? false : true]) !!}
{!! Form::label('product_attributes_badge_options', 'Posizione ' . $attribute['name'], [ 'class' => 'form-label', ]) !!} {!! Form::select( 'product_attributes_badge_options[' . $attribute['sku'] . '][position]', ['start' => 'Inizio','end' => 'Fine'], get_setting('settings', 'product_attributes_badge_options.' . $attribute['sku'] . '.position', 'catalog'), ['class' => 'form-select', 'disabled' => (plus_active()) ? false : true], ) !!}
@endif @endforeach
{!! Form::label('attributes_badge_sort', 'Seleziona l\'ordinamento degli attributi', [ 'class' => 'col-lg-12 form-label', ]) !!}
@if (empty($active_attributes))

Nessun attributo selezionato. Attiva gli attributi da visualizzare e clicca su salva. Successivamente potrai ordinarli.

@else
    @foreach ($active_attributes as $attribute) @php $key = array_search($attribute, array_column($attributes, 'sku')); if ($key === false) { continue; } $attribute = $attributes[$key]; @endphp
  • {{ $attribute['name'] }}{!! Form::hidden('attributes_badge_sort[]', $attribute['sku']) !!}
  • @endforeach
@endif
{!! Form::checkbox('scanner_detection_status', '1', get_setting('settings', 'scanner_detection_status', 'catalog'), [ 'class' => 'form-check-input', 'id' => 'scanner_detection_status', 'disabled' => (plus_active()) ? false : true ]) !!} {!! Form::label('scanner_detection_status', 'Attiva utilizzo scanner detection', ['class' => 'form-check-label admin-plus-setting']) !!}
{!! Form::hidden('id', $tab, ['class' => 'form-section-id'] ) !!} {!! Form::submit('Salva', ['class' => 'btn btn-primary btn-fw']) !!}
{!! Form::close() !!}
@endsection