@extends('layouts.superadmin') @section('title','غرفة رولا — حالات الضعف والانقطاع') @section('page-title','🚑 حالات الضعف والانقطاع') @section('content')
{{-- شرح سريع --}}
تعرِض هذه الصفحة مرشّحات “انقطاع/ضعف” حسب إشارات بسيطة: آخر زيارة، دقائق التواجد، النقاط، الغياب، والالتزام بالأيام. الهدف توجيه تواصل لطيف وسريع — بدون تعديل أي جدول في المنظومة. الفترة الحالية: {{ $period[0] }}{{ $period[1] }}.
{{-- ملخص --}}
إجمالي الصبايا
{{ number_format($cards['summary']['girls'] ?? 0) }}
انقطاع شديد
{{ number_format($cards['summary']['severe'] ?? 0) }}
ضعف واضح
{{ number_format($cards['summary']['weak'] ?? 0) }}
بحاجة متابعة
{{ number_format($cards['summary']['follow'] ?? 0) }}
@php $sections = [ ['key'=>'severe','title'=>'🚨 انقطاع شديد (الأعلى أولوية)','color'=>'from-rose-50 to-rose-100'], ['key'=>'weak','title'=>'⚠️ ضعف واضح','color'=>'from-amber-50 to-amber-100'], ['key'=>'follow','title'=>'👀 بحاجة متابعة قريبة','color'=>'from-cyan-50 to-cyan-100'], ]; @endphp @foreach($sections as $sec) @php $items = $cards[$sec['key']] ?? collect(); @endphp

{{ $sec['title'] }}

فحص آخر {{ $back }} يوم
@if($items->isEmpty())
لا يوجد مرشّحات ضمن هذه الفئة.
@else
@foreach($items as $i)
{{ $i->name }}
{{ $i->user ?? '—' }}
خطر: {{ $i->risk }}
{{ $i->hint }}
انقطاع: {{ $i->inactive }} يوم
دقائق: {{ number_format($i->mins,1) }}
نقاط: {{ $i->pts }}
غياب: {{ $i->abs }}
أيام نشطة: {{ $i->days }}
@if(Route::has('superadmin.admin-messages.index')) @endif
@endforeach
@endif
@endforeach
@endsection