20 lines
441 B
PHP
20 lines
441 B
PHP
<?php
|
|
|
|
use App\Services\Dashboards\TestPackageDashboardService;
|
|
|
|
header('Content-Type: application/json');
|
|
|
|
try {
|
|
$payload = TestPackageDashboardService::statusPivotDataset();
|
|
echo json_encode_tr($payload);
|
|
} catch (\Throwable $th) {
|
|
http_response_code(500);
|
|
echo json_encode_tr([
|
|
'error' => true,
|
|
'message' => $th->getMessage(),
|
|
'file' => $th->getFile(),
|
|
'line' => $th->getLine(),
|
|
]);
|
|
}
|
|
|