@extends('layouts.app') @section('title', 'Generate Report') @push('stylesheets') @include('reports.partials.mec-listing-table-styles') @include('partials.index-datatable-styles') @include('partials.filter-card-styles') @endpush @section('contents') @if (session('warning'))
@endif @php $schemeSelectionToolbar = '
' . view('reports.partials.mec-listing-scheme-name-toggle')->render() . '
' . '

' . e(__('Click a scheme name to open the report wizard and choose the report type and options.')) . '

'; $schemeSelectionIntroHtml = view('reports.partials.scheme-selection-intro', ['reportType' => $reportType])->render(); @endphp
@foreach ($rows as $row) @php $st = $row['plan_status'] ?? ''; $statusBadgeClass = $st === 'approved' ? 'success' : ($st === 'rejected' ? 'danger' : ($st === 'draft' ? 'secondary' : 'info')); $reportWriteUrl = route('reports.create.details', [ 'plan_scheme_id' => $row['plan_scheme_id'], 'report_entry' => $reportType, ]); $pendingChangeRequest = ! empty($row['pending_change_request']); @endphp @if (filled($row['plan_type'] ?? null)) {{ $row['plan_type'] }} @else @endif {{ (int) ($row['plan_scheme_count'] ?? 0) }} {{ $row['adp_number'] }} {{ $row['scheme_uid'] }} @php $reportSchemeNameClass = trim((string) ($row['scheme_name_color_class'] ?? '')); @endphp {{ $row['scheme_name_truncated'] ?? $row['scheme_name'] }} {{ $row['visit_date'] }} {{ $row['district'] }} {{ $row['plan_status_label'] }} @endforeach
@endsection @push('scripts') @include('partials.index-datatable-scripts') @include('reports.partials.mec-listing-scheme-name-toggle-scripts') @endpush