@extends('layouts.admin') @section('title', $listing->title) @section('content')
Back to the queue

{{ $listing->title }}

{{ $listing->status->label() }} {{ $listing->reference }} {{ $listing->category?->path(' › ') }}

@if ($listing->isLive()) View publicly @endif
@if (session('error')) {{ session('error') }} @endif

Description

@if ($listing->short_description)

{{ $listing->short_description }}

@endif

{{ $listing->description }}

@if ($specification)

Specification

@foreach ($specification as $row)
{{ $row['label'] }}
{{ $row['value'] }}
@endforeach
@endif

Location

{{ collect([$listing->address, $listing->ward ? 'Ward '.$listing->ward : null, $listing->municipality, $listing->district, $listing->province, $listing->country])->filter()->implode(', ') }}

@if ($listing->latitude && $listing->longitude)

{{ $listing->latitude }}, {{ $listing->longitude }}

@endif
{{-- The decision panel. A rejection requires a reason: without one the seller has nothing to act on and will simply resubmit. --}}

Decision

@if ($transitions)
@csrf
@foreach ($transitions as $target) @endforeach
@error('reason')

{{ $message }}

@enderror
@else

No further action is available from this status.

@endif @if ($listing->rejection_reason)

Previously rejected

{{ $listing->rejection_reason }}

@endif @if ($listing->moderated_at)

Last decision {{ $listing->moderated_at->format('d M Y, H:i') }} @if ($listing->moderator) by {{ $listing->moderator->name }} @endif

@endif

Seller

@foreach ([ 'Name' => $listing->seller?->display_name ?? $listing->user->name, 'Account' => $listing->user->email, 'Type' => $listing->seller?->type->label(), 'Verification' => $listing->seller?->verification_status->label(), 'Contact' => $listing->contactPhone(), ] as $label => $value) @if (filled($value))
{{ $label }}
{{ $value }}
@endif @endforeach

Price

{{ $listing->formattedPrice() }} @if ($period = $listing->pricePeriodLabel()) {{ $period }} @endif

{{ $listing->intent->label() }}

@endsection