@include('layouts.nav')
@if(!$isWebView) @endif

@if(request()->has('page') && request()->input('page') >= 1) {{$subcategory->sub_category_name}} en Tunisie | Page {{ request()->input('page') }} @else {{$subcategory->sub_category_name}} En tunisie @endif

@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 @include('/layouts.navbarmobile')