@if($placement->type->value === 'product_tabs' && !empty($this->groups)) @endif
@if(count($productContents) > 0) @if($viewMode === 'table')
@if($placement->type->value === 'product_tabs') @endif @foreach($productContents as $content) @if($placement->type->value === 'product_tabs') @endif @endforeach
# {{ __('admin::lang.Product') }}{{ __('admin::lang.Group') }}{{ __('admin::lang.Status') }} {{ __('admin::lang.Priority') }} {{ __('admin::lang.Schedule') }} {{ __('admin::lang.Actions') }}
{{ $content->id }} @if($content->product)
@if($content->product->image) @endif
{{ $content->product->getTranslation('title', app()->getLocale()) }}
ID: {{ $content->product_id }}
@else Product not found @endif
@if($content->group_key) @php $group = collect($this->groups)->firstWhere('key', $content->group_key); @endphp @if($group) {{ $group['title'][app()->getLocale()] ?? $group['title']['en'] }} @else {{ $content->group_key }} @endif @endif @switch($content->status->value) @case('active') {{ $content->status->label() }} @break @case('inactive') {{ $content->status->label() }} @break @case('scheduled') {{ $content->status->label() }} @break @case('expired') {{ $content->status->label() }} @break @endswitch {{ $content->priority }} @if($content->start_date || $content->end_date) @if($content->start_date)
{{ __('admin::lang.From') }}: {{ $content->start_date->format('Y-m-d') }}
@endif @if($content->end_date)
{{ __('admin::lang.To') }}: {{ $content->end_date->format('Y-m-d') }}
@endif
@else - @endif
@else
@foreach($productContents as $content)
@if($content->product && $content->product->image) @else
@endif
{{ $content->product?->getTranslation('title', app()->getLocale()) ?? 'N/A' }}
{{ $content->status->label() }} P: {{ $content->priority }}
@endforeach
@endif @else
{{ __('admin::lang.No products added yet') }}
@endif