Shopping Cart

Review your items and proceed to checkout

@if (!empty($cart))
{{ count($cart) }} {{ count($cart) === 1 ? 'Item' : 'Items' }}
in your cart
@endif
@if (session('success'))
{{ session('success') }}
@endif @if (empty($cart))

Your Cart is Empty

Looks like you haven't added any items to your cart yet. Start shopping to fill it up!

Continue Shopping
@else

Cart Items

@php $total = 0; @endphp @foreach ($cart as $item) @php $subtotal = $item['price'] * $item['quantity']; $total += $subtotal; @endphp
{{ $item['name'] }}

{{ $item['name'] }}

@if(isset($item['game']) && $item['game']) @php // Get custom game styling if it exists $customGame = \App\Models\CustomGame::where('name', $item['game'])->first(); if ($customGame) { // Extract color from gradient for custom games $gradientParts = explode(' ', $customGame->color_gradient); $primaryColor = str_replace(['from-', '-500'], '', $gradientParts[0] ?? 'purple'); // Map to badge classes $badgeClasses = [ 'red' => 'bg-red-500/20 text-red-300 border-red-500/30', 'pink' => 'bg-pink-500/20 text-pink-300 border-pink-500/30', 'rose' => 'bg-rose-500/20 text-rose-300 border-rose-500/30', 'purple' => 'bg-purple-500/20 text-purple-300 border-purple-500/30', 'blue' => 'bg-blue-500/20 text-blue-300 border-blue-500/30', 'green' => 'bg-green-500/20 text-green-300 border-green-500/30', 'orange' => 'bg-orange-500/20 text-orange-300 border-orange-500/30', 'yellow' => 'bg-yellow-500/20 text-yellow-300 border-yellow-500/30', 'teal' => 'bg-teal-500/20 text-teal-300 border-teal-500/30', 'cyan' => 'bg-cyan-500/20 text-cyan-300 border-cyan-500/30', 'indigo' => 'bg-indigo-500/20 text-indigo-300 border-indigo-500/30', 'violet' => 'bg-violet-500/20 text-violet-300 border-violet-500/30', 'emerald' => 'bg-emerald-500/20 text-emerald-300 border-emerald-500/30' ]; $badgeClass = $badgeClasses[$primaryColor] ?? 'bg-purple-500/20 text-purple-300 border-purple-500/30'; $gameIcon = $customGame->icon; } else { // Default styling for main games $gameIcons = [ 'Genshin' => 'fas fa-star', 'Starrail' => 'fas fa-rocket', 'WutheringWave' => 'fas fa-wave-square', 'ZenlessZoneZero' => 'fas fa-city', 'Arknights' => 'fas fa-chess-knight', 'AzurLane' => 'fas fa-ship' ]; $gameColors = [ 'Genshin' => 'bg-yellow-500/20 text-yellow-300 border-yellow-500/30', 'Starrail' => 'bg-purple-500/20 text-purple-300 border-purple-500/30', 'WutheringWave' => 'bg-cyan-500/20 text-cyan-300 border-cyan-500/30', 'ZenlessZoneZero' => 'bg-red-500/20 text-red-300 border-red-500/30', 'Arknights' => 'bg-indigo-500/20 text-indigo-300 border-indigo-500/30', 'AzurLane' => 'bg-blue-500/20 text-blue-300 border-blue-500/30' ]; $badgeClass = $gameColors[$item['game']] ?? 'bg-gray-500/20 text-gray-300 border-gray-500/30'; $gameIcon = $gameIcons[$item['game']] ?? 'fas fa-gamepad'; } @endphp
{{ $item['game'] }}
@endif
Quantity: {{ $item['quantity'] }} Unit Price: ฿{{ number_format($item['price'], 2) }}
฿{{ number_format($subtotal, 2) }}
@csrf
@endforeach

Order Summary

Subtotal ({{ count($cart) }} items) ฿{{ number_format($total, 2) }}
Shipping Free
Tax ฿0.00
Total ฿{{ number_format($total, 2) }}

Checkout Information

@csrf
or drag and drop

PNG, JPG, GIF up to 10MB

@endif