@php
$totalHomme = 0; $totalFemme = 0;
foreach($lits as $p) {
if(!empty($p['homme'])) $totalHomme++;
if(!empty($p['femme'])) $totalFemme++;
}
$litsDisponiblesCount = 0;
foreach($lits as $p) if(!empty($p['homme']) || !empty($p['femme'])) $litsDisponiblesCount++;
@endphp
مشغول (رجال) {{ $totalHomme }}
مشغول (نساء) {{ $totalFemme }}
الأسرّة المتاحة {{ $litsDisponiblesCount }}/{{ $chambre->capacite }}