@extends('layouts.app') @section('title', 'نتائج التقرير') @section('content')
{{-- Header --}}

نتائج التقرير

{{ $report->title ?? 'تقرير مخصص' }} — تم الإنشاء: {{ now()->format('Y/m/d H:i') }}

@if(Route::has('report-builder.export')) تصدير Excel تصدير PDF @endif تقرير جديد
{{-- Report Summary --}}
إجمالي السجلات
{{ $report->total_records ?? count($data ?? []) }}
مصدر البيانات
@if(($report->data_source ?? '') == 'employees') الموظفون @elseif(($report->data_source ?? '') == 'attendance') الحضور والانصراف @elseif(($report->data_source ?? '') == 'payroll') الرواتب @elseif(($report->data_source ?? '') == 'leaves') الإجازات @elseif(($report->data_source ?? '') == 'departments') الأقسام @else {{ $report->data_source ?? '—' }} @endif
@if(isset($report->filter_department_name))
القسم
{{ $report->filter_department_name }}
@endif @if(isset($report->date_range))
الفترة
{{ $report->date_range }}
@endif
{{-- Report Table --}}
@foreach($columns ?? [] as $col) @endforeach @forelse($data ?? [] as $index => $row) @foreach($row as $cell) @endforeach @empty @endforelse
#{{ $col }}
{{ $index + 1 }}{{ $cell }}
لا توجد بيانات تطابق معايير البحث
{{-- Footer with totals if available --}} @if(isset($totals) && $totals)
@foreach($totals as $label => $value)
{{ $label }}: {{ $value }}
@endforeach
@endif
{{-- Pagination --}} @if(isset($data) && $data instanceof \Illuminate\Pagination\LengthAwarePaginator && $data->hasPages())
{{ $data->links() }}
@endif
@push('styles') @endpush @endsection