{{ config('app.name') }} |
||||||||||||||||||||||||
|
@yield('content')
@isset($booking)
Booking Details
@php
$mainImage = $booking->workspace->calculated_main_image;
// Ensure it's absolute
if ($mainImage && !filter_var($mainImage, FILTER_VALIDATE_URL)) {
$mainImage = asset('storage/' . ltrim($mainImage, '/'));
}
@endphp
@if($mainImage)
@endif
@if(isset($payout_calculation))
{{ $booking->workspace->categories->first()->name ?? $booking->workspace->category ?? 'Workspace' }}
{{ $booking->workspace->title }}@if($booking->workspace->description){{ $booking->workspace->description }} @endif @if($booking->workspace->cancellation_policy)Cancellation Policy
@php
$policyType = strtolower($booking->workspace->cancellation_policy);
$refundPercent = $booking->workspace->cancellation_refund_percentage ?? 0;
$deadline = $booking->workspace->cancellation_deadline_hours ?? 24;
$policyTitle = 'No Refund';
if ($policyType === 'full') $policyTitle = 'Flexible (Full Refund)';
elseif ($policyType === 'partial') $policyTitle = "Moderate ({$refundPercent}% Refund)";
$policyDesc = "Booking is non-refundable.";
if ($policyType === 'full') {
$policyDesc = "Guests receive a full refund if they cancel at least {$deadline} hours before the scheduled check-in.";
} elseif ($policyType === 'partial') {
$policyDesc = "Guests receive a {$refundPercent}% refund if they cancel at least {$deadline} hours before the scheduled check-in.";
}
@endphp
{{ $policyTitle }} {{ $policyDesc }} Payout Calculation
|
||||||||||||||||||||||||
|
© {{ date('Y') }} {{ config('app.name') }}. All rights reserved. You are receiving this email because you are a registered member of our platform. |
||||||||||||||||||||||||