@extends('app::layouts.app') @section('content')

{{ __('messages.listings') }}

@if($search !== '') @endif @if($categoryId) Sıfırla @endif
@auth @php $canSaveSearch = $search !== '' || !is_null($categoryId); @endphp
Bu aramayı favorilere ekleyerek daha sonra hızlıca açabilirsin.
@csrf
Favori Aramalar
@endauth
@forelse($listings as $listing) @php $listingImage = $listing->getFirstMediaUrl('listing-images'); $isFavorited = in_array($listing->id, $favoriteListingIds ?? [], true); $conversationId = $conversationListingMap[$listing->id] ?? null; @endphp
@if($listingImage) {{ $listing->title }} @else @endif
@auth
@csrf
@else @endauth
@if($listing->is_featured) Featured @endif

{{ $listing->title }}

@if($listing->price) {{ number_format($listing->price, 0) }} {{ $listing->currency }} @else Free @endif

{{ $listing->category?->name ?: 'Kategori yok' }}

{{ $listing->city }}, {{ $listing->country }}

View @auth @if($listing->user_id && (int) $listing->user_id !== (int) auth()->id()) @if($conversationId) Sohbete Git @else
@csrf
@endif @endif @endauth
@empty
Bu filtreye uygun ilan bulunamadı.
@endforelse
{{ $listings->links() }}
@endsection