```php
<?php

require_once '../../core/api_bootstrap.php';

require_once '../../core/employee_auth.php';
EmployeeAuth::check('verify_kyc');

$data=Request::post();

try {

Validator::required($data,['provider_id']);

$db=new Database();
$conn=$db->connect();

$conn->prepare("

UPDATE provider_kyc

SET
verification_status='approved',
verified_at=NOW()

WHERE provider_id=:provider_id

")->execute([

':provider_id'=>$data['provider_id']

]);

$conn->prepare("

UPDATE providers
SET kyc_status='approved'
WHERE id=:provider_id

")->execute([

':provider_id'=>$data['provider_id']

]);

Response::success([],"KYC approved");

}
catch(Exception $e){

Logger::log("system.log",$e->getMessage());
Response::error("Server error",500);

}