This commit is contained in:
Link Medis Sehat
2023-12-07 09:29:02 +07:00
parent c365e6b021
commit 6edf7311f3
2 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ class PaymentController extends Controller
{
// return $request->toArray();
$appointments = Appointment::query()
->where('sPaymentStatus', 'settlement')
->where('sPaymentStatus', '!=' ,'cod')
->with(['healthCare', 'healthCare.commission', 'detail', 'user', 'doctor', 'doctor.user']);
if ($request->has('search')) {
@@ -55,8 +55,8 @@ class PaymentController extends Controller
// });
$appointments = $appointments->where(function($q) use ($request) {
$q->where('dAgreeOn', '>=', $request->appointment_start)
->where('dAgreeOn', '<=', $request->appointment_end);
$q->where('dCreateOn', '>=', $request->appointment_start)
->where('dCreateOn', '<=', $request->appointment_end);
});
}