@extends('layouts.app') @section('title', 'Flat Status Report') @section('content')

Flat Status Report

All flats with current status, customer, and payment progress

PDF Excel CSV
{{-- Filters --}}
{{-- Summary Cards --}} @php $statusCounts = $data->groupBy('status')->map->count(); $totalOutstanding = $data->sum('outstanding'); @endphp

{{ $statusCounts['available'] ?? 0 }}

Available

{{ $statusCounts['booked'] ?? 0 }}

Booked

{{ $statusCounts['sold'] ?? 0 }}

Sold

৳{{ number_format($totalOutstanding) }}

Outstanding

{{-- Data Table --}}
@forelse($data as $row) @empty @endforelse
Project Building Flat # Type Size Price Status Customer Paid Outstanding Progress
{{ $row['project'] }} {{ $row['building'] }} {{ $row['flat_number'] }} {{ $row['type'] }} {{ $row['size'] }} ৳{{ number_format($row['price']) }} {{ ucfirst($row['status']) }} {{ $row['customer'] }} ৳{{ number_format($row['total_paid']) }} ৳{{ number_format($row['outstanding']) }} @if($row['progress'] > 0)
{{ $row['progress'] }}% @else @endif
No flats found.
@endsection