@if($product->activeItemPrices->isNotEmpty())

@lang('ecommerce::product_page.service_prices')

@foreach($product->activeItemPrices as $itemPrice) @php $typeServiceName = $itemPrice->type_service?->name; $typeServiceLabel = match ($typeServiceName) { 'default', 'with_delivery' => __('admin::home.with_delivery'), 'without_delivery' => __('admin::home.without_delivery'), null => '-', default => \Illuminate\Support\Facades\Lang::has('admin::home.' . $typeServiceName) ? __('admin::home.' . $typeServiceName) : $typeServiceName, }; $hasServicePrice = is_numeric($itemPrice->price) && (float) $itemPrice->price > 0; $displayPrice = $hasServicePrice ? (float) $itemPrice->price : null; @endphp

{{ $typeServiceLabel }}

@lang('ecommerce::ecommerce.provided_by_store'): @if($product->merchant) {{ $product->merchant->getTranslation('company_name', app()->getLocale()) ?: $product->merchant->name }} @else {{ __('ecommerce::ecommerce.site_name') }} @endif

@lang('ecommerce::ecommerce.product_price_for_option'): @if($displayPrice !== null) {{ \App\Domain\AppBase\Models\Setting\Currency::format($displayPrice) }} @else @lang('ecommerce::ecommerce.price_not_specified') @endif

@endforeach
@endif