@extends('layout.app') @section('content') @php($uploadType = $roomType ? 'roomType' : 'property') @php($typeId = $roomType ? $roomType->id : $property->id)

{{ $roomType ? $roomType->roomType.' photos' : 'Property photos' }} {{ $property->property_name }}

All galleries
Property @foreach($roomTypes as $item) {{ $item->roomType }} @endforeach

Gallery ({{ $photos->count() }})

Drag photos to change their order (on a phone, press and hold, then drag), or use the arrows. The order is saved automatically. The first photo is the cover shown in search results. @if($roomType) This gallery is shared by all your properties that offer this room type. @endif

@if($photos->isEmpty())

No photos yet. Upload some below.

@else @php($untagged = $photos->whereNull('tag')->count()) @if($untagged)
{{ $untagged }} photo(s) have no category yet. Choose what each one shows using the list under the photo.
@endif {{-- Show one category at a time; reordering works when all photos are shown --}}
@foreach($tags as $key => $label) @php($count = $photos->where('tag', $key)->count()) @if($count) @endif @endforeach @if($untagged) @endif
@endif

Upload photos

JPG, PNG or WebP, up to 10 MB each and 20 at a time. Photos are resized automatically. New photos are added at the end. Upload one kind of photo at a time (for example all the {{ $roomType ? 'bathroom' : 'pool' }} photos), or change a photo's category later.

Drop images here or click to choose

@stop @section('styles') @stop @section('scripts') @stop