comment nIDAppointment
This commit is contained in:
@@ -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')
|
$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) {
|
->where(function (Builder $query) use ($startDate, $endDate) {
|
||||||
$query->where('nIDAppointment', '!=', null);
|
// $query->where('nIDAppointment', '!=', null);
|
||||||
$query->where('nIDAppointment', '!=', '');
|
// $query->where('nIDAppointment', '!=', '');
|
||||||
if ($startDate) {
|
if ($startDate) {
|
||||||
$query->where('dCreateOn', '>=', $startDate);
|
$query->where('dCreateOn', '>=', $startDate);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user