@extends('base')
@section('title', __('Translation Product'))
@section('content')
@php
use App\Enumerables\Currency;
use Illuminate\Support\Facades\Auth;
$version = config('app.version');
$language = config('app.locale');
$currency = $_COOKIE['currency'] ?? Currency::GBP;
$currencySign = ($currency == Currency::GBP) ? '£' : '¥';
$auth = Auth::check();
@endphp
@include('translation::layouts.components.product.product_config')
@foreach($translationModules as $module)
@if($module->type == TranslationModuleTypes::BARCHART)
@include('translation::layouts.components.product.product_promo', ['module'=>$module])
@continue
@endif
@if($module->type == TranslationModuleTypes::DOTS3)
@foreach($module->three_dots as $dot)
@include('translation::layouts.components.product.product_highlight', ['dot'=>$dot])
@endforeach
@continue
@endif
@if($module->type == TranslationModuleTypes::CAROUSEL)
@include('translation::layouts.components.product.product_carousel', ['carousels'=>$module->carousel])
@continue
@endif
@if($module->type == TranslationModuleTypes::GRAPHIC)
@include('translation::layouts.components.product.product_details', [
'mmGraphics'=>$module->graphics,
'showTitle'=>!empty($module->titleFiled)
])
@continue
@endif
@if($module->type == TranslationModuleTypes::AUTOSCROLLING)
@foreach($module->auto_scrolling as $scroll)
@include('translation::layouts.components.product.product_review', ['scroll'=>$scroll])
@endforeach
@endif
@endforeach
{{--Consulte Us QR code modal--}}
@include('common.modals.contents.qr_modal', [
'header'=>__('Signed up successfully_2'),
'image'=>$randomStaffContact->wechatQR ?? (config('locations.systemImage.asset').'QRWechat.jpg'.'?'.$version),
'subText'=>__('chat-with-consultant')
])
{{--Sales QR code modal--}}
@include('modals.add_to_cart_validation_modal')
@endsection