comment nIDAppointment

This commit is contained in:
Muhammad Fajar
2023-09-04 14:22:56 +07:00
parent 565c6cbbfc
commit ab194600c2

View File

@@ -64,8 +64,8 @@ class LivechatController extends Controller
$liveChats = Livechat::with('user:nID,sFirstName,sLastName,sEmail,sPhone', 'doctor:nID,nIDSpesialis,nIDUser', 'doctor.user:nID,sFirstName,sLastName', 'appointment:nID,sPaymentStatus', 'appointment.appointmentDetail:nID,nIDAppointment,dTanggalAppointment,tTimeAppointment', 'healthCare:nID,sHealthCare')
->where(function (Builder $query) use ($startDate, $endDate) {
$query->where('nIDAppointment', '!=', null);
$query->where('nIDAppointment', '!=', '');
// $query->where('nIDAppointment', '!=', null);
// $query->where('nIDAppointment', '!=', '');
if ($startDate) {
$query->where('dCreateOn', '>=', $startDate);
}