<?php

namespace App\Http\Controllers\Api\V1;

use App\Helpers\ApiResponse;
use App\Http\Controllers\Controller;
use App\Services\StatusBoardService;

/**
 * CEO 대시보드 현황판 컨트롤러
 */
class StatusBoardController extends Controller
{
    public function __construct(
        private readonly StatusBoardService $statusBoardService
    ) {}

    /**
     * 현황판 요약 데이터 조회
     */
    public function summary()
    {
        return ApiResponse::handle(function () {
            return $this->statusBoardService->summary();
        }, __('message.fetched'));
    }
}
