done -> testing in production

This commit is contained in:
JokoPrasetio 2025-08-21 13:31:32 +07:00
parent f15f9dee45
commit f9e6283d10
4 changed files with 8 additions and 10 deletions

View File

@ -577,7 +577,7 @@ class CustomerController extends Controller
}
// 2. Baru query kalau ada keyword
$data =Karyawan::where('statusenabled', true)
$data =Karyawan::where('statusenabled', true)->where('kedudukanfk', 1)
->where('namalengkap', 'ILIKE', "%{$search}%")
->limit(5)
->pluck('namalengkap') // langsung ambil string

View File

@ -61,15 +61,15 @@ class DashboardController extends Controller
'note_dibatalkan' => $first->note_dibatalkan,
];
})->values();
$pemasukanKaryawan = $grouped->where('jenis_customer', 'Karyawan RSAB Harapan Kita')->sum('total_harga');
$pemasukanMasyarakat = $grouped->where('jenis_customer', 'Masyarakat Umum')->sum('total_harga');
$pemasukanKeluargaPasien = $grouped->where('jenis_customer', 'Keluarga Pasien / Penunggu Pasien')->sum('total_harga');
$pemasukanKaryawan = $grouped->where('jenis_customer', 'Karyawan RSAB Harapan Kita')->whereNotIn('status_order', ['Belum Bayar'])->sum('total_harga');
$pemasukanMasyarakat = $grouped->where('jenis_customer', 'Masyarakat Umum')->whereNotIn('status_order', ['Belum Bayar'])->sum('total_harga');
$pemasukanKeluargaPasien = $grouped->where('jenis_customer', 'Keluarga Pasien / Penunggu Pasien')->whereNotIn('status_order', ['Belum Bayar'])->sum('total_harga');
$totalPemasukan = $grouped->sum('total_harga');
$pesananPending = $grouped->whereNotIn('status_order', ['Lunas', 'Dibatalkan'])->count();
$totalPemasukan = $grouped->whereNotIn('status_order', ['Belum Bayar'])->sum('total_harga');
$pesananPending = $grouped->whereNotIn('status_order', ['Lunas', 'Dibatalkan', 'Belum Bayar'])->count();
$pesananLunas = $grouped->where('status_order', 'Lunas')->count();
$pesananBatal = $grouped->where('status_order', 'Dibatalkan')->count();
$totalPesanan = $grouped->count();
$totalPesanan = $grouped->whereNotIn('status_order', ['Belum Bayar'])->count();
$pesananSelesai = DB::connection('dbOrderGizi')->table('public.order as o')
->where('o.statusenabled', true)

View File

@ -39,7 +39,7 @@
{{-- Jquery --}}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>\
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.15.2/js/selectize.min.js"
integrity="sha512-IOebNkvA/HZjMM7MxL0NYeLYEalloZ8ckak+NDtOViP7oiYzG5vn6WVXyrJDiJPhl4yRdmNAG49iuLmhkUdVsQ=="

View File

@ -1,6 +1,5 @@
<header id="header" class="header sticky-top">
<div class="branding d-flex align-items-center">
<div class="container position-relative d-flex align-items-center justify-content-between">
@ -9,7 +8,6 @@
<img src="/logo/logo_rsabhk.png" alt="Logo RSAB HARAPAN KITA" class="logo-img">
<h1 class="sitename"></h1>
</a>
<nav id="navmenu" class="navmenu">
{{-- <i class="mobile-nav-toggle d-xl-none bi bi-list"></i> --}}
<div class="d-flex align-items-center gap-2">