@extends('layouts.app2') @section('title', __('Adlyno') . (request('search_term') ? ' - Recherche pour ' . request('search_term') : '')) @section('meta_keywords') {{ "recherche, Adlyno, " . request('search_term') . ", annonces, Tunisie, achat, vente, offres spéciales" }} @endsection @section('meta_description') {{ "Résultats de recherche pour '" . request('search_term') . "' sur Adlyno. Trouvez et découvrez des annonces pertinentes pour '" . request('search_term') . "' en Tunisie." }} @endsection @section('content')
@php $counter = 0; // Initialiser un compteur @endphp @foreach($Posts as $post)
@php $isFavorited = DB::table('favorites') ->where('user_id', auth()->id()) ->where('post_id', $post->id) ->exists(); @endphp @auth
@endauth @guest @endguest {{ $post->post_title }}

{{ $post->post_title }} à {{ $post->city->city_name ?? '' }}

@if($post->post_money == 0) Négociable @else {{ number_format($post->post_money) }} TND @endif
@php $counter++; // Incrémenter le compteur @endphp @if($counter % 12 == 0)
@endif @endforeach
@if ($Posts->hasPages())
@endif
@if(!$isWebView) @include('../layouts.footer') @endif @endsection