{{-- brafa Systems — Mews hotels. Livewire backing: App\Http\Livewire\SuperAdmin\MewsManagement. --}}
Hotels connected to Mews (docs/mews-integration-plan.md). Add one from the properties page with its Mews access token, or let the hotel connect brafa in the Mews Marketplace (needs the webhook below). Door codes are written to the reservation in Mews once a lock has the code.
| Hotel | Status | Last sync | Rooms | Codes in Mews | Actions |
|---|---|---|---|---|---|
|
{{ $pid }} · {{ $d->environment }} · {{ $d->timezone }}
|
@if ($d->is_enabled)
Connected
@else
Off
@endif
@unless (isset($automationOn[$pid]))
Automation is switched off
@endunless
|
{{ optional($d->last_synced_at)->diffForHumans() ?? 'Never' }}
@if ($d->last_error)
{{ \Illuminate\Support\Str::limit($d->last_error, 90) }}
@endif
|
{{ $rooms[$pid] ?? 0 }} |
@if ($d->writeback_enabled)
{{ $codesInMews[$pid] ?? 0 }}
@if (($writeErrors[$pid] ?? 0) > 0)
{{ $writeErrors[$pid] }} failed
@endif
@else
Not written
@endif
|
@if (($writeErrors[$pid] ?? 0) > 0)
@endif
|
| No Mews hotels yet. | |||||
Send these to Mews support to register them (one per environment, for both general and integration webhooks). Reservation changes then sync within a couple of minutes, and hotels that connect brafa in the Mews Marketplace are added automatically, with their automation switched off.
@forelse ($webhookUrls as $label => $url){{ $url }}
| Received | Env | Hotel | What | Result |
|---|---|---|---|---|
| {{ $e->created_at->format('Y-m-d H:i:s') }} | {{ $e->environment }} | {{ $e->enterprise_id ?? '—' }} | {{ $e->summary }} | @if ($e->error) {{ \Illuminate\Support\Str::limit($e->error, 80) }} @elseif ($e->processed_at) Done @else Pending @endif |
| No webhooks received yet. | ||||
Retried automatically on each sync (up to 40 per hotel per run).
| Hotel | Booking | Error | When |
|---|---|---|---|
| {{ $names[(string) $r->PropertyID] ?? $r->PropertyID }} | {{ $r->booking_id }} | {{ \Illuminate\Support\Str::limit($r->door_code_error, 160) }} | {{ $r->updated_at->diffForHumans() }} |