@foreach ($beds_of_the_room as $child_room)
@php
$common_bg_class = 'bg-primary';
$draggable_class = $transaction_type == 2 ? 'not-draggable' : '';
$is_inactive = $plannings->where('bed_id', $child_room->id)->where('bed_status', 0)->first();
if(in_array($child_room->id, $include_bed_ids)){
$draggable_class = 'not-draggable';
$common_bg_class = 'bg-secondary';
}
if($is_inactive){
$common_bg_class = 'bg-dark';
$draggable_class = 'not-draggable';
}
@endphp
id }} data-bed-no={{ $child_room->room_number }} from-room-id={{ $room->id }} from-room-no={{ $room->room_number }} style="cursor: pointer">
{{ $child_room->room_number }}
@if($transaction_type == 2 && !in_array($child_room->id, $include_bed_ids) && !$is_inactive)
@endif
@endforeach