{{-- resources/views/pricing/rate-plans.blade.php --}} @extends('layouts.app') @section('title', 'Rate Plans') @section('page_title', 'Rate Plans') @section('page_subtitle', 'Define your pricing plans') @section('content')
← Pricing
{{-- Plans List --}}
Rate Plans {{ $ratePlans->count() }} total
@if($ratePlans->isEmpty())

No rate plans yet

Create your first rate plan to start setting room rates

@else
@foreach($ratePlans as $plan)
{{ $plan->name }} {{ $plan->code }} @if(!$plan->is_active) Inactive @endif
@if($plan->description)
{{ $plan->description }}
@endif
@if($plan->meal_plan) {{ ucfirst(str_replace('_', ' ', $plan->meal_plan)) }} @endif @if($plan->min_stay_nights) Min {{ $plan->min_stay_nights }} nights @endif @if($plan->advance_booking_days) Book {{ $plan->advance_booking_days }} days ahead @endif {{ $plan->rates_count }} {{ Str::plural('rate', $plan->rates_count) }} set
{{-- Inclusions --}} @if($plan->includes_breakfast || $plan->includes_lunch || $plan->includes_dinner)
@if($plan->includes_breakfast) Breakfast @endif @if($plan->includes_lunch) Lunch @endif @if($plan->includes_dinner) Dinner @endif
@endif
@csrf @method('DELETE')
@endforeach
@endif
{{-- Add / Edit Form --}}
Add Rate Plan
@csrf
@error('name')
{{ $message }}
@enderror
@error('code')
{{ $message }}
@enderror
{{-- Inclusions --}}
@foreach(['breakfast','lunch','dinner'] as $meal)
@endforeach
nights
days
{{-- Quick suggestions --}}
Common Plan Templates
@foreach([ ['BAR', 'Best Available Rate', 'room_only'], ['BB', 'Bed & Breakfast', 'bed_breakfast'], ['HB', 'Half Board', 'half_board'], ['FB', 'Full Board', 'full_board'], ['AI', 'All Inclusive', 'all_inclusive'], ['CORP', 'Corporate Rate', 'room_only'], ['GOVT', 'Government Rate', 'room_only'], ] as [$code, $name, $meal])
{{ $code }} {{ $name }}
@endforeach
@endsection @push('scripts') @endpush