@extends('admin.layouts.app') @section('title', '권종 관리') @section('page_title', '권종 관리') @section('page_desc', '상품별 권종/가격(SKU)을 관리합니다.') @section('content_class', 'a-content--full') @push('head') @endpush @section('content') @php $filters = $filters ?? []; $catId = (string)($filters['category_id'] ?? ''); $prdId = (string)($filters['product_id'] ?? ''); $stSel = (string)($filters['status'] ?? ''); $q = (string)($filters['q'] ?? ''); $statusPill = function(?string $st): string { $st = (string)($st ?? ''); return match($st) { 'active' => 'pill--ok', 'hidden' => 'pill--bad', default => 'pill--muted', }; }; $statusLabel = function(?string $st): string { $st = (string)($st ?? ''); return match($st) { 'active' => '노출', 'hidden' => '숨김', default => $st ?: '-', }; }; $stockLabel = function(?string $m): string { $m = (string)($m ?? ''); return match($m) { 'infinite' => '무한', 'limited' => '한정', default => $m ?: '-', }; }; @endphp
권종관리
상품별 권종/가격(SKU)을 관리합니다.
+ 권종 등록
초기화
{{ $page->total() }}
@forelse($page as $row) @php $id = (int)($row->id ?? 0); $st = (string)($row->status ?? ''); $pill = $statusPill($st); $stText = $statusLabel($st); $pname = (string)($row->product_name ?? '-'); $c1 = (string)($row->parent_category_name ?? ''); $c2 = (string)($row->category_name ?? ''); $catText = trim($c1) !== '' ? ($c1.' / '.$c2) : ($c2 ?: '-'); $face = (int)($row->face_value ?? 0); $normal = (int)($row->normal_price ?? 0); $rate = (string)($row->discount_rate ?? '0.00'); $sale = (int)($row->sale_price ?? 0); $smode = $stockLabel($row->stock_mode ?? null); $updated = $row->updated_at ?? '-'; @endphp @empty @endforelse
ID 상품 권면가 정상가 할인율 판매가 재고방식 상태 수정일 관리
{{ $id }}
{{ $pname }}
{{ $catText }}
@if(!empty($row->sku_code))
{{ $row->sku_code }}
@endif
{{ number_format($face) }} {{ number_format($normal) }} 원 {{ $rate }}% {{ number_format($sale) }} {{ $smode }} ● {{ $stText }} {{ $updated }} 수정
데이터가 없습니다.
{{ $page->onEachSide(1)->links('vendor.pagination.admin') }}
@endsection