feat: patient view, media player, and rich editor enhancements
This commit is contained in:
@@ -48,11 +48,13 @@ protected function buildQuery()
|
||||
$query = Visit::query();
|
||||
|
||||
if ($this->fromDate) {
|
||||
$query->whereDate('visit_date', '>=', $this->fromDate);
|
||||
$fromDate = \Carbon\Carbon::parse($this->fromDate)->format('Y-m-d');
|
||||
$query->whereRaw("SUBSTRING(visit_date, 1, 10) >= ?", [$fromDate]);
|
||||
}
|
||||
|
||||
if ($this->toDate) {
|
||||
$query->whereDate('visit_date', '<=', $this->toDate);
|
||||
$toDate = \Carbon\Carbon::parse($this->toDate)->format('Y-m-d');
|
||||
$query->whereRaw("SUBSTRING(visit_date, 1, 10) <= ?", [$toDate]);
|
||||
}
|
||||
|
||||
if ($this->doctor) {
|
||||
|
||||
Reference in New Issue
Block a user