<?php

namespace App\Http\Controllers\Api\V1\Admin;

use App\Enums\UserRole;
use App\Http\Controllers\Controller;
use App\Support\ApiResponse;

class RoleAdminController extends Controller
{
    use ApiResponse;

    public function __invoke()
    {
        return $this->success([
            'roles' => array_map(fn (UserRole $role) => $role->value, UserRole::cases()),
            'assistant_assignment_permissions' => [
                'can_create_patient',
                'can_book_appointment',
                'can_check_in',
                'can_reschedule',
                'can_cancel',
                'can_edit_patient',
                'can_collect_payment',
            ],
        ]);
    }
}
