New listing

{{ $this->currentStepTitle }}

{{ $this->currentStepHint }}

Step {{ $currentStep }}/5
@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])) Uploaded photo {{ $index + 1 }} @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))
Choose a category
@foreach ($this->rootCategories as $category) @endforeach
@else
{{ $this->currentParentName }}
@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)
Selected photo {{ $index + 1 }} @if ($index === 0)
COVER
@endif
@endforeach

Category

{{ $this->selectedCategoryPath ?: '-' }}

Keep it short and clear.

{{ $this->titleCharacters }}/70
@error('listingTitle')
{{ $message }}
@enderror
{{ \Modules\Listing\Support\ListingPanelHelper::defaultCurrency() }}

Use the final asking price.

@error('price')
{{ $message }}
@enderror

Condition, key details, and anything important.

{{ $this->descriptionCharacters }}/1450
@error('description')
{{ $message }}
@enderror
@error('selectedCountryId')
{{ $message }}
@enderror
@error('selectedCityId')
{{ $message }}
@enderror
@endif @if ($currentStep === 4)

Category

{{ $this->selectedCategoryPath ?: '-' }}

@if ($listingCustomFields === [])
No extra details needed for this category.
@else
@foreach ($listingCustomFields as $field)
@if ($field['type'] === 'text') @elseif ($field['type'] === 'textarea') @elseif ($field['type'] === 'number') @elseif ($field['type'] === 'select') @elseif ($field['type'] === 'boolean') @elseif ($field['type'] === 'date') @endif @if ($field['help_text'])

{{ $field['help_text'] }}

@endif @error('customFieldValues.'.$field['name'])
{{ $message }}
@enderror
@endforeach
@endif
@endif @if ($currentStep === 5)
Home › {{ $this->selectedCategoryPath }}
@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 }}
Map
Profile
@endif