@extends('layouts.app') @section('title', $hotel->name) @section('page-title', $hotel->name) @section('content')
{{ $stats['total_rooms'] }}
Rooms
{{ $stats['total_bookings'] }}
Bookings
{{ $stats['total_staff'] }}
Staff
{{ $stats['total_guests'] }}
Guests
Subscription History
@forelse($hotel->subscriptions as $sub) @empty @endforelse
PlanTypeDurationAmountStartEndStatus
{{ $sub->plan->name ?? '—' }} {{ ucfirst($sub->type) }} {{ ucfirst($sub->duration) }} ₦{{ number_format($sub->amount_paid, 0) }} {{ $sub->start_date->format('d M Y') }} {{ $sub->end_date ? $sub->end_date->format('d M Y') : 'Lifetime' }} @if($sub->status==='active') Active @elseif($sub->status==='expired') Expired @elseif($sub->status==='suspended') Suspended @else {{ ucfirst($sub->status) }} @endif
No subscription history
Staff Members
@forelse($hotel->staff as $member) @empty @endforelse
NameRoleStatusLast Login
{{ $member->name }}
{{ $member->email }}
{{ str_replace('_',' ',ucfirst($member->role)) }} {{ ucfirst($member->employment_status) }} {{ $member->last_login ? $member->last_login->diffForHumans() : 'Never' }}
No staff yet
Hotel Details
Status: @if($hotel->status==='active') Active @elseif($hotel->status==='trial') Trial — ends {{ $hotel->trial_ends_at?->format('d M Y') }} @elseif($hotel->status==='suspended') Suspended @else Pending @endif
@if($hotel->phone)
Phone: {{ $hotel->phone }}
@endif @if($hotel->email)
Email: {{ $hotel->email }}
@endif @if($hotel->address)
Address: {{ $hotel->address }}
@endif @if($hotel->website)@endif
@endsection