@extends('admin.layouts.app') @section('title', $doc->title) @section('breadcrumbs') Dashboard Regulation Documents {{ Str::limit($doc->title, 40) }} @endsection @section('content') @php $extractionColors = ['pending'=>'#f59e0b','processing'=>'#3b82f6','completed'=>'#22c55e','failed'=>'#ef4444']; $reviewColors = ['pending'=>'#f59e0b','approved'=>'#22c55e','rejected'=>'#ef4444']; $rules = $doc->extracted_rules ?? []; @endphp {{-- Header --}}
{{ $doc->extraction_error }}
This will push the extracted rules into the Zone Rules table. Existing rules for matching zones will be updated.
| # | Zone | FAR | Coverage% | Floors | Height(m) | Setbacks F/R/S | Permitted Uses | Confidence |
|---|---|---|---|---|---|---|---|---|
| {{ $i+1 }} |
{{ $rule['zone_name'] ?? '—' }}
{{ $rule['zone_code'] ?? '' }}
|
@if(isset($rule['far_min']) || isset($rule['far_max'])) {{ $rule['far_min'] ?? '' }}{{ isset($rule['far_min']) && isset($rule['far_max']) ? '–' : '' }}{{ $rule['far_max'] ?? '' }} @else — @endif | {{ $rule['ground_coverage_pct'] ?? '—' }}{{ isset($rule['ground_coverage_pct']) ? '%' : '' }} | {{ $rule['max_floors'] ?? '—' }} | {{ $rule['max_height_m'] ?? '—' }} | {{ $rule['front_setback_m'] ?? '?' }} / {{ $rule['rear_setback_m'] ?? '?' }} / {{ $rule['side_setback_m'] ?? '?' }} | @foreach(array_slice($rule['permitted_uses'] ?? [], 0, 3) as $use) {{ $use }} @endforeach @if(count($rule['permitted_uses'] ?? []) > 3) +{{ count($rule['permitted_uses']) - 3 }} @endif |
@php $conf = (float)($rule['confidence'] ?? 0); @endphp
{{ round($conf*100) }}%
|
| ℹ {{ $rule['special_conditions'] }} | ||||||||