{{-- Offer card (home page and offers page). Params: $offer, $index (for the placeholder image), $subscribeInPage (true on the offers page: the button fills the form below instead of linking). --}} @php $newPrice = $offer->discountedPrice(); $oldPrice = $offer->basePrice(); $currency = trans('site.doctors.currency'); $money = fn (float $amount) => rtrim(rtrim(number_format($amount, 2), '0'), '.'); @endphp
@if ((float) $offer->discount_value > 0)
{{ $offer->discountLabel() }} {{ trans('site.offers.discount') }}
@endif
{{ $offer->description }}
@endif @if ($newPrice !== null)