@extends('layouts.app') @section('title', $listing->title) @section('content')
{{ $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()) @endif @if ($video) @php $embedUrl = \App\Models\MarketplaceListing::toEmbedUrl($video->external_url); @endphp @if ($embedUrl)ვიდეო: {{ $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 ?? '—' }}
☎ {{ $listing->contact_phone }}
@if ($listing->contact_email)✉ {{ $listing->contact_email }}
@endif