@extends('layouts.superadmin') @section('title','كشف التعارضات') @section('content') @php use Carbon\Carbon; $from = $from ?? now()->subDays(30)->toDateString(); $to = $to ?? now()->toDateString(); $conflicts = $conflicts ?? []; $total = count($conflicts); @endphp
هذه الصفحة تكشف حالات وجود غيابين متداخلين لنفس العضو داخل نفس الفترة. الهدف: تنظيف البيانات، منع تكرار الغياب، وضبط التقارير والاحتساب.
| العضو | A (من→إلى) | B (من→إلى) | روابط |
|---|---|---|---|
| {{ $u->name ?? $u->username }} | {{ \Carbon\Carbon::parse($a->from_date)->toDateString() }} → {{ \Carbon\Carbon::parse($a->to_date)->toDateString() }} | {{ \Carbon\Carbon::parse($b->from_date)->toDateString() }} → {{ \Carbon\Carbon::parse($b->to_date)->toDateString() }} | |
| لا يوجد تعارضات ضمن الفترة. | |||