@extends('layouts.app') @section('title', $listing->title) @section('content')

{{ $listing->title }}

{{ $listing->price ? number_format($listing->price, 0).' '.$listing->currency : 'ფასი შეთანხმებით' }}

@php $photos = $listing->media()->where('type', 'photo')->get(); $video = $listing->media()->where('type', 'video')->first(); @endphp @if ($photos->isNotEmpty())
@foreach ($photos as $photo) {{ $listing->title }} @endforeach
@endif @if ($video) @php $embedUrl = \App\Models\MarketplaceListing::toEmbedUrl($video->external_url); @endphp @if ($embedUrl)
@else

ვიდეო: {{ $video->external_url }}

@endif @endif

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

{{ $listing->breed ?? '—' }}

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

{{ $listing->sex ? __('messages.sex_'.$listing->sex) : '—' }}

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

{{ $listing->date_of_birth?->format('Y') ?? '—' }}

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

{{ $listing->city ?? '—' }}

@if ($listing->description)
{!! nl2br(e($listing->description)) !!}
@endif

დაკავშირება

☎ {{ $listing->contact_phone }}

@if ($listing->contact_email)

✉ {{ $listing->contact_email }}

@endif
@endsection