@if ($adPlacementSettings->after_header) @endif
@if (!optional(current($customizationSettings->ad_detail_page))['enable_price_below_image']) @if ($ad->adType?->disable_price_type == false && !in_array($ad->adType?->marketplace, [ONLINE_SHOP_MARKETPLACE, POINT_SYSTEM_MARKETPLACE]))
@endif @if (in_array($ad->adType?->marketplace, [ONLINE_SHOP_MARKETPLACE, POINT_SYSTEM_MARKETPLACE])) @endif @endif @if (!optional(current($customizationSettings->ad_detail_page))['enable_mobile_view_ad_action_in_below_ad'])
@endif

{{ $this->ad->title }}

@if (optional(current($customizationSettings->ad_detail_page))['enable_location_below_title']) @unless ($ad?->category?->disable_location)
@endunless @endif
@if (!optional(current($customizationSettings->ad_detail_page))['enable_location_below_title'])
@unless ($ad?->category?->disable_location)
@endif
{{-- Modals (View review) --}} @if (isECommercePluginEnabled())
{{ number_format($ad->customerReviews()->avg('rating'), 1) }}
{{ $ad->customerReviews()->count() }} Reviews
@php $imageProperties = $ad->image_properties; $altText = $imageProperties['1'] ?? $ad->title; @endphp {{-- --}}

{{ $ad->title }}

{{ $ad?->category?->name }}
Seller: {{ $ad->user->name }}
@if ($ad->isEnabledOffer() && $ad->offer_price) {{ $ad->offer_price ? config('app.currency_symbol') . ' ' . \Number::format(floor($ad->offer_price), locale: $paymentSettings->currency_locale) : null }} {{ config('app.currency_symbol') . ' ' . \Number::format(floor($ad->price), locale: $paymentSettings->currency_locale) }} @if ($ad->getOfferPercentage()) {{ $ad->getOfferPercentage() }} % OFF @endif @else {{ config('app.currency_symbol') . ' ' . \Number::format(floor($ad->price), locale: $paymentSettings->currency_locale) }} @endif
{{ __('messages.t_member_since') }} {{ \Carbon\Carbon::parse($ad->user->created_at)->translatedFormat('F Y') }}
@if ($ad->user->email_verified_at)
{{ __('messages.t_email_verified') }}
@endif
{{-- review section --}}
@foreach ($ad->customerReviews()->get() as $review)
@if ($review->user->profile_image) {{ $review->user->name }} @else
{{ substr($review->user->name, 0, 1) }}
@endif
{{ $review->user->name }}
@for ($i = 0; $i < $review->rating; $i++) @endfor @for ($i = 0; $i < 5 - $review->rating; $i++) @endfor
{{--

{{ $review->feedback }}

--}}
@endforeach @if ($ad->customerReviews()->count() == 0)
@endif
@endif
@if ($ownerView) @endif @if (Auth::id() == $this->ad->user_id && $this->ad->status->value == 'active')
@endif
@if (optional(current($customizationSettings->ad_detail_page))['enable_carousel']) @else @endif @if (!optional(current($customizationSettings->ad_detail_page))['enable_favourite_move_to_ad_action'])
@endif @if ($isUrgent)
{{ __('messages.t_urgent_ad') }}
@endif @if ($isFeatured)
{{ __('messages.t_featured_ad') }}
@endif @if (is_vehicle_rental_active() && $vehicle?->transmission)

{{ __('messages.t_ad_details') }}:

{{ __('messages.t_transmission') }}: {{ $vehicle->transmission->name }}
{{ __('messages.t_fuel_type') }}: {{ $vehicle->fuelType->name }}
{{ __('messages.t_mileage') }}: {{ $vehicle->mileage . ' ' . __('messages.t_mileage_prefix') }}
{{ __('messages.t_vehicle_features') }}:
@foreach ($vehicle->features as $features) {{ $features->name }} @endforeach
@endif @php $otherGroup = $fieldDetails['Other'] ?? []; // Collect 'Other' group separately if it exists unset($fieldDetails['Other']); // Remove 'Other' from the main array to process it last @endphp @if(($ad->condition && $ad->category?->disable_condition != true) || ($otherGroup && count($otherGroup)) || ($fieldDetails && count($fieldDetails)))
@if ($ad->condition && $ad->category?->disable_condition != true)
{{ __('messages.t_condition') }}: {{ $ad->condition->name }}
@endif {{-- First render fields without a group (if any exist) --}} @foreach ($otherGroup as $fieldDetail) @if ($fieldDetail['value'])
{{ $fieldDetail['field_name'] }}: @if (is_array($fieldDetail['value']))
@foreach ($fieldDetail['value'] as $value) {{ $value }} @endforeach
@else {{ $fieldDetail['value'] }} @endif
@endif @endforeach {{-- Then render fields with groups --}} @foreach ($fieldDetails as $groupName => $fields)
{{ $groupName }}:
@foreach ($fields as $fieldDetail) @if ($fieldDetail['value'])
{{ $fieldDetail['field_name'] }}: @if (is_array($fieldDetail['value']))
@foreach ($fieldDetail['value'] as $value) {{ $value }} @endforeach
@else {{ $fieldDetail['value'] }} @endif
@endif @endforeach @endforeach
@endif
@if (is_ecommerce_active() && in_array($ad->adType?->marketplace, [ONLINE_SHOP_MARKETPLACE, POINT_SYSTEM_MARKETPLACE))
@if (isECommerceQuantityOptionEnabled())
{{ __('messages.t_quantity') }}
@endif
{{ number_format($ad->customerReviews()->avg('rating'), 1) }}
{{ $ad->customerReviews()->count() }} Reviews
@if ($ad->returnPolicy)
{{ $ad->returnPolicy?->policy_name }}
Refund Policy
@endif
@if (isECommerceAddToCardEnabled()) {{ __('messages.t_add_to_cart') }} @endif @if (isECommerceBuyNowEnabled()) {{ __('messages.t_buy_now') }} @endif

{{ $ad->returnPolicy?->policy_name }}

{{ $ad->returnPolicy?->description }}

@endif @if (is_vehicle_rental_active()) @if ($ad->start_date || ($vehicleRentalSettings->enable_whatsapp && $ad->user->phone_number))
@if ($ad->start_date) @endif
@endif @endif {{-- @if (!is_ecommerce_active() && $whatsappSettings->enable_whatsapp && $ad->user->phone_number)
{{ __('messages.t_chat') }}
@endif --}} {{-- @if (!is_ecommerce_active() && $phoneSettings->enable_phone && $ad->user->phone_number)
@endif --}} @if (!is_ecommerce_active()) @endif
@if (optional(current($customizationSettings->ad_detail_page))['enable_mobile_view_ad_action_in_below_ad'])
@endif @if ($externalAdSettings->enable) @if ( !getSubscriptionSetting('status') || (getSubscriptionSetting('status') && in_array(getUserSubscriptionPlan($ad->user_id)?->ads_level, ['basic', 'advanced'])))
{!! $externalAdSettings->value !!}
@endif @endif @if ($tags && count($tags) > 0)

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

@foreach ($tags as $tag) {{ $tag['name'] }} @endforeach
@endif
@if (!$relatedAds->isEmpty())

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

@foreach ($relatedAds as $ad) @endforeach
@endif
@if ($adPlacementSettings->before_footer) @endif {{-- Modals (Share ad) --}} {{-- Header --}} {{ __('messages.t_share_this_ad') }} {{-- Content --}}
{{-- Facebook --}}
{{ __('messages.t_facebook') }}
{{-- Twitter --}}
{{ __('messages.t_twitter') }}
{{-- Linkedin --}}
{{ __('messages.t_linkedin') }}
{{-- Whatsapp --}}
{{ __('messages.t_whatsapp') }}
{{-- Copy link --}}
{{-- Modals (Report ad) --}} {{-- Header --}} {{ __('messages.t_report_this_ad') }}
{{ $this->form }}
{{ __('messages.t_report_ad') }}