@extends('layouts.admin') @section('title',$property->title) @section('heading','Property operations') @section('content')

{{ $property->title }}

{{ $property->type?->name }} · {{ $property->city }} · {{ ucfirst($property->purpose) }}

Back
Status{{ ucfirst($property->status) }}
Price{{ number_format((float)$property->price,2) }}per {{ $property->pricing_period }}
Capacity{{ $property->max_guests }} guests{{ $property->bedrooms }} beds · {{ $property->bathrooms }} baths
Reports{{ $reports->where('status','open')->count() }}open

Listing

{{ $property->description }}

Address: {{ $property->address }}, {{ $property->city }}, {{ $property->state }} {{ $property->country }}

Provider

{{ $property->vendor?->name }}
{{ $property->vendor?->owner?->name }}
{{ $property->vendor?->owner?->email }}

Stay policies

Check-in/out: {{ $property->check_in_time }} / {{ $property->check_out_time }}

Length: {{ $property->minimum_stay }}–{{ $property->maximum_stay }} nights

{{ $property->house_rules ?: 'No house rules supplied.' }}

Classification

@csrf @method('put')
Amenities
@foreach($amenities as $amenity)@endforeach

Gallery ({{ $property->media->count() }}/12)

@csrf
@foreach($property->media as $media)
Property gallery image
@csrf @method('put')
@csrf @method('delete')
@endforeach

Availability

@csrf
@forelse($property->blocks as $block)@empty@endforelse
FromUntilReason
{{ $block->starts_on }}{{ $block->ends_on }}{{ $block->reason }}
@csrf @method('delete')
No blocked periods.

Customer reports

@forelse($reports as $report)

{{ $report->reason }} · {{ $report->reporter_name }} ({{ $report->reporter_email }}) · {{ ucfirst($report->status) }}

{{ $report->details }}

@csrf
@empty

No customer reports.

@endforelse
@php($next=['draft'=>['published','rejected'],'published'=>['suspended'],'suspended'=>['published'],'rejected'=>['published']][$property->status]??[]) @if($next)

Moderation decision

@csrf
@endif @endsection