@extends('layouts.app') @section('content')
@include('partials.header') @include('partials.sidebar')

Edit Room Category

@if ($errors->any()) @endif

Room Type Configuration

@csrf @method('PUT')
Basic Information
{{ strlen($roomType->description ?? '') }}/1000 characters
Current Configuration Summary
Channels

{{ $roomType->channels->count() }} channels currently assigned

@if ($roomType->channels->count() > 0)
@foreach ($roomType->channels->take(5) as $channel) {{ $channel->name }} @endforeach @if ($roomType->channels->count() > 5) +{{ $roomType->channels->count() - 5 }} more @endif
@endif
Menu Controls

{{ $roomType->menuControls->count() }} menu controls currently assigned

@if ($roomType->menuControls->count() > 0)
@foreach ($roomType->menuControls->take(5) as $menuControl) {{ $menuControl->title }} @endforeach @if ($roomType->menuControls->count() > 5) +{{ $roomType->menuControls->count() - 5 }} more @endif
@endif
Channels Configuration ({{ $channels->count() }} available)
@if ($channels->count() > 0)
{{ $roomType->channels->count() }} channels selected
Available Channels
@foreach ($channels as $channel) @unless ($roomType->channels->contains($channel->id))
@endunless @endforeach
Selected Channels
@foreach ($roomType->channels->sortBy('pivot.sort_order') as $channel)
@endforeach

No channels selected

Drag channels here or use checkboxes
@else
No channels are available. Please create channels first.
@endif
Menu Controls Configuration ({{ $menuControls->count() }} available)
@if ($menuControls->count() > 0)
{{ $roomType->menuControls->count() }} menus selected
Available Menu Controls
@foreach ($menuControls as $menuControl) @unless ($roomType->menuControls->contains($menuControl->id))
@endunless @endforeach
Selected Menu Controls
@foreach ($roomType->menuControls->sortBy('pivot.sort_order') as $menuControl)
@endforeach
@else
No menu controls are available. Please create menu controls first.
@endif
Back
@endsection