@extends('layouts.admin') @section('title', 'Configuração Tarifária') @section('breadcrumb') Tarifas @endsection @push('styles') @endpush @section('content') {{-- Nav --}}
📋 Regras 🧮 Simulador
{{-- Filtros --}}
@if(request()->hasAny(['type','category_id'])) ✕ Limpar @endif {{ $rules->total() }} regras
@if(session('success'))
✓ {{ session('success') }}
@endif {{-- Tabela --}}
@forelse($rules as $rule) @empty @endforelse
Pri Nome Tipo Categoria Valor/Noite Vigência Status
{{ $rule->priority }}
{{ $rule->name }}
@if($rule->notes)
{{ Str::limit($rule->notes, 60) }}
@endif
@switch($rule->type) @case('base') 🏷 Base @break @case('season') 🌡 Temporada @break @case('weekday') 📅 Dia Semana @break @case('channel') 📡 Canal @break @case('promo') 🔖 Promo @break @case('package') 📦 Pacote @break @endswitch {{ $rule->category?->name ?? 'Global' }}
R$ {{ number_format((float)$rule->price_per_night,2,',','.') }}
@if($rule->is_breakfast_included)
☕ c/ café
@endif
@if($rule->dates->count()) @foreach($rule->dates as $d) {{ $d->start_date->format('d/m/Y') }} → {{ $d->end_date->format('d/m/Y') }} @endforeach @else Sempre ativa @endif @if($rule->is_active) Ativa @else Inativa @endif
✏️
@csrf @method('DELETE')
📋
Nenhuma regra tarifária cadastrada
@if($rules->hasPages())
{{ $rules->links() }}
@endif
{{-- Info box hierarquia --}}
⚠️ Hierarquia de Aplicação
1 · Pacote 2 · Temporada 3 · Promo 4 · Canal 5 · Dia da Semana 6 · Base 7 · Ajustes Manuais

Use o campo Prioridade para controlar qual regra vence quando há sobreposição. Menor número = maior prioridade.

@endsection