@extends($design . '.layouts.main') @section('title', $page_properties->title) @section('keywords', $page_properties->keyword) @section('description', $page_properties->description) @section('content')
@if ($product['id'] != 616) {{ $product['alt'] }} @else {{ $product['image'] }} @endif

{{ $product['name'] }}

@if ($product['id'] != 616)
@if (count($product['aktiv']) > 0) {!!__('text.product_active')!!} @foreach ($product['aktiv'] as $aktiv) {{ $aktiv['name'] }} @endforeach @endif
{!!__('text.product_pack1_1')!!} {{__('text.product_pack2_1')}}{{ random_int(10, 40) }}{{__('text.product_pack3_1')}}
@endif

{{ $product['desc'] }}

@if (count($product['disease']) > 0)
{{__('text.product_diseases')}} @foreach ($product['disease'] as $disease) {{ ucfirst($disease['name']) }} @endforeach
@endif @if (!empty($product['sinonim']))
{{ $product['name'] }} {!!__('text.product_others')!!} @foreach ($product['sinonim'] as $sinonim) @php $sinonim['url'] = str_replace('.', ',', $sinonim['url']); @endphp {{ $sinonim['name'] }} @endforeach
@endif
@foreach ($product['packs'] as $key => $dosage) @php $prev_dosage = 0; @endphp @foreach ($dosage as $item) @if ($loop->last) @continue @endif @if ($loop->iteration != 1 && $key != $prev_dosage) @endif @if ($key != $prev_dosage)

{{-- {$data.product_info.name}{if !$data.product_info.name|strstr:"Pack"} {$cur_product_packaging.dosage}{/if}{if $smarty.foreach.product_dosages.iteration == 1 && $data.product_info.rec_name != 'none'}, {#need_more#} {$data.product_info.rec_name} {/if} --}} @if ($product['id'] != 616) {{ "{$product['name']} $key" }} @else {{ $product['name'] }} @endif

{{__('text.product_package_title')}} {{__('text.product_price_per_pill_title')}} {{__('text.product_price_title')}}
@php $prev_dosage = $key; @endphp @endif
{{ "{$item['num']} {$product['type']}" }} @if ($item['price'] >= 300) {{__('text.cart_free_express')}} @elseif($item['price'] < 300 && $item['price'] >= 200) {{__('text.cart_free_regular')}} @endif
{{ $Currency::convert(round($item['price'] / $item['num'], 2), false, true) }}
@if ($loop->remaining != 1 && $product['id'] != 616)
{{ $Currency::convert($dosage['max_pill_price'] * $item['num']) }} -{{ ceil(100 - ($item['price'] / ($dosage['max_pill_price'] * $item['num'])) * 100) }}% {!!__('text.product_only')!!} {{ $Currency::convert($item['price']) }}
@else
{{ $Currency::convert($item['price']) }}
@endif
@csrf
@endforeach
@endforeach @if ($product['full_desc'])
{!! $product['full_desc'] !!}
@endif @if ($product['id'] == 616)

{{__('text.gift_card_title')}}

  1. {{__('text.gift_card_text1')}}
  2. {{__('text.gift_card_text2')}}

@endif @endsection