@php $maxPhotoCount = (int) config('quick-listing.max_photo_count', 20); $visiblePhotoSlotCount = min($maxPhotoCount, 8); $maxVideoCount = (int) config('video.max_listing_videos', 5); $currency = \Modules\Listing\Support\ListingPanelHelper::defaultCurrency(); $displayPrice = is_numeric($price) ? number_format((float) $price, 0, ',', '.') : $price; @endphp
Step {{ $currentStep }} of 5

{{ $this->currentStepTitle }}

@if ($publishError)
{{ $publishError }}
@endif @if ($currentStep === 1)
@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])) Uploaded photo {{ $index + 1 }} @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
{{ $videoName }}
{{ $videoSize > 0 ? number_format($videoSize / 1048576, 1, ',', '.') : '-' }} MB
@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)
@foreach (array_slice($photos, 0, 4) as $index => $photo)
Selected photo {{ $index + 1 }} @if ($index === 0)
Cover
@endif
@endforeach
Category {{ $this->selectedCategoryPath ?: '-' }}
{{ $this->titleCharacters }}/70
@error('listingTitle')
{{ $message }}
@enderror
{{ $currency }}
@error('price')
{{ $message }}
@enderror
@error('selectedCountryId')
{{ $message }}
@enderror
@error('selectedCityId')
{{ $message }}
@enderror
{{ $this->descriptionCharacters }}/1450
@error('description')
{{ $message }}
@enderror
@endif @if ($currentStep === 4)
Category {{ $this->selectedCategoryPath ?: '-' }}
@if ($listingCustomFields === [])
No extra details 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)
{{ $displayPrice }} {{ $currency }}
{{ $this->selectedCityName ?: '-' }}, {{ $this->selectedCountryName ?: '-' }}
{{ now()->format('d.m.Y') }}

{{ $listingTitle ?: 'Untitled listing' }}

{{ $description ?: 'No description added.' }}

Category
{{ $this->selectedCategoryPath ?: '-' }}
@if ($this->previewCustomFields !== []) @foreach ($this->previewCustomFields as $field)
{{ $field['label'] }}
{{ $field['value'] }}
@endforeach @endif @if (count($videos) > 0)
Videos
{{ count($videos) }} added
@endif
{{ $this->currentUserInitial }}
{{ $this->currentUserName }}
{{ auth()->user()?->email }}
@endif
@include('video::partials.video-upload-optimizer')