@extends("common.layout") @php $page_title = $pageServiceName . ' 상품 ' . ($product?->id ? '상세보기 ('.$product->id.')' : '등록'); $optionTypes = !empty($product) ? explode("|", $product->option_types) : ['course', 'feedback', 'cdt', 'textbook', 'etc']; @endphp {{-- @section('page-title', $page_title) --}} @section("header") @if (isset(config('system.cdt_provide_types')[$service])) @endif {!! resource('css/form.css') !!} {!! resource('js/form.js') !!} {!! resource('js/product/product-detail.js') !!} @endsection @section("content")
@csrf

{{ $page_title }}
@if ($product?->id) @if ($User->is->admin) @endif {{-- --}} @endif

기본정보
@if ($product?->id)
{{ $product?->id }}
@endif
@php $maxLength = $service == 'ielts' ? 20 : 15; @endphp
sales_type == "판매") onchange="changeSalesType()">
sales_type == "지급") onchange="changeSalesType()">
@php if (isset($product->module)) $modules = explode('|', $product->module); else $modules = []; @endphp @foreach (config('system.modules') as $key => $module)
@endforeach
@if (isset($productCategories[$service])) @foreach ($productCategories[$service] as $key => $productCategory)
productCategories->contains($productCategory->id)) onchange="changeCategory(event)"> @if ($productCategory->productSubCategories->count()>0) @endif
@endforeach @endif
@if ($service == 'ielts')
@endif @if ($User->is->admin)
@else @foreach($optionTypes as $optionType) @endforeach @endif
상세정보
@if($service=='ielts')
@endif
@if ($product?->details_file) {{ $product->details_file }} @endif
전시
is_sellable == 1)>
is_visible == 1)>
visible_start_date ?? " ")[0] }}"> visible_end_date ?? " ")[0] }}" @disabled(!$product || !(!$product->visible_end_date_disabled))>
visible_end_date_disabled) onchange="changeActivatedStatus()">
@if ($product?->is_visible === 0 && $product?->invisibled_at) @endif
@if($service == 'ielts')
is_refundable == 1)>
is_pausable == 1)>
is_extensible == 1)>
is_extensible != 1)>
@endif @if($service == 'academy')
오픈 예약
@if ($product?->opening_reservation_type) @php $reservationType = null; foreach ($productReservationTypes as $type) { if ($type['name'] == $product->opening_reservation_type) { $reservationType = $type; break; } } @endphp @if (isset($reservationType['type'])) @if ($reservationType['type'] == "select") @endif @if ($reservationType['type'] == "date") opening_reservation_value < now())> @endif @if ($reservationType['type'] == "number") @endif @endif @endif
마감 예약
@if ($product?->closing_reservation_type) @php $reservationType = null; foreach ($productReservationTypes as $type) { if ($type['name'] == $product->closing_reservation_type) { $reservationType = $type; break; } } @endphp @if (isset($reservationType['type'])) @if ($reservationType['type'] == "select") @endif @if ($reservationType['type'] == "date") closing_reservation_value < now())> @endif @if ($reservationType['type'] == "number") @endif @endif @endif
@endif
@foreach ($promotionFlags as $code => $color) promotion_flag == $code)> @endforeach
@if($service == 'academy')
@endif
전시 썸네일
드래그를 통해 순서 변경이 가능하며 첫번째 이미지가 대표 이미지가 됩니다.
@foreach ($product?->productThumbnails ?? [] as $productThumbnail) @if($productThumbnail->id)
id, 3600, fn () => app(\S3Helper::class)->getPublicUrl($productThumbnail->s3_key)) }}">
@endif @endforeach
* 파일 형식 : jpg, jpeg, png / 권장 이미지 사이즈 : 512*344
{{-- Options --}}
@if ($product) @foreach ($product->productOptions as $productOption) @endforeach @endif
{{-- History --}} @if ($product?->id)
History
@php $logs = $product->getParsingLogs() ?? []; @endphp @forelse ($logs as $key => $log) @empty @endforelse
번호 일시 모듈 상품명 전시 구분 판매 상태 카테고리 썸네일 담당자명
{{ $log->row_number }} @if (isset($log->created_at)) {{ explode(" ", $log->created_at)[0] }} {{ explode(" ", $log->created_at)[1] }} @else - @endif {{ $log->module }} {{ $log->name }} @if ($log->is_visible == 1) 전시 @else 비전시 @endif @if ($log->is_sellable == 1) 판매오픈 @else 판매마감 @endif @if (isset($logs[$key - 1]) && $logs[$key - 1]->product_categories != $log->product_categories) 변경 @else - @endif @if ($log->product_thumbnails) {{ last(explode('/', $log->product_thumbnails[0]->s3_key ?? '')) }} @else - @endif {{ $log->created_by }}
No data.
@endif
@endsection @push("script") @endpush