@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
@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