@php $prefix = ""; if ( $product?->details_file ) { $fileUrls = explode("/", $product?->details_file); $prefix = end($fileUrls); $prefix = str_replace(".html", "", $prefix); } $promotionFlags = config('edmclass.promotion_flags'); @endphp @extends($service.'.layout') @section('page-title', "상품 상세: ".$product?->name) @section($service.'-css') {!! resource('css/common/promotion.css') !!} {!! resource("css/components/calendar.css") !!} @endsection @section("progress") @include('progress') @endsection @section($service."-content")

상품

@if (!empty($product->thumbnail))
@endif @if(!empty($product->benefit)) @endif
{{--상세정보--}}
@if ($product?->details_file) @php $html = app(S3Helper::class)->download($product->details_file); @endphp {!! $html !!} @endif
{{--유의사항--}}
{!! $product->notes !!}
@if ($service == 'ielts') {{--강좌목록--}}
Listening Reading Writing Speaking
@foreach ($courses as $course)

{{ $course->name }}

    @foreach ($course->lectures->where('activated', 1) as $lecture)
  • {{ $lecture->name }}

  • @endforeach
@endforeach
@endif
@if ($service == 'academy')

강의일정

일정 상세
@endif

교재안내

@foreach ($textbooks as $textbook)

{{ $textbook->name }}

@endforeach

강사진

@foreach($teachers as $teacher)
@foreach ($teacher['subjects'] as $subject) @endforeach

{{ $teacher['name'] }}

@endforeach
@if ($service == 'ielts')

추가구성

    @if ($basicFeedbackCount>0)
  • 첨삭

    Basic 첨삭 {{ $basicFeedbackCount }}회
  • @endif @if ($premiumFeedbackCount>0)
  • 첨삭

    Premium 첨삭 {{ $premiumFeedbackCount }}회
  • @endif @if ($cdtCount>0)
  • CDT

    CDT모의고사
    풀패키지 {{ $cdtCount }}회 제공
  • @endif @if ($etcCount>0)
  • 기타

    영국문화원 IELTS
    시험응시권 포함
  • @endif
@if ($recommends->count() > 2) @endif @endif

유의사항

{!! $product->notes !!}
@if ($service == 'academy') @include("common.popup.consult" ) @endif
{{--
{{ $product?->promotion_flag_word }}
--}}
{{ $product?->promotion_flag_word }}

{{ $product?->name }}

@php $modules = explode("|", $product->module); @endphp @if (count($modules) == 1)

모듈

@else

모듈선택

@error('module') 모듈을 선택해 주세요 @enderror
@endif
@error('product_option_id') 상품을 선택해 주세요 @enderror
    @foreach($product->productOptions as $option) @php $courses = $option->courses->where('activated', 1); $courseCount = $courses->count(); @endphp
  • {{ $option->name }} ({{ $option->period }}일)

    @php $dr = explode("|", $option->discount_rate); $discountRate = isset($dr[1]) ? $dr[1] : $dr[0]; @endphp {{ $discountRate ? number_format($discountRate) : 0 }}%

    {{ number_format($option->consumer_price) }}

    {{ $option->is_discounted && $option->isInDiscountPeriod() ? number_format($option->discount_price) : number_format($option->sales_price) }}

    @if ($service == 'ielts')

    구성강의 총 {{ $courseCount }}건 @if ($courseCount>1)({{ $courses->first()->name }} 외 {{ $courseCount - 1 }}개)@endif

    @if ($option->feedbackPasses->where('activated', 1)->where('type', 'Basic')->count() > 0)

    Basic 첨삭 {{ $option->feedbackPasses->where('activated', 1)->where('type', 'Basic')->count() }}회

    @endif @if ($option->feedbackPasses->where('activated', 1)->where('type', 'Premium')->count() > 0)

    Premium 첨삭 {{ $option->feedbackPasses->where('activated', 1)->where('type', 'Premium')->count() }}회

    @endif @if ($option->cdtPasses->where('activated', 1)->count() > 0)

    CDT모의고사 풀패키지 {{ $option->cdtPasses->where('activated', 1)->count() }}회 제공

    @endif @if ($option->etcProducts->where('activated', 1)->where('etc_product_type', '응시권')->count() > 0)

    응시권 {{ $option->etcProducts->where('activated', 1)->where('etc_product_type', '응시권')->count() }}회

    @endif
    @endif
    @if ($option->textbooks->where('activated', 1)->count() > 0)

    구성 교재 총 {{ $option->textbooks->where('activated', 1)->count() }}권

    @endif @if ($option->bonus_items) @php $bonus_items = explode("|", $option->bonus_items); @endphp @foreach ($bonus_items as $bonus)

    {{ isset(config("edmclass.bonus_items")[$service][$bonus]) ? config("edmclass.bonus_items")[$service][$bonus]['title'] : $bonus }}

    @endforeach @endif
    @if ($service == 'ielts')

    수강시작일

    {{ now()->addDays($option->enrollment_start_day)->format('Y년 m월 d일') }} 예정

    @endif
  • @endforeach

결제금액

@endsection @section($service.'-script') {!! resource('js/common/promotion.js') !!} @if ( $service == 'academy' ) {!! resource('js/components/calendar.js') !!} {!! resource('js/academy/schedule.js') !!} @endif @error("overlay_refundable") @enderror @endsection