{{-- resources/views/pricing/index.blade.php --}} @extends('layouts.app') @section('title', 'Pricing') @section('page_title', 'Pricing') @section('page_subtitle', 'Manage rates, plans and promotions') @section('content') {{-- Stats --}}
{{ $ratePlans }}
Rate Plans
{{ $rates }}
Rates Set
{{ $seasonal }}
Seasonal Rates
{{ $promotions }}
Active Promos
{{-- Navigation cards --}}
@php $sections = [ ['route' => 'pricing.rate-plans.index', 'icon' => 'bi-tag', 'color' => 'var(--clay)', 'title' => 'Rate Plans', 'desc' => 'Define plans like BAR, corporate, B&B, packages'], ['route' => 'pricing.rates.index', 'icon' => 'bi-currency-dollar','color' => '#10b981', 'title' => 'Base Rates', 'desc' => 'Set nightly rates per room category and plan'], ['route' => 'pricing.seasonal.index', 'icon' => 'bi-calendar-range', 'color' => '#3b82f6', 'title' => 'Seasonal Rates', 'desc' => 'Override rates during peak, high or low seasons'], ['route' => 'pricing.promotions.index', 'icon' => 'bi-percent', 'color' => '#f59e0b', 'title' => 'Promotions', 'desc' => 'Promo codes, discounts and special offers'], ]; @endphp @foreach($sections as $section)
{{ $section['title'] }}
{{ $section['desc'] }}
@endforeach
{{-- Rate coverage per category --}}
Rate Coverage by Room Category Manage Rates →
@if($categories->isEmpty())

No room categories yet. Create room categories →

@else
@foreach($categories as $cat) @php $ratePlansTotal = \App\Models\RatePlan::where('property_id', tenant_id()) ->where('is_active', true)->count(); $ratesSet = $cat->rates_count; $pct = $ratePlansTotal > 0 ? min(100, round(($ratesSet / $ratePlansTotal) * 100)) : 0; @endphp @endforeach
Room Category Rooms Rates Set Coverage
{{ $cat->name }}
@if($cat->bed_type)
{{ $cat->bed_type }}
@endif
{{ $cat->rooms_count ?? 0 }} {{ $ratesSet }} @if($ratePlansTotal > 0) / {{ $ratePlansTotal }} plans @endif
{{ $pct }}%
Set Rates →
@endif
@endsection