@error('photos')
{{ $message }}
@enderror
@error('photos.*')
{{ $message }}
@enderror
@if (count($photos) > 0)
Your photos
{{ count($photos) }}/{{ $maxPhotoCount }}
@for ($index = 0; $index < $visiblePhotoSlotCount; $index++)
@if (isset($photos[$index]))
@if ($index === 0)
Cover
@endif
@else
@endif
@endfor
@if (count($photos) > $visiblePhotoSlotCount)
{{ count($photos) - $visiblePhotoSlotCount }} more photos added.
@endif
@else
Add one cover photo to continue.
@endif
Video
@error('videos')
{{ $message }}
@enderror
@error('videos.*')
{{ $message }}
@enderror
@if (count($videos) > 0)
@foreach ($videos as $index => $video)
@php
$videoName = method_exists($video, 'getClientOriginalName') ? $video->getClientOriginalName() : 'Video '.($index + 1);
$videoSize = method_exists($video, 'getSize') ? (int) $video->getSize() : 0;
@endphp
@endforeach
@endif
@endif
@if ($currentStep === 2)
@if ($isDetecting)
Finding the best category...
@elseif ($detectedCategoryId)
Suggested: {{ $this->selectedCategoryName }}
@elseif ($detectedError)
{{ $detectedError }}
@endif
@if ($detectedAlternatives !== [])
@foreach ($detectedAlternatives as $alternativeId)
@php
$alternativeCategory = collect($categories)->firstWhere('id', $alternativeId);
@endphp
@if ($alternativeCategory)
@endif
@endforeach
@endif
@if (is_null($activeParentCategoryId))
Choose a category
@foreach ($this->rootCategories as $category)
@endforeach
@else
{{ $this->currentParentName }}
Pick
@forelse ($this->currentCategories as $category)
@if ($category['has_children'] && $category['id'] !== $activeParentCategoryId)
@else
@endif
@if ($selectedCategoryId === $category['id'])
@endif
@empty
No categories found.
@endforelse
@endif
@if ($errors->has('selectedCategoryId'))
{{ $errors->first('selectedCategoryId') }}
@endif
@if ($this->selectedCategoryName)
Selected
{{ $this->selectedCategoryName }}
@endif
@endif
@if ($currentStep === 3)
@endif
@if ($currentStep === 4)
Category
{{ $this->selectedCategoryPath ?: '-' }}
@if ($listingCustomFields === [])
No extra details for this category.
@else
@foreach ($listingCustomFields as $field)
@endforeach
@endif
@endif
@if ($currentStep === 5)