@extends('layouts.account') @section('title', __('Photographs & files')) @section('heading', __('Photographs & files')) @section('subheading', $listing->title) @section('actions') {{ __('Back to the listing') }} @endsection @section('account') @if (session('error')) {{ session('error') }} @endif
{{-- Photographs. The first one becomes the cover unless another is chosen. --}}

{{ __('Photographs') }}

{{ __('The first photograph is the cover unless you choose another. Drag is not needed — use the arrows.') }}

{{ trans_choice('One slot left.|:count slots left.', $remaining['image'], ['count' => $remaining['image']]) }}

@if ($remaining['image'] > 0)
@csrf

{{ __('JPG, PNG or WebP, up to 5 MB each.') }}

@endif @if ($images->isEmpty()) @else
    @foreach ($images as $medium)
  • srcset()) srcset="{{ $srcset }}" sizes="(min-width: 640px) 320px, 100vw" @endif alt="{{ $medium->alt_text ?: $listing->title }}" loading="lazy" decoding="async" class="aspect-4/3 w-full object-cover"> @if ($medium->is_cover) {{ __('Cover') }} @endif
    @csrf @method('PUT')
    @unless ($medium->is_cover)
    @csrf
    @endunless
    @csrf @method('DELETE')

    {{ $medium->width }}×{{ $medium->height }} · {{ $medium->humanSize() }}

  • @endforeach
@endif

{{ __('Floor plans') }}

{{ __('Shown in their own section, separately from the photographs.') }}

@csrf
@if ($floorPlans->isNotEmpty()) @endif

{{ __('Video') }}

{{ __('Paste a YouTube or Vimeo link. Nothing is uploaded.') }}

@csrf
@error('embed_url')

{{ $message }}

@enderror
@if ($videos->isNotEmpty()) @endif
{{-- Documents. These are ownership papers and surveys: they are stored on a disk with no public URL and are only ever reachable through the download route, which checks the policy first. --}}

{{ __('Documents') }}

{{ __('Documents are private. They are never shown on the listing and never linked — only you and our team can open them.') }} @if ($remaining['document'] > 0)
@csrf

{{ __('PDF or Office documents, up to 20 MB each.') }}

@endif @if ($documents->isNotEmpty()) @endif
@endsection