@php $statusColors = ['available' => 'emerald', 'listed' => 'blue', 'pending' => 'amber', 'owned' => 'gray']; @endphp
{{-- ─── Header ──────────────────────────────────────────────────────────── --}}

NFT Marketplace

Buy digital collectibles, or list the ones you own for resale.

Balance ${{ number_format($user->bal ?? 0, 2) }}
{{-- ─── Tabs ────────────────────────────────────────────────────────────── --}}
{{-- ═══════════════════ MARKETPLACE ═══════════════════ --}}
@if($marketplace->isEmpty()) @else
@foreach($marketplace as $nft) @php $owned = $nft->owner_id === $user->id; $canAfford = ($user->bal ?? 0) >= $nft->price; @endphp
{{ $nft->name }} {{ $nft->owner_id ? 'Resale' : 'Official' }}

{{ $nft->name }}

{{ $nft->collection ?? 'NFT' }}

by {{ $nft->seller_name }}

Price

${{ number_format($nft->price, 2) }}

@if($owned) Your listing @else @endif
@unless($owned) {{-- Buy confirmation modal --}}

Confirm purchase

{{ $nft->name }}

{{ $nft->name }}

{{ $nft->collection ?? 'NFT' }}

by {{ $nft->seller_name }}

Price ${{ number_format($nft->price, 2) }}
Your balance ${{ number_format($user->bal ?? 0, 2) }}
@unless($canAfford)

Insufficient balance. Please deposit funds to buy this NFT.

@endunless
@csrf
@endunless
@endforeach
@if($marketplace->hasPages())
{{ $marketplace->links() }}
@endif @endif
{{-- ═══════════════════ MY NFTS ═══════════════════ --}}
@if($myNfts->isEmpty()) @else
@foreach($myNfts as $nft) @php $s = $nft->status->value; @endphp
{{ $nft->name }} {{ $nft->status->label() }}

{{ $nft->name }}

{{ $nft->collection ?? 'NFT' }}

@if($nft->listing_note)

Rejected: {{ $nft->listing_note }}

@endif
{{ in_array($s, ['pending', 'listed']) ? 'Asking' : 'Last price' }} ${{ number_format($nft->price, 2) }}
@if($s === 'owned') @elseif(in_array($s, ['pending', 'listed'])) @endif
{{-- List-for-sale modal --}}

List "{{ $nft->name }}" for sale

Set your asking price. An admin reviews the listing before it goes live on the marketplace.

@csrf
{{-- Cancel-listing confirmation modal --}}

{{ $s === 'pending' ? 'Cancel listing request?' : 'Remove from marketplace?' }}

"{{ $nft->name }}" will return to your collection and will no longer be {{ $s === 'pending' ? 'pending admin review' : 'listed for sale' }}.

@csrf
@endforeach
@if($myNfts->hasPages())
{{ $myNfts->links() }}
@endif @endif