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

{{ $property->name }}

{{ ucfirst($property->type) }} Property Details

Back to Properties Edit Property View Calendar
Property Information
{{ $property->name }}
{{ ucfirst($property->type) }}
{{ $property->max_guests }} {{ Str::plural('guest', $property->max_guests) }}
{{ $property->is_active ? 'Active' : 'Inactive' }}
@if($property->description)
{{ $property->description }}
@endif @if($property->amenities)
@foreach($property->amenities as $amenity) {{ $amenity }} @endforeach
@endif
Pricing
RM {{ number_format($property->base_price, 2) }}
per {{ $property->pricing_type }}
@if($property->cleaning_fee > 0)
RM {{ number_format($property->cleaning_fee, 2) }}
@endif @if($property->extra_guest_fee > 0)
RM {{ number_format($property->extra_guest_fee, 2) }}
per guest above {{ $property->included_guests ?? $property->max_guests }}
@endif @if($property->security_deposit > 0)
RM {{ number_format($property->security_deposit, 2) }}
@endif
Recent Bookings
View All
@if($property->bookings->count() > 0)
@foreach($property->bookings as $booking) @endforeach
Reference Customer Dates Guests Status Amount Actions
{{ $booking->booking_reference }}
{{ $booking->created_at->format('M d, Y') }}
{{ $booking->customer_name }}
{{ $booking->customer_email }}
{{ $booking->start_datetime->format('M d') }}
to {{ $booking->end_datetime->format('M d, Y') }}
{{ $booking->guests }} {{ ucfirst($booking->status) }}
RM {{ number_format($booking->total_price, 2) }}
@else
No bookings yet

This property hasn't received any bookings.

@endif
Statistics

{{ $property->bookings()->count() }}

Total Bookings

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

Confirmed

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

Revenue

{{ $property->bookings()->where('status', 'pending')->count() }}

Pending
Quick Actions
View Availability Edit Details @if($property->is_active) @else @endif
@if($property->images && count($property->images) > 0)
Images
@foreach(array_slice($property->images, 0, 4) as $image)
Property Image
@endforeach
@if(count($property->images) > 4)
+{{ count($property->images) - 4 }} more images
@endif
@endif
@endsection