@extends("common.layout") @php $page_title = $service=='ielts' ? '인강 상품 오픈/마감 관리' : '어학원 상품 오픈/마감 관리'; @endphp @section('page-title', $page_title) @section("header") {!! resource('js/common/tomSelectAllCheck.js') !!} {!! resource('js/product/activation-management.js') !!} @endsection @section("content")

{{ $page_title }}

@csrf
@csrf
{{ $products->total() }}
{!! \BaseHelper::sortHead('번호', 'id', 'text-end') !!} {!! \BaseHelper::sortHead('상품/옵션명', 'name', 'text-start') !!} {!! \BaseHelper::sortHead('등록일', 'created_at') !!} @if ($service == 'academy') @endif @if ($service == 'academy') @endif @foreach ($products as $product) @php $visible = $product->is_visible ?? null; $sellable = $product->is_sellable ?? null; $expired = $product->is_expired ?? null; @endphp empty($visible), 'provision' => $product->sales_type == '지급'])> @if ($service == 'academy') @endif @endforeach
상품 모듈 카테고리 GNB 할인 쿠폰 구매혜택 최저옵션가 상품판매오픈예약 마감예약
전체 일괄 적용할 값을 선택 및 입력 후 적용할 옵션들을 목록에서 체크하여 상단의 적용 버튼 선택 시 일괄 적용 가능합니다.
{{ $product->id }} {{ $product->name }} {{ $product->sales_type }} @if($product->is_refundable) 환급 @endif {{ $product->module }} {{ $product->productCategories?->implode("name", ", ") ?? "-" }} @if($expired) @else {!! $visible ? '' : '' !!} @endif @if (isset($product->created_at)) {{ explode(" ", $product->created_at)[0] }} @else - @endif {!! !empty($product->productOptions->firstWhere("is_discounted", 1)) ? '' : "" !!} {!! $product->has_coupon ? '':'' !!} {!! $product->has_benefitable ? '':'' !!} {{ number_format($product->min_price) }}
@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
@endsection