@extends('admin.layouts.app') @section('title', 'Feasibility Report #'.str_pad($report->id, 5, '0', STR_PAD_LEFT)) @section('breadcrumb') Reports / #{{ str_pad($report->id, 5, '0', STR_PAD_LEFT) }} @endsection @section('content') @php $score = $report->feasibility_score ?? 0; $scoreColor = $score >= 70 ? 'var(--vsc-green-terminal)' : ($score >= 40 ? 'var(--vsc-orange)' : 'var(--vsc-red)'); $scoreLabel = $score >= 70 ? 'Feasible' : ($score >= 40 ? 'Marginal' : 'Challenging'); @endphp
{{-- Left Column --}}
{{-- Location & Zone --}}
Location & Zone
Address
{{ $report->address }}
Coordinates
{{ $report->latitude }}, {{ $report->longitude }}
State
{{ $report->state?->name ?? '—' }}
City
{{ $report->city?->name ?? '—' }}
Zone
{{ $report->zone?->name ?? '—' }}
Road Width
{{ $report->road_width_m ? $report->road_width_m.' m' : '—' }}
@if($report->google_maps_url)
Google Maps URL
@endif
{{-- Calculation Results --}}
Calculation Results
{{ $report->plot_area_sqm ? number_format($report->plot_area_sqm) : '—' }}
Plot Area (sqm)
{{ $report->max_buildable_area_sqm ? number_format($report->max_buildable_area_sqm) : '—' }}
Max Buildable (sqm)
{{ $report->ground_coverage_sqm ? number_format($report->ground_coverage_sqm) : '—' }}
Ground Coverage (sqm)
{{ $report->max_floors ?? '—' }}
Max Floors
@if($report->zoneRule)
{{ $report->zoneRule->max_far }}
FAR / FSI
{{ $report->zoneRule->max_height_m ? $report->zoneRule->max_height_m.'m' : '—' }}
Max Height
@endif
@if($report->setback_summary)
Setbacks
@foreach($report->setback_summary as $key => $val) {{ ucfirst($key) }}: {{ $val }}m @endforeach
@endif @if($report->permitted_uses)
Permitted Uses
@foreach($report->permitted_uses as $use) {{ $use }} @endforeach
@endif
{{-- Restriction Flags --}} @if($report->restriction_flags && count($report->restriction_flags))
Restriction Flags
@foreach($report->restriction_flags as $flag => $active)
{{ str_replace('_', ' ', ucfirst($flag)) }} @if($active) Yes @else No @endif
@endforeach
@endif {{-- Cost & ROI Estimates --}} @php $ce = $report->cost_estimates ?? []; @endphp @if(!empty($ce))
Cost & ROI Estimates
Construction Cost
₹{{ number_format($ce['construction_cost_min_inr'] ?? 0) }} – ₹{{ number_format($ce['construction_cost_max_inr'] ?? 0) }}
indicative range
Gross Dev. Value
₹{{ number_format($ce['gross_development_value_inr'] ?? 0) }}
market value at completion
Est. Profit
₹{{ number_format($ce['estimated_profit_inr'] ?? 0) }}
GDV minus max construction cost
ROI
{{ $ce['roi_pct'] ?? '—' }}%
return on investment
Monthly Rent Est.
₹{{ number_format($ce['monthly_rent_estimate_inr'] ?? 0) }}
indicative rental income
Break-even
{{ $ce['breakeven_years'] ?? '—' }}
years (from rental)
⚠ Cost & ROI figures are indicative estimates based on state-level benchmarks. Actual values may vary. Project type: {{ ucfirst($report->project_type ?? 'residential') }}. @if(!empty($ce['note'])) {{ $ce['note'] }} @endif
@endif {{-- Calculation Log --}} @if($report->calculation_log)
Calculation Log
@foreach($report->calculation_log as $entry)
@if(is_array($entry)) {{ $entry['step'] ?? '' }}: {{ $entry['result'] ?? '' }} @else {{ $entry }} @endif
@endforeach
@endif
{{-- Right Column --}}
{{-- Score Card --}}
Feasibility Score
{{ $report->feasibility_score ?? '—' }}
{{ $scoreLabel }}
out of 100
{{-- Meta --}}
Report Meta
Status
@php $statusBadge = ['pending'=>'badge-orange','processing'=>'badge-blue','completed'=>'badge-green','failed'=>'badge-red'][$report->status ?? 'pending'] @endphp {{ ucfirst($report->status ?? 'pending') }}
User
{{ $report->user?->name ?? 'Guest' }}
Zone Rule Applied
{{ $report->zoneRule?->rule_source ?? '—' }}
Created
{{ $report->created_at?->format('d M Y, H:i') ?? '—' }}
@if($report->error_message)
Error
{{ $report->error_message }}
@endif
{{-- Zone Rule Details --}} @if($report->zoneRule)
Applied Zone Rule
FAR{{ $report->zoneRule->max_far }}
Max Height{{ $report->zoneRule->max_height_m ? $report->zoneRule->max_height_m.'m' : '—' }}
Ground Coverage{{ $report->zoneRule->max_ground_coverage ? ($report->zoneRule->max_ground_coverage * 100).'%' : '—' }}
Road Width{{ $report->zoneRule->road_width_label }}
Source{{ $report->zoneRule->rule_source ?? '—' }}
Parking Ratio{{ $report->zoneRule->parking_ratio_ecs ? $report->zoneRule->parking_ratio_ecs.' ECS/sqm' : '—' }}
@if($report->zoneRule->special_conditions)
Special Conditions
{{ $report->zoneRule->special_conditions }}
@endif
@endif
@endsection