@extends('admin.layouts.app') @section('title', 'Property Images') @section('breadcrumb')
  • Properties
  • Images
  • @endsection @section('heading', 'Property Images') @section('subheading', 'Browse and manage property image galleries.') @section('content')
    @if ($properties->isEmpty())

    No property images yet. Add images when creating or editing a property.

    Add Property
    @else
    @foreach ($properties as $property) @php $firstImage = $property->images->first(); $imageUrl = $firstImage ? $firstImage->url : null; $count = $property->images->count(); $location = $property->city ?: \Illuminate\Support\Str::limit($property->address ?? '—', 25); @endphp
    @if ($imageUrl) {{ $property->title }} @else
    @endif

    {{ $property->title }}

    ${{ number_format($property->price ?? 0) }}

    {{ $location }}

    {{ $count }} image{{ $count !== 1 ? 's' : '' }} · {{ $property->agent?->name ?? '—' }}

    @endforeach
    @if ($properties->hasPages())
    {{ $properties->links() }}
    @endif @endif @endsection