@extends('admin.layouts.app')
@section('title', 'Property Images')
@section('breadcrumb')
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)

@else
@endif
{{ $property->title }}
${{ number_format($property->price ?? 0) }}
{{ $location }}
{{ $count }} image{{ $count !== 1 ? 's' : '' }} ·
{{ $property->agent?->name ?? '—' }}
@endforeach
@if ($properties->hasPages())