{{ $product->name }}

@if($product->images->count() > 0)
@foreach($product->images->take(4) as $index => $image) {{ $product->name }} @endforeach @if($product->images->count() > 1)
@foreach($product->images->take(4) as $index => $image) @endforeach
@endif
@else

No images available

@endif
{{ $product->category->label() }}

{{ $product->name }}

{{ format_price($product->price, $product->currency) }}

@if($product->stock_quantity > 0) In Stock ({{ $product->stock_quantity }} available) @else Out of Stock @endif
@if($product->merchant?->isAdmin() && $product->stock_quantity > 0) {{-- Admin-owned product: Order flow --}}
@auth
@csrf
@else Sign in to Order @endauth
@endif @if($product->brand || $product->condition)
@if($product->brand)

Brand

{{ $product->brand }}

@endif @if($product->condition)

Condition

{{ ucfirst($product->condition) }}

@endif
@endif

Description

{!! nl2br(e($product->description)) !!}
@if($product->specifications && count($product->specifications) > 0)

Specifications

@foreach($product->specifications as $key => $value)
{{ $key }} {{ $value }}
@endforeach
@endif @if($product->merchant)

Sold By

@if($product->merchant->isAdmin()) Phantom 5 @elseif($product->merchant->avatar) {{ $product->merchant->name }} @else
{{ substr($product->merchant->name, 0, 1) }}
@endif

{{ $product->merchant->isAdmin() ? 'Phantom 5 Merchant' : ($product->merchant->merchantProfile->business_name ?? $product->merchant->name) }}

{{ $product->merchant->isAdmin() ? 'Official Store' : 'Verified Merchant' }}

@php $productAddress = $product->merchant->merchantProfile->business_address ?? $product->merchant->address ?? null; $productPhone = $product->merchant->merchantProfile->business_phone ?? $product->merchant->phone ?? null; @endphp @if($productAddress)
{{ $productAddress }}
@endif @if($productPhone) Call Merchant Chat on WhatsApp @endif
@endif
@if(isset($relatedProducts) && $relatedProducts->count() > 0) @endif