@extends("common.layout") {{-- @section('page-title', $page_title) --}} @section("header") {!! resource('js/common/tomSelectAllCheck.js') !!} @endsection @section("content")

{{ $pageServiceName }} 상품 목록

@csrf
@php $disable_sort = true; if (Request::has('categories') && is_array(Request::get('categories')) && count(Request::get('categories')) ==1 && Request::get('is_sellable') == 1) { $disable_sort = false; } @endphp
{{ $products->total() }}
@if ($disable_sort === false) @endif @if ($disable_sort === false) @endif {!! \BaseHelper::sortHead('번호', 'id', 'align-right') !!} {!! \BaseHelper::sortHead('등록일', 'created_at') !!} {!! \BaseHelper::sortHead('상품명', 'name', 'text-start') !!} @forelse ($products as $product) empty($product->is_visible), 'provision' => $product->sales_type == '지급'])> @if ($disable_sort === false) @endif @php $tmpOption = $product->productOptions->sortBy(fn ($option, $key) => $option->is_discounted ? $option->discount_price : $option->sales_price)->first(); @endphp @empty @endforelse
상품 모듈 GNB 판매 카테고리 상품옵션 최저 옵션가 할인 쿠폰 구매혜택 미리보기
{{ $product->id }} @if (isset($product->created_at)) {{ explode(" ", $product->created_at)[0] }} @else - @endif {{ $product->sales_type }} @if($product->is_refundable) 환급 @endif {{ $product->module }} @if ($product->is_expired) @else {!! $product->is_visible == 1 ? '' : '' !!} @endif {{ $product->is_sellable == 1 ? "판매중" : "마감" }} {{ $product->productCategories?->implode("name", ", ") ?? "-" }} {{ str_replace('|', ', ', $product->option_types) }} {{ $product->name }} @if ($tmpOption) {{ $tmpOption->is_discounted ? number_format($tmpOption->discount_price) : number_format($tmpOption->sales_price) }} @endif {!! !empty($product->productOptions->firstWhere("is_discounted", 1)) ? '' : "" !!} {!! $product->has_coupon ? '':'' !!} {!! $product->has_benefitable ? '':'' !!}
No data.
@endsection @push("script") @endpush