@php $emailPromoListing = $email_promotion_listing ?? (function_exists('email_promotion_listing') ? email_promotion_listing() : null); @endphp @if ($emailPromoListing) @php $promoLocation = listing_card_location($emailPromoListing); $promoUrl = listing_url($emailPromoListing); $promoImage = custom_asset($emailPromoListing->thumb_image, '400x160'); $promoTitle = email_promotion_display_title($emailPromoListing->title); $promoCategory = $emailPromoListing?->category?->name ?? $emailPromoListing?->sub_category?->name; $promoPrice = $emailPromoListing->regular_price; $promoPriceValue = $promoPrice ? currency_without_icon($promoPrice) : null; $promoCurrency = session('currency_code', 'RON'); @endphp
{{ $promoTitle }} @if ($promoCategory || filled($promoLocation)) @endif @if ($promoPriceValue) @endif
{{ __('translate.Promoted') }}
{{ $promoTitle }}
@if ($promoCategory) {{ $promoCategory }} @endif @if ($promoCategory && filled($promoLocation)) ยท @endif @if (filled($promoLocation)) {{ $promoLocation }} @endif
{{ __('translate.Price') }}
{{ $promoPriceValue }} {{ $promoCurrency }}
@endif