| xqd
@@ -186,11 +186,13 @@ class DocterController extends AuthController
|
|
|
'latitude' => 'numeric',
|
|
|
'longitude' => 'numeric',
|
|
|
]);
|
|
|
+ $user = $this->user;
|
|
|
$builder = Schedule::with(['schedulePeriod.timePeriod', 'schedulePeriod.organization'])->where('docter_id', $req['docter_id'])->where('schedule_type',1)->where('schedule_day', '>=', date('Ymd'))->orderBy('schedule_day');
|
|
|
// if (!empty($req['organization_id'])) {
|
|
|
// $builder->where('organization_id', $req['organization_id']);
|
|
|
// }
|
|
|
$data = $builder->paginate($req['per_page']??15)->toArray();
|
|
|
+ \Log::info($data);
|
|
|
if (!empty($data)) {
|
|
|
foreach ($data['data'] as $k => &$v) {
|
|
|
foreach ($v['schedule_period'] as $k1 => &$v1) {
|