@extends('layouts.app') @section('title', __('MEC SIMS Visits')) @push('stylesheets') @include('reports.partials.mec-listing-table-styles') @include('partials.index-datatable-styles') @include('partials.filter-card-styles') @endpush @section('contents') @php $visitsToolbar = '
' . '
' . view('reports.partials.mec-listing-scheme-name-toggle')->render() . '
' . '
' . '

' . e(__('Click a scheme name to view visit details.')) . '

' . '
' . '
'; @endphp
@forelse ($rows as $row) @php $st = $row['plan_status'] ?? ''; $statusBadgeClass = $st === 'approved' ? 'success' : ($st === 'rejected' ? 'danger' : ($st === 'draft' ? 'secondary' : 'info')); $modalUrl = route('mec-sims.visits.modal-body', ['planScheme' => $row['plan_scheme_id']]); @endphp {{ $row['adp_number'] }} {{ $row['scheme_uid'] }} @php $schemeNameClass = trim((string) ($row['scheme_name_color_class'] ?? '')); @endphp @if (user_can_open_mec_sims_visit_modal()) {{ $row['scheme_name_truncated'] ?? $row['scheme_name'] }} @else {{ $row['scheme_name_truncated'] ?? $row['scheme_name'] }} @endif {{ $row['visit_date'] }} {{ $row['district'] }} @empty @endforelse
@if (user_can_open_mec_sims_visit_modal()) @endif @endsection @push('scripts') @include('partials.index-datatable-scripts') @include('reports.partials.mec-listing-scheme-name-toggle-scripts') @endpush