@extends('layouts.nova')

@section('content')
<div class="container-fluid legacy-page">
    <div class="effect2 page-header-wrap">
        <header class="page-heading">
            <h1 class="page-header">Latest Artworks</h1>
            <p>List of recently uploaded Artworks - <strong>Skins</strong>, <strong>Photography</strong> and <strong>Wallpapers</strong>.</p>
        </header>
    </div>

    <div class="panel panel-default uploads-panel effect2">
        <div class="panel-body">
            <div class="gallery-grid">
                @if($artworks)
                    @foreach($artworks as $art)
                        <x-artwork-card :art="$art" />
                    @endforeach
                @else
                    <p class="text-muted">No artworks found.</p>
                @endif
            </div>
        </div>
    </div>

    <div class="paginationMenu text-center">
        @if($artworks){{ $artworks->withQueryString()->links('pagination::bootstrap-4') }}@endif
    </div>
</div>
@endsection
