@extends('admin.layouts.app') @section('title', 'Project Gallery') @section('breadcrumb')
  • Projects
  • Project Gallery
  • @endsection @section('heading', 'Project Gallery') @section('subheading', 'Manage project images, renders, and media assets.') @section('actions') Add Project @endsection @section('content')
    @forelse($projects as $project) @php $firstImage = $project->images->first(); $imageUrl = $firstImage ? $firstImage->url : ($project->featured_image_url ?? null); $count = $project->images->count(); @endphp
    @if($imageUrl) {{ $project->title }} @else @endif

    {{ $project->title }}

    {{ $count }} image{{ $count !== 1 ? 's' : '' }}

    {{ $project->updated_at->format('d M Y') }}

    @empty

    No projects yet. Add one.

    @endforelse
    @if ($projects->hasPages())
    {{ $projects->links() }}
    @endif @endsection