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

Booking Properties

Manage your accommodations, services, and bookable items

{{ $properties->total() }}

Total Properties

{{ $website->bookingProperties()->where('is_active', true)->count() }}

Active Properties

{{ $website->bookings()->where('status', 'confirmed')->count() }}

Active Bookings

RM {{ number_format($website->bookings()->where('payment_status', 'paid')->sum('total_price'), 0) }}

Total Revenue

@if($properties->count() > 0)
@foreach($properties as $property)
{{ $property->name }}
{{ ucfirst($property->type) }}
{{ $property->is_active ? 'Active' : 'Inactive' }}
@if($property->short_description)

{{ Str::limit($property->short_description, 100) }}

@endif
{{ $property->formatted_price }} Max {{ $property->max_guests }} guests
{{ $property->bookings()->where('status', 'confirmed')->count() }}
Bookings
{{ $property->bookings()->where('start_datetime', '>=', now())->count() }}
Upcoming
RM {{ number_format($property->bookings()->where('payment_status', 'paid')->sum('total_price'), 0) }}
Revenue
@endforeach
{{ $properties->links() }}
@else

No Properties Yet

Start by adding your first bookable property, service, or accommodation.

Add Your First Property
@endif
@endsection