@if ($currentStep === 1)
1-{{ (int) config('quick-listing.max_photo_count', 20) }} photos. JPG or PNG.
@error('photos')
{{ $message }}
@enderror
@error('photos.*')
{{ $message }}
@enderror
@if (count($photos) > 0)
Your photos
First photo is the cover
@for ($index = 0; $index < (int) config('quick-listing.max_photo_count', 20); $index++)
@if (isset($photos[$index]))
@if ($index === 0)
COVER
@endif
@else
@endif
@endfor
@else
Add one photo
We suggest a category after the first upload.
@endif
@endif
@if ($currentStep === 2)
@if ($isDetecting)
Finding the best category...
@elseif ($detectedCategoryId)
Suggested category: {{ $this->selectedCategoryName }}
@else
Choose a category.
@if ($detectedError)
{{ $detectedError }}
@endif
@endif
@if ($detectedAlternatives !== [])
@foreach ($detectedAlternatives as $alternativeId)
@php
$alternativeCategory = collect($categories)->firstWhere('id', $alternativeId);
@endphp
@if ($alternativeCategory)
@endif
@endforeach
@endif
@if (is_null($activeParentCategoryId))
@foreach ($this->rootCategories as $category)
@endforeach
@else
@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)
@foreach (array_slice($photos, 0, 7) as $index => $photo)
@if ($index === 0)
COVER
@endif
@endforeach
Category
{{ $this->selectedCategoryPath ?: '-' }}
@endif
@if ($currentStep === 4)
Category
{{ $this->selectedCategoryPath ?: '-' }}
@if ($listingCustomFields === [])
No extra details needed for this category.
@else
@foreach ($listingCustomFields as $field)
@endforeach
@endif
@endif
@if ($currentStep === 5)
Home › {{ $this->selectedCategoryPath }}
@foreach (array_slice($photos, 0, 3) as $photo)
@endforeach
@for ($empty = count(array_slice($photos, 0, 3)); $empty < 3; $empty++)
@endfor
@php
$displayPrice = is_numeric($price) ? number_format((float) $price, 0, ',', '.') : $price;
@endphp
{{ $displayPrice }} {{ \Modules\Listing\Support\ListingPanelHelper::defaultCurrency() }}
{{ $this->selectedCityName ?: '-' }}, {{ $this->selectedCountryName ?: '-' }}
{{ now()->format('d.m.Y') }}
{{ $listingTitle }}
{{ $description }}
Details
@if ($this->previewCustomFields !== [])
@foreach ($this->previewCustomFields as $field)
{{ $field['label'] }}
{{ $field['value'] }}
@endforeach
@else
Details
No extra details added
@endif
{{ $this->currentUserInitial }}
{{ $this->currentUserName }}
{{ auth()->user()?->email }}
@endif