@extends('layouts.admin') @section('title', 'Custom Report Results') @section('content')

Custom Report Results

{{ ucfirst($validated['report_type']) }} report generated for {{ $validated['date_from'] }} to {{ $validated['date_to'] }}

New Report Back to Reports
Report Parameters
Report Type:
{{ ucfirst($validated['report_type']) }}
Chart Type:
{{ ucfirst($validated['chart_type']) }}
Date Range:
{{ \Carbon\Carbon::parse($validated['date_from'])->format('M d, Y') }} - {{ \Carbon\Carbon::parse($validated['date_to'])->format('M d, Y') }}
Metrics:
@foreach($validated['metrics'] as $metric) {{ ucfirst(str_replace('_', ' ', $metric)) }} @endforeach
@if(!empty($validated['group_by']))
Grouped By: {{ ucfirst($validated['group_by']) }}
@endif
Report Data
@if($validated['chart_type'] === 'table')
@foreach($validated['metrics'] as $metric) @endforeach @if(isset($reportData['data']) && count($reportData['data']) > 0) @foreach($reportData['data'] as $metric => $value) @endforeach @else @endif
Item{{ ucfirst(str_replace('_', ' ', $metric)) }}
{{ ucfirst(str_replace('_', ' ', $metric)) }} {{ is_numeric($value) ? number_format($value, 2) : $value }}
No data available for the selected criteria
@else
{{ ucfirst($validated['chart_type']) }} Chart

Chart visualization would be displayed here

@if(isset($reportData['data']) && count($reportData['data']) > 0)
Data Summary:
@foreach($reportData['data'] as $metric => $value)
{{ is_numeric($value) ? number_format($value, 2) : $value }}
{{ ucfirst(str_replace('_', ' ', $metric)) }}
@endforeach
@endif
@endif
@if(isset($reportData['raw_data']) && $reportData['raw_data']->count() > 0)
Raw Data Sample (First 10 Records)
@if($validated['report_type'] === 'applications') @elseif($validated['report_type'] === 'positions') @elseif($validated['report_type'] === 'users') @elseif($validated['report_type'] === 'departments') @endif @foreach($reportData['raw_data']->take(10) as $item) @if($validated['report_type'] === 'applications') @elseif($validated['report_type'] === 'positions') @elseif($validated['report_type'] === 'users') @elseif($validated['report_type'] === 'departments') @endif @endforeach
IDUser Position StatusTitle Department StatusName Email RoleName StatusCreated Date
{{ $item->id }}{{ $item->user->name ?? 'N/A' }} {{ $item->advertisement->title ?? 'N/A' }} {{ ucfirst($item->status) }} {{ $item->title }} {{ $item->department->name ?? 'N/A' }} {{ ucfirst($item->status) }} {{ $item->name }} {{ $item->email }} {{ ucfirst($item->role) }} {{ $item->name }} {{ ucfirst($item->status ?? 'active') }} {{ $item->created_at->format('M d, Y H:i') }}
@if($reportData['raw_data']->count() > 10)

Showing 10 of {{ $reportData['raw_data']->count() }} total records

@endif
@endif
Export Options

Export this report in various formats:

@endsection