@extends('admin.layouts.app') @section('title', 'Regulation Conflicts') @section('breadcrumb') AI Intelligence / Conflicts @endsection @section('content')
@include('admin.ai._tabs') {{-- Header --}}

Regulation Conflicts

AI-detected contradictions and overlaps in regulation rules

{{-- Filters --}}
@if(request()->hasAny(['severity', 'status', 'state_id'])) Clear @endif
{{-- Conflicts List --}} @forelse($conflicts as $conflict)
{{-- Severity indicator --}}
{{-- Header --}}
{{ strtoupper($conflict->severity) }} {{ str_replace('_', ' ', ucfirst($conflict->conflict_type)) }} {{ $conflict->state?->name }} {{ $conflict->city ? '/ ' . $conflict->city->name : '' }} {{ $conflict->created_at->diffForHumans() }}
{{-- Description --}}

{{ $conflict->description }}

{{-- Rules comparison --}}
@if($conflict->new_rule)
New Rule
@if(is_array($conflict->new_rule)) @foreach($conflict->new_rule as $key => $val)
{{ $key }}: {{ is_array($val) ? json_encode($val) : $val }}
@endforeach @else {{ $conflict->new_rule }} @endif
@endif @if($conflict->existing_rule)
Existing Rule
@if(is_array($conflict->existing_rule)) @foreach($conflict->existing_rule as $key => $val)
{{ $key }}: {{ is_array($val) ? json_encode($val) : $val }}
@endforeach @else {{ $conflict->existing_rule }} @endif
@endif
{{-- AI Recommendation --}} @if($conflict->ai_recommendation)
AI Recommendation
{{ $conflict->ai_recommendation }}
@endif {{-- Actions --}} @if($conflict->resolution_status === 'pending')
@else {{ ucfirst($conflict->resolution_status) }} @if($conflict->resolved_at) ยท {{ $conflict->resolved_at->diffForHumans() }} @endif @endif
@empty

No Conflicts Found

Conflicts are detected automatically when regulation documents are processed.

@endforelse {{-- Pagination --}}
{{ $conflicts->withQueryString()->links() }}
@endsection @push('scripts') @endpush