@extends('operations.layout.mainlayout') @section('content')

Insurance Providers

Manage provider contracts, coverage plans, claims health, and local sync state

Add New Insurance
Total Providers {{ $providerSummary['total'] }} All configured networks
Active {{ $providerSummary['active'] }} Available for billing
Expiring Soon {{ $providerSummary['expiring_soon'] }} Needs contract review
Blocked {{ $providerSummary['blocked'] }} Temporarily restricted
{{ $insurances->count() }} providers
@foreach($insurances as $insurance) @php $providerCode = 'INS-' . str_pad($insurance->ID, 5, '0', STR_PAD_LEFT); $displayStatus = $insurance->IS_BLOCKED == 1 ? 'blocked' : ($insurance->IS_ACTIVE == 1 ? 'active' : 'inactive'); $displayStatusLabel = ucfirst($displayStatus); $contractStatus = $insurance->CONTRACT_STATUS_DISPLAY; $contractClass = $insurance->IS_EXPIRING_SOON ? 'status-expiring' : ($contractStatus == 'ACTIVE' ? 'status-active' : ($contractStatus == 'EXPIRED' ? 'status-expired' : 'status-pending')); $contractLabel = $insurance->IS_EXPIRING_SOON ? 'Expiring' : ucfirst(strtolower($contractStatus)); $rateClass = $insurance->DENIAL_RATE < 3 ? 'rate-low' : ($insurance->DENIAL_RATE <= 6 ? 'rate-mid' : 'rate-high'); @endphp @endforeach
ID Provider Group Contact Claims Denial Rate Contract Status Actions
{{ $providerCode }}
{{ strtoupper(substr($insurance->NAME, 0, 1)) }}
{{ $insurance->NAME }}
@if($insurance->NAME_AR)
{{ $insurance->NAME_AR }}
@endif
{{ optional($insurance->group)->NAME ?: '-' }}
{{ $insurance->EMAIL ?: '-' }}
{{ $insurance->MOBILE_NUMBER ?: '-' }}
{{ $insurance->CLAIMS_COUNT }} {{ number_format($insurance->DENIAL_RATE, 2) }}% {{ $contractLabel }} @if($insurance->DAYS_UNTIL_EXPIRY !== null)
{{ $insurance->DAYS_UNTIL_EXPIRY }} days
@endif
{{ $displayStatusLabel }}
Edit Price List
@endsection @section('footer-scripts') @endsection