@extends('layouts.app') @section('title', __('Pending Status')) @php $filters = $summary['filters']; $options = $summary['filter_options']; $officerRows = is_array($officerRows ?? null) ? $officerRows : ($summary['officers'] ?? []); $officerPaginator = $officerPaginator ?? null; $officerTotals = $summary['officer_totals'] ?? null; $selectedReportTypes = is_array($filters['report_types'] ?? null) ? $filters['report_types'] : []; $exportParams = array_filter([ 'date_from' => $filters['date_from'] ?? null, 'date_to' => $filters['date_to'] ?? null, 'date_field' => (($filters['date_field'] ?? '') === \App\Support\MecReportDateFieldFilter::PUBLISHED_DATE) ? \App\Support\MecReportDateFieldFilter::PUBLISHED_DATE : null, 'region_id' => $filters['region_id'] ?? null, ], static fn ($v) => $v !== null && $v !== ''); if ($selectedReportTypes !== []) { $exportParams['report_type'] = $selectedReportTypes; } $exportQuery = http_build_query($exportParams); $rfsResetUrl = route('reports.report-for-sims.index'); $rfsFiltersOpen = (int) ($filters['region_id'] ?? 0) > 0 || ($filters['date_from'] ?? '') !== '' || ($filters['date_to'] ?? '') !== '' || ($filters['date_field'] ?? '') === \App\Support\MecReportDateFieldFilter::PUBLISHED_DATE || $selectedReportTypes !== []; @endphp @push('stylesheets') @include('partials.index-datatable-styles') @include('partials.filter-card-styles') @include('partials.collapsible-filter-styles') @endpush @section('contents')

{{ __('Pending Status') }}

{{ __('Region Wise Pending Status upto :period', ['period' => $summary['title_period']]) }}

{{ __('Export Excel') }}
{{ __('Region Wise Pending Status') }}
@forelse ($summary['regions'] as $row) @empty @endforelse @if (count($summary['regions']) > 0) @endif
{{ __('Region') }} {{ __('Target') }} {{ __('Assigned') }} {{ __('Cancelled') }} {{ __('Published') }} {{ __('Approved') }} {{ __('MEO/SMEO') }} {{ __('RD') }} {{ __('SDM') }} {{ __('D.G') }} {{ __('Pending') }} {{ __('SAT') }} {{ __('SAT%') }} {{ __('UNSAT') }} {{ __('UNSAT%') }}
{{ $row['region'] }} {{ $row['assigned'] }} {{ $row['cancelled'] ?? 0 }} {{ $row['published'] }} {{ $row['approved'] ?? 0 }} {{ $row['meo'] }} {{ $row['rd'] }} {{ $row['sdm'] }} {{ $row['dg'] }} {{ $row['pending'] }} {{ $row['sat'] }} {{ $row['sat_pct'] }}% {{ $row['unsat'] }} {{ $row['unsat_pct'] }}%
{{ __('Total') }} {{ $summary['totals']['assigned'] }} {{ $summary['totals']['cancelled'] ?? 0 }} {{ $summary['totals']['published'] }} {{ $summary['totals']['approved'] ?? 0 }} {{ $summary['totals']['meo'] }} {{ $summary['totals']['rd'] }} {{ $summary['totals']['sdm'] }} {{ $summary['totals']['dg'] }} {{ $summary['totals']['pending'] }} {{ $summary['totals']['sat'] }} {{ $summary['totals']['sat_pct'] }}% {{ $summary['totals']['unsat'] }} {{ $summary['totals']['unsat_pct'] }}%
{{ __('MEO Wise Performance Review') }}
@forelse ($officerRows as $row) @empty @endforelse @if (count($summary['officers']) > 0 && is_array($officerTotals)) @endif
{{ __('Monitoring Officer') }} {{ __('Assigned') }} {{ __('Cancelled') }} {{ __('Published') }} {{ __('Approved') }} {{ __('MEO/SMEO') }} {{ __('RD') }} {{ __('SDM') }} {{ __('D.G') }} {{ __('Pending') }} {{ __('SAT') }} {{ __('SAT%') }} {{ __('UNSAT') }} {{ __('UNSAT%') }}
{{ $row['officer'] }} {{ $row['assigned'] }} {{ $row['cancelled'] ?? 0 }} {{ $row['published'] }} {{ $row['approved'] ?? 0 }} {{ $row['meo'] }} {{ $row['rd'] }} {{ $row['sdm'] }} {{ $row['dg'] }} {{ $row['pending'] }} {{ $row['sat'] }} {{ $row['sat_pct'] }}% {{ $row['unsat'] }} {{ $row['unsat_pct'] }}%
{{ __('Total') }} {{ $officerTotals['assigned'] }} {{ $officerTotals['cancelled'] ?? 0 }} {{ $officerTotals['published'] }} {{ $officerTotals['approved'] ?? 0 }} {{ $officerTotals['meo'] }} {{ $officerTotals['rd'] }} {{ $officerTotals['sdm'] }} {{ $officerTotals['dg'] }} {{ $officerTotals['pending'] }} {{ $officerTotals['sat'] }} {{ $officerTotals['sat_pct'] }}% {{ $officerTotals['unsat'] }} {{ $officerTotals['unsat_pct'] }}%
@include('partials.listing-pagination', [ 'paginator' => $officerPaginator, 'perPage' => $perPage ?? 25, 'baseUrl' => route('reports.report-for-sims.index'), ])
@endsection @push('scripts') @include('partials.index-datatable-scripts') @include('partials.collapsible-filter-scripts') @include('reports.partials.mec-listing-filter-form-scripts') @endpush