@extends('layouts.app') @section('title', 'Reports') @section('content')
Operational reporting
Projects, workload, support and payments within your permissions. Dates use {{ config('app.timezone') }}.
Project stages, workload and correction counts describe the current state of projects created in the selected period. Completion totals and average turnaround use projects completed in the period, including earlier submissions.
No authorized projects in this period.
@endforelseAverage submission-to-completion: {{ $turnaroundDays !== null ? number_format($turnaroundDays, 2).' days' : 'No completed projects' }}
Regular QC returns: {{ $qcReturns }} · Final QC returns: {{ $finalQcReturns }}
| Employee | Active projects | Overdue | Corrections | QC returned |
|---|---|---|---|---|
| {{ $employee->name }} | {{ $employee->active_projects }} | {{ $employee->overdue_projects }} | {{ $employee->correction_projects }} | {{ $employee->qc_returned_projects }} |
| No active assignments in this report scope. | ||||
Oldest open cycle created: {{ $oldestCorrection ? Illuminate\Support\Carbon::parse($oldestCorrection)->format('d M Y H:i') : 'None' }}
{{ $ticketCount }} tickets opened in period · {{ $overdueTickets }} currently overdue · {{ $escalatedTickets }} active escalations
Received totals use payment dates in the selected period. Refunds use settlement dates; net receipts are received less refunded. Outstanding balances use accepted quotations created in the period, less all verified payments to date; credit notes offset refunded amounts. Currencies and precisions are kept separate.
| Currency | Payments | Received | Refunded | Net receipts | Outstanding |
|---|---|---|---|---|---|
| {{ $group['currency'] }} | {{ $group['payments'] }} | {{ App\Support\Money::format($group['received'], $group['precision']) }} | {{ App\Support\Money::format($group['refunded'] ?? 0, $group['precision']) }} | {{ App\Support\Money::format($group['received'] - ($group['refunded'] ?? 0), $group['precision']) }} | {{ App\Support\Money::format($group['outstanding'], $group['precision']) }} |
| No verified payments, refunds or accepted quotations in this period. | |||||
| Project | Market | Team | Stage |
|---|---|---|---|
| {{ $project->title }} | {{ $project->market->name }} | {{ $project->team?->name ?: 'Unallocated' }} | {{ App\Models\Project::STATUSES[$project->status] }} |
| No authorized projects match this report. | |||