|
@@ -30,6 +30,7 @@ use Illuminate\Support\Facades\File;
|
|
|
use App\Models\Bill;
|
|
|
use App\Models\ClientSMS;
|
|
|
use App\Models\AccountInvite;
|
|
|
+use App\Models\AppointmentView;
|
|
|
use App\Models\ClientMemo;
|
|
|
use App\Models\ClientProAccess;
|
|
|
use Illuminate\Support\Facades\Http;
|
|
@@ -175,7 +176,7 @@ class McpController extends Controller
|
|
|
public function appointments(Request $request)
|
|
|
{
|
|
|
$filters = $request->all();
|
|
|
- $appointments = Appointment::where('pro_id', $this->performer->pro->id);
|
|
|
+ $appointments = AppointmentView::where('pro_id', $this->performer->pro->id);
|
|
|
$this->filterMultiQuery($request, $appointments, 'raw_date', 'date_category', 'date_value_1', 'date_value_2');
|
|
|
$this->filterSimpleQuery($request, $appointments, 'status', 'status');
|
|
|
$appointments = $appointments->orderBy('end_time', 'DESC')->paginate(20);
|