@extends('layouts.app') @section('title', 'Laporan Data Pasien - MCU Klinik Mustika') @section('breadcrumb')

Laporan Data Pasien

@endsection @section('content')
Total Pasien

{{ number_format($stats['total_patients']) }}

MCU Selesai

{{ number_format($stats['completed_exams']) }}

MCU Proses

{{ number_format($stats['pending_exams']) }}

Bulan Ini

{{ number_format($stats['this_month']) }}

Data Pemeriksaan Pasien

@canRoute ('reports.patients.export') Export Excel @endcanRoute
@if (request()->has('company_id') || request()->has('date_filter') || request()->has('date_from') || request()->has('search'))
Filter Aktif: @if (request('company_id') && request('company_id') !== 'all') Perusahaan: {{ $companies->find(request('company_id'))->name ?? 'N/A' }} @endif @if (request('date_filter') && request('date_filter') !== 'all') @switch (request('date_filter')) @case ('this_month') Bulan Ini @break @case ('this_year') Tahun Ini @break @endswitch @endif @if (request('date_from') && request('date_to')) Periode: {{ request('date_from') }} - {{ request('date_to') }} @endif @if (request('search')) Pencarian: "{{ request('search') }}" @endif
@canRoute ('reports.patients') Reset Filter @endcanRoute
@endif
@forelse ($appointments as $appointment) @empty @endforelse
No. No. RM Nama Pasien Perusahaan Paket MCU Tanggal MCU Status MCU Aksi
{{ $loop->iteration + ($appointments->currentPage() - 1) * $appointments->perPage() }} {{ $appointment->patient->medical_record_number }}
{{ substr($appointment->patient->name, 0, 1) }}
{{ $appointment->patient->name }}
{{ $appointment->patient->gender === 'male' ? 'Laki-laki' : 'Perempuan' }}
{{ $appointment->company->name ?? '-' }} {{ $appointment->mcuPackage->name ?? '-' }} @if ($appointment->appointment_date) {{ \Carbon\Carbon::parse($appointment->appointment_date)->format( 'd/m/Y', ) }} @else - @endif @if ($appointment->mcuResult && in_array($appointment->mcuResult->status, ['finalized', 'published'])) Selesai @elseif ($appointment->mcuResult) Proses @else Belum MCU @endif
@canRoute ('appointments.show') @endcanRoute @if ($appointment->mcuResult && in_array($appointment->mcuResult->status, ['finalized', 'published'])) @canRoute ('reports.mcu-pdf') @endcanRoute @endif
Tidak ada data pasien

Belum ada data pemeriksaan pasien yang sesuai dengan filter.

@if ($appointments->hasPages())
Menampilkan {{ $appointments->firstItem() }} sampai {{ $appointments->lastItem() }} dari {{ $appointments->total() }} data
{{ $appointments->appends(request()->query())->links() }}
@endif
@endsection @push('scripts') @endpush