@extends('admin.layout')
@section('title', 'Detail Produk - ' . $product->name)
@section('content')
{{ $product->is_active ? 'Aktif' : 'Nonaktif' }}
{{ $product->category?->name ?? 'Tanpa kategori' }}
@if ($product->is_featured)
Pilihan Homepage
@endif
{{ $product->name }}
{{ filled($product->description) ? $product->description : 'Belum ada deskripsi produk.' }}
Buka halaman produk di storefront ↗
{{ $product->hasVariants() ? 'Harga Mulai' : 'Harga' }}
Rp {{ number_format($product->salePrice(), 0, ',', '.') }}
Tipe Stok
{{ $product->stockTypeLabel() }}
Fulfillment
{{ $product->fulfillmentLabel() }}
Total Order
{{ number_format($product->orders_count, 0, ',', '.') }}
Stok Tersedia
@if ($product->type === 'manual')
Manual
@else
{{ number_format($availableStock, 0, ',', '.') }} {{ $product->usesRobuxBalance() ? 'Robux' : strtolower($product->unitLabel()) }}
@endif
Lewat 5 Hari
@if ($product->usesUniqueStock())
{{ number_format($staleStock, 0, ',', '.') }} item
@else
Tidak berlaku
@endif
Configuration
Konfigurasi Produk
ID Publik{{ $product->public_id }}
Slug{{ $product->slug }}
Kebijakan Biaya Legacy{{ $product->fee_payer === 'buyer' ? 'Pembeli' : 'Toko' }}
Gateway Aktif{{ match($activePaymentGateway) { 'belibayar' => 'Belibayar', 'binderpay' => 'BinderPay', 'dompetx' => 'DompetX (legacy)', default => 'Pakasir (legacy)' } }}
Batas Isi Ulang{{ number_format($product->low_stock_threshold, 0, ',', '.') }}
@if ($product->type === 'manual')
Ketersediaan Manual{{ $product->is_stock_available ? 'Tersedia' : 'Habis' }}
@endif
Delivery Data
Field Pengiriman
@if ($product->requiresManualFulfillment())
Produk ini diproses langsung oleh admin dan tidak memakai payload stok otomatis.
@elseif (filled($product->delivery_schema))
@foreach ($product->delivery_schema as $field)
{{ ucwords(str_replace('_', ' ', $field)) }}
@endforeach
@else
Belum ada field pengiriman yang dikonfigurasi.
@endif
@if ($product->variants->isNotEmpty())
Variants
{{ $product->variant_option_name ?: 'Variant Produk' }}
@foreach ($product->variants as $variant)
{{ $variant->name }}@if ($variant->description) · {{ $variant->description }}@endif
@if ($product->usesRobuxBalance()){{ number_format($variant->robux_amount, 0, ',', '.') }} Robux · @endif Rp {{ number_format($variant->price, 0, ',', '.') }} · {{ $variant->is_active ? 'Aktif' : 'Nonaktif' }}
@endforeach
@endif
@if (!empty($product->checkout_schema))
Checkout Data
Field Checkout Tambahan
@foreach (collect($product->checkout_schema)->filter(fn ($field) => is_array($field)) as $field)
{{ $field['label'] ?? $field['key'] }}
{{ ($field['required'] ?? true) ? 'Wajib' : 'Opsional' }} · {{ $field['type'] ?? 'text' }}
@endforeach
@endif
@if ($product->orders->isEmpty())
Belum ada order untuk produk ini.
@else
@endif
@endsection