@php $mainTab = "main-tab"; $detailTab = "detail-tab"; $specificationTab = "specification-tab"; $paragraphTab = "paragraph-tab"; $documentTab = App\Enums\AttachmentTypes::Document->value . "-tab"; $imageTab = App\Enums\AttachmentTypes::Image->value . "-tab"; $contentTab = "content-tab"; $categoriesTab = "categories-tab"; @endphp
@foreach (app(\Astrotomic\Translatable\Locales::class)->all() as $locale)
@if ($errors->has('name:' . $locale))
{{ $errors->first('name:' . $locale) }}
@endif
@endforeach
@foreach (app(\Astrotomic\Translatable\Locales::class)->all() as $locale)
@if ($errors->has('description:' . $locale))
{{ $errors->first('description:' . $locale) }}
@endif
@endforeach
@if ($errors->has('template')) {{ $errors->first('template') }} @endif
@if ($errors->has('video'))
{{ $errors->first('video') }}
@endif
show_climabox ?? null) ? 'checked' : "" }}>
@if($tenant->id == App\Enums\ProductVersions::Current->value)
@if ($errors->has('recommendations')) {{ $errors->first('recommendations') }} @endif
@endif
@foreach (app(\Astrotomic\Translatable\Locales::class)->all() as $locale) @php $cover_key = App\Enums\AttachmentTypes::Cover->value . ':' . $locale; @endphp
@if ($errors->has($cover_key))
{{ $errors->first($cover_key) }}
@endif @if($product->cover && $product->cover->{"file_url:{$locale}"})
@endif
@endforeach
@foreach (app(\Astrotomic\Translatable\Locales::class)->all() as $locale) @php $schema_key = App\Enums\AttachmentTypes::Schema->value . ':' . $locale; @endphp
@if ($errors->has($schema_key))
{{ $errors->first($schema_key) }}
@endif @if($product->schema && $product->schema->{"file_url:{$locale}"})
@endif
@endforeach
@foreach (config('ecoclima.sites') as $key => $name)
{{ $name }}
@foreach (config('ecoclima.flags') as $flag => $label)
flags[$key][$flag] ?? null) ? 'checked' : "" }}>
@endforeach
@endforeach
@foreach (app(\Astrotomic\Translatable\Locales::class)->all() as $locale)
@endforeach
@foreach (app(\Astrotomic\Translatable\Locales::class)->all() as $locale)
@endforeach
@if($product->id) @can('viewAny', App\Models\Paragraph::class)
@can('create', App\Models\Paragraph::class) @endcan
@foreach(\App\Enums\ParagraphColumn::cases() as $paragraph_column)
{{ __("enums.paragraph-column.{$paragraph_column->value}") }}
    @foreach ($product->paragraphs()->where('column', $paragraph_column)->get() as $paragraph)
  • {{ $paragraph->title }}
    @include ("products.paragraphs.partials.action_column", ['product' => $product, 'paragraph' => $paragraph])
  • @endforeach
@endforeach
@endcan @can('viewAny', App\Models\Attachment::class)
@can('create', App\Models\Attachment::class) @endcan
    @foreach ($product->documents as $attachment)
  • {{ $attachment->title }}
    @include ("products.attachments.partials.action_column", ['product' => $product, 'attachment' => $attachment])
  • @endforeach
@can('create', App\Models\Attachment::class) @endcan
    @foreach ($product->images as $attachment)
  • {{ $attachment->title }}
    @include ("products.attachments.partials.action_column", ['product' => $product, 'attachment' => $attachment])
  • @endforeach
@endcan @can('viewAny', App\Models\Content::class)
@can('create', App\Models\Content::class) @endcan
    @foreach ($product->contents as $content)
  • @if($content->file_url) @endif {{ $content->label }}
    @include ("products.contents.partials.action_column", ['product' => $product, 'content' => $content])
  • @endforeach
@endcan @endif @if($tenant->id == App\Enums\ProductVersions::Current->value) @can('viewAny', App\Models\Category::class)
@foreach ($categories as $category) @include('products.partials.category', [ 'category' => $category, 'categories' => $product->categories->pluck('id')->toArray(), ]) @endforeach
@endcan @endif
@push('after-scripts') @endpush