@extends('layouts.app') @php $plainProductDescription = trim(preg_replace( '/\s+/', ' ', strip_tags((string) $product->description) )); $productMetaDescription = \Illuminate\Support\Str::limit( $plainProductDescription !== '' ? $plainProductDescription : 'Beli ' . $product->name . ' dengan proses yang aman dan praktis di GTGStore.', 155 ); $isRobux = $product->usesRobuxBalance(); $isManualFulfillment = $product->requiresManualFulfillment(); $showPublicStockCount = ! $product->hidesPublicStockCount(); $hasVariants = $product->activeVariants->isNotEmpty(); $currentVariant = $hasVariants ? $selectedVariant : null; $currentPrice = (int) ($currentVariant?->price ?? $product->price); $currentOutOfStock = $product->isOutOfStock($currentVariant); $currentStockCount = $product->availableStockCount($currentVariant); $checkoutFields = collect($product->checkout_schema ?? [])->filter( fn ($field) => is_array($field) && filled($field['key'] ?? null) )->values(); @endphp @section('title', $product->name . ' - GTGStore') @section('description', $productMetaDescription) @section('canonical', route('storefront.show', $product->public_id)) @section('content')
Kembali ke katalog
@if ($product->image_path) {{ $product->name }} @else
{{ $product->name[0] ?? 'G' }}
@endif
{{ $currentOutOfStock ? 'Stok Habis' : 'Stok Tersedia' }} @if ($showPublicStockCount) {{ $currentOutOfStock ? 0 : $currentStockCount }} @endif
@if ($isManualFulfillment) Manual Admin @else Instan @endif {{ $currentOutOfStock ? 'Stok Habis' : 'Stok Tersedia' }} @if ($showPublicStockCount) {{ $currentOutOfStock ? 0 : $currentStockCount }} @endif

{{ $product->name }}

Rp {{ number_format($currentPrice, 0, ',', '.') }} @if ($product->isBatchable()) @endif
Detail Produk
{{ \Illuminate\Support\Str::limit(preg_replace('/(?:\r\n|\r|\n){2,}/', "\n", trim((string) $product->description)), 250) }}

Syarat & Ketentuan

Mohon dibaca sebelum melanjutkan pembayaran.

  • Wajib membaca deskripsi produk dengan teliti sebelum melakukan pembelian.
  • Produk yang sudah dibeli dan diproses tidak dapat dikembalikan (Non-Refundable).
  • Garansi berlaku penuh sesuai dengan durasi yang dipilih saat pembelian. ( hanya akan aktif untuk produk yang bergaransi )
  • Untuk produk akun, dilarang mengubah data sensitif (Email/Password) kecuali diizinkan.
  • Jika terjadi kendala, segera hubungi admin dengan menyertakan Invoice ID.
@endsection