@extends('layouts.superadmin') @section('title', 'Ficha do Hotel — ' . $hotel->name) @section('content') {{-- Header --}}
← Hotéis

{{ $hotel->name }}

{{ $hotel->email }} · {{ $hotel->city }}/{{ $hotel->state }}

Editar
@csrf
{{-- KPIs --}}
Receita Total
R$ {{ number_format($totalRevenue, 0, ',', '.') }}
Reservas
{{ $totalReservations }}
Hóspedes
{{ $totalGuests }}
Usuários
{{ $hotel->users->count() }}
{{ $hotel->is_active ? '● Ativo' : '● Inativo' }}
{{-- Dados do Hotel + Assinatura --}}
Dados do Hotel
@php $fields = [ 'Trade Name' => $hotel->trade_name, 'CNPJ' => $hotel->document, 'E-mail' => $hotel->email, 'Telefone' => $hotel->phone, 'Endereço' => $hotel->address, 'Cidade/UF' => $hotel->city.'/'.$hotel->state, 'CEP' => $hotel->zip_code, 'Timezone' => $hotel->timezone, 'Cadastrado' => $hotel->created_at->format('d/m/Y'), ]; @endphp @foreach($fields as $label => $value)
{{ $label }}
{{ $value ?? '—' }}
@endforeach
{{-- Assinatura --}}
Assinatura Atual
@if($hotel->subscription) @php $sub = $hotel->subscription; @endphp
Plano
{{ $sub->plan?->name }}
Status
@if($sub->status==='active') Ativa @elseif($sub->status==='trial') Trial @else {{ ucfirst($sub->status) }} @endif
Início
{{ $sub->starts_at?->format('d/m/Y') ?? '—' }}
Validade
{{ $sub->ends_at?->format('d/m/Y') ?? '∞' }}
{{-- Mudar plano --}}
@csrf
@else

Nenhuma assinatura registrada.

@endif
{{-- Usuários + Módulos --}}
Usuários do Hotel
@forelse($hotel->users as $user) @empty @endforelse
NomeCargoStatus
{{ $user->name }}
{{ $user->email }}
{{ $user->roles->first()?->name ?? '—' }} @if($user->is_active) Ativo @else Inativo @endif
Sem usuários.
{{-- Módulos habilitados --}}
Módulos Habilitados {{ $hotel->enabledModules->count() }} / {{ $allModules->count() }}
@foreach($allModules as $module) @php $enabled = $hotel->enabledModules->contains('id', $module->id); @endphp {{ $module->name }} @endforeach
@endsection