@php use App\Support\Money; $canManageRooms = auth()->user()->can('manageRooms', $property); $canBlockRooms = auth()->user()->can('blockRooms', $property); @endphp
← Properties

{{ $property->name }}

@if ($property->address)

{{ $property->address }}

@endif
@php $active = $property->status === App\Enums\Status::Active; $upcomingTotal = $rooms->sum('upcoming_count'); @endphp
@if ($active) Calendar @endif @can('update', $property) Edit details @if ($active) @endif @endcan
@unless ($active)

This property is inactive. It is hidden from the calendar and dashboard and can't take new bookings. Its history stays in reports.

@can('update', $property) @endcan
@endunless @if ($property->description)

{{ $property->description }}

@endif

Upcoming bookings

All bookings

Recent expenses

All Add

Rooms

@if ($canBlockRooms && $rooms->isNotEmpty()) @endif @if ($canManageRooms) @endif
@if ($showRoomForm)

{{ $editingRoomId ? 'Edit room' : 'New room' }}

@endif @if ($showBlockForm)

Block dates

The room cannot be booked for any night from the first to the last night.

@endif
@forelse ($rooms as $room) @php($roomActive = $room->status === App\Enums\Status::Active)
! $roomActive]) wire:key="room-{{ $room->id }}">
! $roomActive])>{{ $room->name }} @if (! $roomActive) @endif
{{ collect([$room->type, trans_choice(':count guest|:count guests', $room->capacity)])->filter()->join(' · ') }}
{{ Money::format($room->base_rate) }}
per night
@if ($room->blocks->isNotEmpty())
    @foreach ($room->blocks as $block)
  • Blocked {{ $block->start_date->format('j M') }}@if (! $block->start_date->equalTo($block->end_date)) – {{ $block->end_date->format('j M Y') }}@else {{ $block->start_date->format('Y') }}@endif · {{ $block->reason }} @if ($canBlockRooms) @endif
  • @endforeach
@endif @if (! $roomActive)

Inactive: not on the calendar and can't take new bookings.@if ($room->upcoming_count) {{ trans_choice(':count upcoming booking still stands.|:count upcoming bookings still stand.', $room->upcoming_count) }}@endif

@endif @if ($canManageRooms || $canBlockRooms)
@if ($canManageRooms) @endif @if ($canBlockRooms && $roomActive) @endif @if ($canManageRooms) @if ($roomActive) @else @endif @endif
@endif
@empty
No rooms yet.@if ($canManageRooms) Add the first room with its nightly rate.@endif
@endforelse
@if (auth()->user()->isOwner() || auth()->user()->isManager())

Team

@can('viewAny', App\Models\User::class) Manage users @endcan

Managers and staff assigned to this property. Owners can see every property.

@endif