@extends('layouts.app') @section('mobile-title', 'Reports') @section('mobile-subtitle', 'Field report register') @can('create', \App\Models\Report::class) @section('mobile-action-url', route('reports.create')) @section('mobile-action-icon', 'add') @section('mobile-action-label', 'New report') @endcan @section('content') @php $visibleReports = collect($reports->items()); $pendingCount = $visibleReports->where('status', \App\Models\Report::STATUS_SUBMITTED)->count(); $approvedCount = $visibleReports->where('status', \App\Models\Report::STATUS_APPROVED)->count(); $complianceScore = $visibleReports->count() > 0 ? round(($approvedCount / $visibleReports->count()) * 100, 1) : 0; @endphp
Manage, analyze, and export operational data.