Order Products

Select products to add to your order. Minimum order amount: R500

@if (session('success')) @endif @if (session('error')) @endif

Your Cart

@if(count($cart) > 0)
@foreach($cart as $item) @endforeach
Product Price Quantity Subtotal Action
{{ $item['name'] }} R{{ number_format($item['price'], 2) }} {{ $item['quantity'] }} R{{ number_format($item['subtotal'], 2) }}
@csrf
Total: R{{ number_format($cartTotal, 2) }}

Your current balance: R{{ number_format(auth()->user()->balance, 2) }}

@csrf
@if($cartTotal < 500)

Minimum order amount is R500

@elseif(auth()->user()->balance < $cartTotal)

Insufficient balance

@endif
@else

Your cart is empty. Add products below to start your order.

@endif

Available Products

@foreach($products as $product)
{{ $product->name }}

{{ $product->name }}

{{ Str::limit($product->description, 150) }}

R{{ number_format($product->price, 2) }} Available: {{ $product->stock }}
@csrf
@endforeach