{{ __('messages.t_summary') }}
@foreach ($packageItems as $item)
@if($item->promotion)
{{ __('messages.t_promotion_name_for_days', ['quantity' => $item->quantity, 'promotionName' =>
$item->promotion->promotion->name, 'days' => $item->promotion->package->duration]) }}
@else
{{ __('messages.t_ads_valid_for_days', ['quantity' => $item->quantity, 'days' =>
$item->package->duration]) }}
@endif
@php
$today = \Illuminate\Support\Carbon::now();
$isOfferValid = $item->offer_enabled && $item->offer_price && $today->between($item->offer_start,
$item->offer_end);
@endphp
@if($isOfferValid)
{{ formatPriceWithCurrency($item->price) }}
{{ formatPriceWithCurrency($item->offer_price) }}
@else
{{ formatPriceWithCurrency($item->price) }}
@endif
@endforeach
{{ __('messages.t_subtotal') }}
{{ formatPriceWithCurrency($subtotal) }}
{{ __('messages.t_tax') }}
{{ formatPriceWithCurrency($tax) }}
{{ __('messages.t_total') }}
{{ formatPriceWithCurrency($total) }}
{{-- Exchange Rate --}}
@if ($this->defaultCurrency && $this->isDifferentRate)
{{ __('messages.t_total_including_exchange_rate') }}
{{ formatPriceWithCurrency($this->convertedTotal) }}
@endif