|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
|
|
namespace App\Services;
|
|
namespace App\Services;
|
|
|
|
|
|
|
|
|
|
+use App\Enums\ApprovalStatusEnum;
|
|
|
use App\Enums\GenderEnum;
|
|
use App\Enums\GenderEnum;
|
|
|
use App\Enums\ServicePackageStatusEnum;
|
|
use App\Enums\ServicePackageStatusEnum;
|
|
|
use App\Enums\UserTypeEnum;
|
|
use App\Enums\UserTypeEnum;
|
|
@@ -657,6 +658,20 @@ class DashboardService
|
|
|
: null,
|
|
: null,
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
|
|
+ if ($provider->approval_status === ApprovalStatusEnum::PENDING) {
|
|
|
|
|
+ return [
|
|
|
|
|
+ 'headerBar' => $headerBar,
|
|
|
|
|
+ 'summaryInfos' => $summaryInfos,
|
|
|
|
|
+ 'priceSuggested' => null,
|
|
|
|
|
+ 'todayServices' => [],
|
|
|
|
|
+ 'solicitations' => [],
|
|
|
|
|
+ 'nextSchedules' => [],
|
|
|
|
|
+ 'opportunities' => [],
|
|
|
|
|
+ 'notifications' => [],
|
|
|
|
|
+ 'pendingConfirmation' => [],
|
|
|
|
|
+ ];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
$priceSuggestedAvg = Provider::where('user_id', '!=', $user->id)
|
|
$priceSuggestedAvg = Provider::where('user_id', '!=', $user->id)
|
|
|
->whereNotNull('daily_price_8h')
|
|
->whereNotNull('daily_price_8h')
|
|
|
->pluck('daily_price_8h')
|
|
->pluck('daily_price_8h')
|