<style type="text/css">
.new-bill {
    width: 95px !important;
    height: auto !important;
    line-height: 1.5 !important;
    padding: 0.275rem 0.5rem !important;
}
</style>
<div class="table-responsive" style="font-size: 15px">
    <table id="tables" class="table table-bordered align-middle bg-white" style="width:100%">
        <thead class="table-light">
            <tr>
                <th class="thbutton text-white" style="background-color: #5f5f5f">Bed Groups</th>
                @foreach($floors as $floor)
                <th class="thbutton text-white" style="background-color: #5f5f5f">  {{$floor->name}} </th>
                @endforeach
            </tr>
        </thead> 
        <tbody>
                @foreach($bed_groups as $bed_group)
                <tr>
                    <td class="text-center text-white" style="background-color: #32bfff"> {{ $bed_group['data'][0]->name }}  </td>
                    @foreach($bed_group['floor'] as $floor)
                    @if($floor->total_beds > 0)
                    <td class="text-center bg-success">{{$floor->total_beds}}</td>
                    @else
                    <td class="text-center">{{$floor->total_beds}}</td>
                    @endif
                    @endforeach
                </tr>
                @endforeach
             
        </tbody>
    </table>
</div>

</div>
