@extends('layouts.dashboard') @section('pageTitle') Modération @endsection @section('sectionTitle') Modération des annonces @endsection @section('content')
@if (session('flash'))
{{ session('flash') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif
@forelse ($items as $ad)
{{ $ad->title }}
{{ config('site.rubriques.' . $ad->rubrique . '.label') }}@if ($ad->category) · {{ $ad->category->name }}@endif · {{ $ad->city }} · @if ($ad->rubrique === 'cherche'){{ $ad->budget_max ? 'Budget ' . number_format($ad->budget_max, 0, ',', ' ') . ' DT' : 'Budget libre' }} @else{{ $ad->price ? number_format($ad->price, 0, ',', ' ') . ' DT' : 'Sur devis' }}@endif · {{ $ad->created_at->format('d/m/Y H:i') }}
Membre : {{ $ad->user->username ?? '—' }} ({{ $ad->user->email ?? '' }}@if ($ad->user && $ad->user->phone) · {{ $ad->user->phone }}@endif) @if ($ad->user)
@csrf
@endif
@if ($ad->status === 'rejected' && $ad->rejection_reason)
Motif : {{ $ad->rejection_reason }}
@endif
@if (in_array($status, ['pending', 'rejected', 'expired', 'archived']))
@csrf
@endif @if ($status === 'published')
@csrf
@csrf
@endif @if ($status !== 'rejected')
@csrf
@endif
@csrf @method('DELETE')
Voir le contenu

{{ $ad->description }}

@if ($ad->phone)

Téléphone annoncé : {{ $ad->phone }}{{ $ad->phone_2 ? ' / ' . $ad->phone_2 : '' }}

@endif
@foreach ($ad->images as $img)@endforeach
@empty

Aucune annonce dans cette liste.

@endforelse {{ $items->links() }}
@endsection