@extends('layouts.apoteker') @section('title', 'Dashboard Apoteker') @section('content')

๐Ÿ‘จโ€โš•๏ธ Selamat datang, {{ auth()->user()->name }}

{{-- ๐Ÿ“ฆ Katalog --}}

๐Ÿ“ฆ Katalog Saya

{{ \App\Models\Catalog::where('created_by', auth()->id())->count() }}

{{-- ๐Ÿงพ Transaksi Saya --}} @php $jumlahTransaksiSaya = \App\Models\Transaction::whereHas('items.catalog', function ($q) { $q->where('created_by', auth()->id()); })->distinct('id')->count(); @endphp {{-- Kartu Statistik --}}

๐Ÿงพ Transaksi Produk Saya

{{ $jumlahTransaksiSaya }}

{{-- ๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘ Pasien --}}

๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘ Jumlah Pasien

{{ \App\Models\Patient::where('apoteker_id', auth()->id())->count() }}

{{-- ๐Ÿงพ Monitoring Naranjo --}}

๐Ÿงพ Monitoring Naranjo

{{ \App\Models\NaranjoMonitoring::where('created_by', auth()->id())->count() }}

{{-- ๐Ÿ’Š Skrining Resep --}}

๐Ÿ’Š Skrining Resep

{{ \App\Models\PrescriptionScreening::where('apoteker_id', auth()->id())->count() }}

{{-- ๐Ÿ  Home Pharmacy Care --}}

๐Ÿ  Home Pharmacy Care

{{ \App\Models\HomePharmacyVisit::where('apoteker_id', auth()->id())->count() }}

{{-- ๐Ÿ’ฌ Konseling --}}

๐Ÿ’ฌ Konseling

{{ \App\Models\Konseling::where('apoteker_id', auth()->id())->count() }}

{{-- ๐Ÿ“‘ Informasi Obat (PIO) --}}

๐Ÿ“‘ Informasi Obat (PIO)

{{ \App\Models\PioDocument::where('apoteker_id', auth()->id())->count() }}

{{-- ๐Ÿ“ฐ Berita --}}

๐Ÿ“ฐ Berita Saya

{{ \App\Models\News::where('created_by', auth()->id())->count() }}

@endsection