@extends('base') @section('title') {{__('Custom Course Details')}} @endsection @section('content') @php use App\Enumerables\Currency; use App\VirtualCourse; /** * @var VirtualCourse $course */ $language = config('app.locale'); $currency = $_COOKIE['currency'] ?? Currency::GBP; $currencySign = ($currency == Currency::GBP) ? '£ ' : '¥ '; $isBasic = !$course->isAdvanced; $isDiscountedGBP = ($course->originalPricePound > $course->pricePound); $isDiscountedCNY = ($course->originalPriceChinese > $course->priceChinese); $isDiscounted = ($currency == Currency::GBP) ? $isDiscountedGBP : $isDiscountedCNY; $version = config('app.version'); @endphp
@if($language === 'en') {{ $course->courseName}} @else {{ $course->courseNameChinese }} @endif @if($language === 'en') {{ $course->description}} @else {{ $course->descriptionChinese }} @endif
@if($isDiscounted)
@if($isBasic) {{__('Service Deposit NOW')}} @else {{__('Service Charge NOW')}} @endif
@endif
@if($isBasic) {{__('Service Deposit')}}@if($isDiscounted){{__('Was')}}@endif @else {{__('Service Charge')}}@if($isDiscounted){{__('Was')}}@endif @endif
@if($currency == \App\Enumerables\Currency::GBP) {{$currencySign.number_format($course->pricePound, 2, ".", ",")}} @else {{$currencySign.number_format($course->priceChinese, 2, ".", ",")}} @endif @if($isDiscounted) @if($currency == \App\Enumerables\Currency::GBP) {{$currencySign.number_format($course->originalPricePound, 2, ".", ",")}} @else {{$currencySign.number_format($course->originalPriceChinese, 2, ".", ",")}} @endif @endif
@if($isBasic) {{__('Service deposit return_1')}} {{__('Service deposit return_2')}} {{__('Service deposit return_3')}} @endif
{{__('Virtual Course Application Fee')}}
{{__('UCAS application fee')}}
@if(\Illuminate\Support\Facades\Auth::check() && isset($productID))
{{__('Add to bag')}}
@else {{--
--}}
{{__('Add to bag')}}
@endif @if($randomStaffContact) {{__('Chat with Us')}} @endif
{{__('Service Introduction')}}
{{__('Virtual Course service description')}}
@php( $prices = explode(';', config('app.price_virtual_course_' . ($currencyString ?? ''))) )

{{$prices[0] ?? ''}}

{{$prices[1] ?? ''}}

{{$prices[2] ?? ''}}

@if(!empty($universities[0])) @include('catalog.course_details_components.partner_universities', ['isPartner'=>$isBasic]) @endif
@include('catalog.course_details_components.application_documents', ['language' => $language])
{{__('Service Features')}}
@if($language == 'en') @else @endif
@include('catalog.course_details_components.expense_description', ['lowPrice'=>$isBasic])
{{__('Service Process')}}
@if($language == 'en') @else @endif
@include('catalog.course_details_components.company_introduction')
@if($randomStaffContact) {{--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'=>__('Contact our experts') ]) {{--Sales QR code modal--}} @endif @include('modals.add_to_cart_validation_modal') @include('catalog.course_details_components.shared_scripts', ['bagRoute'=>route('addVirtualCourseToCart'), 'input'=>'number', 'loadMore'=>true]) @endsection