@extends('layout.app') @section('content')

Edit property owner

Back

@if(!$owner->approved_at) Awaiting approval @elseif($owner->status) Active @else Disabled @endif · registered {{ $owner->created_at?->format('Y-m-d') }}

@csrf @method('PUT')

Account status

@if($owner->status)

Disabling this owner immediately stops them and their staff from signing in, and disables all {{ $owner->properties_count }} of their properties, so guests can no longer book them. Existing bookings are kept.

@csrf
@else

Enabling this owner lets them sign in again and re-enables the properties that were disabled with their account.

@csrf
@endif
Properties
@forelse($properties as $property) @empty @endforelse
{{ $property->property_name }} @if($property->is_active) Active @else Disabled {{ ['owner' => 'by owner', 'admin' => 'by admin', 'owner_account_disabled' => 'with the account'][$property->deactivated_reason] ?? '' }} @endif
No properties yet.
@stop