@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
| 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 }} | 수정 |
| 데이터가 없습니다. | |||||||||