@extends('app::layouts.app') @section('content') @php $title = trim((string) ($listing->title ?? '')); $displayTitle = $title !== '' ? $title : 'İlan başlığı yok'; $priceLabel = 'Fiyat sorunuz'; if (! is_null($listing->price)) { $priceValue = (float) $listing->price; $priceLabel = $priceValue > 0 ? number_format($priceValue, 0, ',', '.').' '.($listing->currency ?: 'TL') : 'Ücretsiz'; } $locationLabel = collect([$listing->city, $listing->country]) ->filter(fn ($value) => is_string($value) && trim($value) !== '') ->implode(', '); $publishedAt = $listing->created_at?->format('d M Y'); $galleryImages = collect($gallery ?? [])->values()->all(); $initialGalleryImage = $galleryImages[0] ?? null; $sellerName = trim((string) ($listing->user?->name ?? 'Satıcı')); $sellerInitial = strtoupper(substr($sellerName, 0, 1)); $sellerMemberText = $listing->user?->created_at ? $listing->user->created_at->format('M Y').' tarihinden beri üye' : 'Yeni üye'; @endphp
@if($galleryImages !== [])
@foreach($galleryImages as $index => $image) @endforeach
@endif
{{ $priceLabel }}
{{ $displayTitle }}
{{ $locationLabel !== '' ? $locationLabel : 'Konum belirtilmedi' }}
{{ $publishedAt ?? '-' }}

Acil kredi mi lazım?

Kredi fırsatlarını hemen incele.

Yeni

İlan Özellikleri

İlan No{{ $listing->id }}
Marka{{ $listing->category?->name ?? '-' }}
Model{{ $listing->slug ?? '-' }}
Yayın Tarihi{{ $publishedAt ?? '-' }}
@foreach(($presentableCustomFields ?? []) as $chunk)
{{ $chunk['label'] ?? '-' }}{{ $chunk['value'] ?? '-' }}
Konum{{ $locationLabel !== '' ? $locationLabel : '-' }}
@endforeach
@endsection