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

Room Categories

@if (session('success')) @endif @if ($errors->any()) @endif
@if ($roomTypes->count() > 0)
@foreach ($roomTypes as $roomType) @endforeach
# Name Description Channels Menu Controls Actions
{{ $roomType->id }}
{{ $roomType->name }} {{ $roomType->created_at ? $roomType->created_at->format('M d, Y') : 'No date' }}
@if ($roomType->description) {{ $roomType->description }} @else No description @endif @if ($roomType->channels->count() > 0)
@foreach ($roomType->channels->take(3) as $channel) {{ $channel->name }} @endforeach @if ($roomType->channels->count() > 3) +{{ $roomType->channels->count() - 3 }} more @endif
Total: {{ $roomType->channels->count() }} channels @else No channels assigned @endif
@if ($roomType->menuControls->count() > 0) Total: {{ $roomType->menuControls->count() }} menus @else No menus assigned @endif
@else

No Room Types Found

Get started by creating your first room type configuration.

Create Room Type
@endif
@endsection