@foreach (app(\Astrotomic\Translatable\Locales::class)->all() as $locale)
@endforeach
@foreach (app(\Astrotomic\Translatable\Locales::class)->all() as $locale)
@endforeach
@if ($errors->has('template')) {{ $errors->first('template') }} @endif
@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
@endforeach
@foreach (app(\Astrotomic\Translatable\Locales::class)->all() as $locale)
@php $schema_key = App\Enums\AttachmentTypes::Schema->value . ':' . $locale; @endphp
@endforeach
@foreach (config('ecoclima.sites') as $key => $name)
@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