| {{ $i + 1 }} |
{{ $property->nagarpalikaId }} |
@foreach ($floorTypes as $floor)
@foreach ($usageTypes as $usage)
@php
$floors = is_string($property->floors)
? json_decode($property->floors)
: $property->floors;
@endphp
@foreach ($constructionTypes as $type)
@php
$sum = 0;
foreach ($floors as $f) {
if (
(isset($f->floorType->id) && $f->floorType->id == $floor->id) &&
(isset($f->usageType->name) && $f->usageType->name == $usage) &&
(isset($f->constructionType->id) && $f->constructionType->id == $type)
) {
$sum += $f->areaSqFt ?? 0;
}
}
@endphp
{{ $sum ?: '-' }} |
@endforeach
@endforeach
@endforeach
@endforeach