@extends('layouts/gnr_layout') @section('title', '| Room') @section('content') @include('successMsg') @php $foreignRoomIds = DB::table('inv_tra_use')->distinct()->pluck('room_id')->toArray(); @endphp

ROOM LIST

{{ csrf_field() }} @foreach($rooms as $room)
SL# Room Name Department Name Action
{{++$no}} {{$room->name}}
Warning: Undefined variable $room in /home/shikkhaplus/public_html/demo_bk/resources/views/gnr/tools/departmentRoom/viewRoom.blade.php on line 49

Warning: Attempt to read property "departmentId" on null in /home/shikkhaplus/public_html/demo_bk/resources/views/gnr/tools/departmentRoom/viewRoom.blade.php on line 49

Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/shikkhaplus/public_html/demo_bk/resources/views/gnr/tools/departmentRoom/viewRoom.blade.php:49 Stack trace: #0 {main} thrown in /home/shikkhaplus/public_html/demo_bk/resources/views/gnr/tools/departmentRoom/viewRoom.blade.php on line 49