@extends('layouts.app') @section('title', 'Rate Plans') @section('nav_rates', 'bg-teal-50 text-teal-700 font-semibold') @section('page_title', 'Rate Plans') @section('page_subtitle', 'Pricing tiers applied at reservation') @section('content') @if(session('success'))

{{ session('success') }}

@endif @php $typeColors = [ 'percent_off' => 'bg-blue-50 text-blue-700 border-blue-200', 'amount_off' => 'bg-purple-50 text-purple-700 border-purple-200', 'fixed' => 'bg-amber-50 text-amber-700 border-amber-200', ]; $typeLabels = [ 'percent_off' => '% Off', 'amount_off' => '₱ Off', 'fixed' => 'Fixed Rate', ]; @endphp
New Rate Plan
@if($plans->isEmpty())

No rate plans yet. Create the first one.

@else
@foreach($plans as $plan) @endforeach
Plan Type Modifier Constraints Reservations Status

{{ $plan->name }}

{{ $plan->code }}

@if($plan->description)

{{ $plan->description }}

@endif
{{ $typeLabels[$plan->type] ?? $plan->type }} {{ $plan->modifierLabel() }} @if($plan->type === 'fixed')

{{ $plan->rates->count() }} room types defined

@endif
@if($plan->min_nights)

Min {{ $plan->min_nights }} nights

@endif @if($plan->valid_from || $plan->valid_until)

{{ $plan->valid_from?->format('M j, Y') ?? '—' }} → {{ $plan->valid_until?->format('M j, Y') ?? '—' }}

@endif @if(!$plan->min_nights && !$plan->valid_from && !$plan->valid_until)

None

@endif

{{ $plan->reservations_count }}

@if($plan->active) Active @else Inactive @endif
Edit
@csrf @method('DELETE')
@endif @if($plans->hasPages())
{{ $plans->links() }}
@endif
@endsection