diff --git a/app/Console/Commands/SendSupervisorCheckStatsCommand.php b/app/Console/Commands/SendSupervisorCheckStatsCommand.php index 2743ef1..0e67815 100644 --- a/app/Console/Commands/SendSupervisorCheckStatsCommand.php +++ b/app/Console/Commands/SendSupervisorCheckStatsCommand.php @@ -12,7 +12,7 @@ class SendSupervisorCheckStatsCommand extends Command * * @var string */ - protected $signature = 'app:send-supervisor-check-stats'; + protected $signature = 'report:send-supervisor-check-stats'; /** * The console command description. @@ -24,7 +24,7 @@ class SendSupervisorCheckStatsCommand extends Command /** * Execute the console command. */ - public function handle(SendSupervisorCheckStatsReportService $service) + public function handle(SendSupervisorCheckStatsReportService $service): void { $service->execute(); $this->info('Done!'); diff --git a/app/Http/Controllers/HeadquartersDashboard/CumulativeSupervisorPerformanceStatsController.php b/app/Http/Controllers/HeadquartersDashboard/CumulativeSupervisorPerformanceStatsController.php index cf2b528..efe7807 100644 --- a/app/Http/Controllers/HeadquartersDashboard/CumulativeSupervisorPerformanceStatsController.php +++ b/app/Http/Controllers/HeadquartersDashboard/CumulativeSupervisorPerformanceStatsController.php @@ -12,7 +12,7 @@ class CumulativeSupervisorPerformanceStatsController extends Controller { public function index(Request $request): JsonResponse { - $query = DB::table('expert_performances')->selectRaw(" + $query = DB::table('supervisor_performances')->selectRaw(" province_id, province_name, SUM(calls) AS total, @@ -21,7 +21,7 @@ class CumulativeSupervisorPerformanceStatsController extends Controller SUM(bad) AS bad ") ->groupBy('province_id', 'province_name') - ->unionAll(DB::table('expert_performances')->selectRaw(" + ->unionAll(DB::table('supervisor_performances')->selectRaw(" 0 as province_id, 'کشوری' as province_name, SUM(calls) AS total, diff --git a/public/file_example_WAV_1MG.wav b/public/file_example_WAV_1MG.wav new file mode 100644 index 0000000..3179e0e Binary files /dev/null and b/public/file_example_WAV_1MG.wav differ diff --git a/routes/console.php b/routes/console.php index 8243f79..31b8b56 100644 --- a/routes/console.php +++ b/routes/console.php @@ -3,11 +3,8 @@ use Illuminate\Foundation\Inspiring; use Illuminate\Support\Facades\Artisan; -Artisan::command('inspire', function () { - $this->comment(Inspiring::quote()); -})->purpose('Display an inspiring quote'); - Schedule::command('report:send-call-stats')->everyTwoMinutes(); Schedule::command('report:send-system-message-stats')->everyThreeMinutes(); Schedule::command('report:send-keypress-stats')->everyFourMinutes(); Schedule::command('report:send-people-message-stats')->everyFiveMinutes(); +Schedule::command('report:send-supervisor-check-stats')->everyFiveMinutes();