@extends('layouts.adminpanel') @section('title') Admin Panel - Rooms @endsection @section('admin_content')
Add new room
@csrf
@error('name') {{ $message }} @enderror
@error('capacity') {{ $message }} @enderror
@error('arrangement') {{ $message }} @enderror
@if ($rooms->count() > 0)
All rooms: ({{ $rooms->count() }})
@foreach ($rooms as $room) @endforeach
ID Name Capacity Arrangement
{{ $room->id }} {{ $room->name }} {{ $room->capacity }} {{ $room->arrangement}} Delete Edit
@else

No rooms yet.

@endif
@endsection