@if($property->floorPlans && $property->floorPlans->count() > 0)

Floor Plan

@foreach($property->floorPlans->groupBy('floor_name') as $floorName => $floorPlans) @foreach($floorPlans as $floorPlan) @endforeach @endforeach
Floor Flat details Flat no Salable area Uds-sqft Available/Soldout
{{ $floorPlan->floor_name }} {{ $floorPlan->flat_details }} {{ $floorPlan->flat_number }} {{ $floorPlan->formatted_area }} {{ $floorPlan->formatted_uds }} {{ $floorPlan->availability_status }}
@if($property->floorPlans->where('availability_status', 'Available')->count() > 0)
{{ $property->floorPlans->where('availability_status', 'Available')->count() }} flats available in this property. Contact us for more details and booking.
@endif @if($property->floorPlans->where('floor_plan_image', '!=', '')->count() > 0)

Floor Plan Images

@foreach($property->floorPlans->where('floor_plan_image', '!=', '')->unique('floor_name') as $floorPlan)
@if(Str::startsWith($floorPlan->floor_plan_image, 'http')) {{ $floorPlan->floor_name }} Floor Plan @elseif(Str::startsWith($floorPlan->floor_plan_image, 'assets/')) {{ $floorPlan->floor_name }} Floor Plan @else {{ $floorPlan->floor_name }} Floor Plan @endif
{{ $floorPlan->floor_name }} Floor
@endforeach
@endif
@endif