@extends('layouts.app') @section('title', 'Bulk Update') @push('styles') @endpush @section('content')

Bulk Update

@csrf
@if($cmConnected)
Connected to Channel Manager API @if($cmSandbox) (Aiosell sandbox) @endif — changes sync to /update (inventory) and /update-rates (rates). @if($configuredOtaCount > 0) {{ $configuredOtaCount }} OTA{{ $configuredOtaCount === 1 ? '' : 's' }} mapped. @else Set up OTA Mapping first. @endif
@else
Channel Manager API is not configured. Changes save locally only until admin connects Aiosell in Platform Settings.
@endif
Type:
@foreach([ 'inventory' => 'Inventory', 'rate' => 'Rate', 'ratio' => 'Ratio', 'increment' => 'Increment', 'restrictions_rates' => 'Restrictions (Rates)', 'restrictions_inventory' => 'Restrictions (Inventory)', ] as $value => $label) @endforeach
Weekdays:
@foreach(['all' => 'All', 'sun' => 'Sun', 'mon' => 'Mon', 'tue' => 'Tue', 'wed' => 'Wed', 'thu' => 'Thu', 'fri' => 'Fri', 'sat' => 'Sat'] as $val => $lbl) @endforeach
{{-- Inventory --}}
@forelse($rooms as $room) @empty @endforelse
Room Inventory
{{ $room->name }}
No rooms configured.
{{-- Rate / Ratio / Increment --}}
@forelse($ratePlans as $plan) @empty @endforelse
Rateplans Rates
{{ $plan['label'] }}
No rate plans configured.
{{-- Restrictions (Rates) --}}
@include('hotel.channel-manager.partials._bulk-restrictions-table', ['mode' => 'plan', 'items' => $ratePlans])
{{-- Restrictions (Inventory) --}}
@include('hotel.channel-manager.partials._bulk-restrictions-table', [ 'mode' => 'room', 'items' => $rooms->map(fn ($r) => ['id' => $r->id, 'label' => $r->name])->values(), ])
@endsection @push('scripts') @endpush