```php
<?php

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

$data=Request::post();

try {

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

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

$aadhaar_front=Upload::image('aadhaar_front','kyc');
$aadhaar_back=Upload::image('aadhaar_back','kyc');
$pan_card=Upload::image('pan_card','kyc');

$conn->prepare("

UPDATE provider_kyc

SET
aadhaar_front=:aadhaar_front,
aadhaar_back=:aadhaar_back,
pan_card=:pan_card,
verification_status='pending',
rejection_reason=NULL

WHERE provider_id=:provider_id

")->execute([

':provider_id'=>$data['provider_id'],
':aadhaar_front'=>$aadhaar_front,
':aadhaar_back'=>$aadhaar_back,
':pan_card'=>$pan_card

]);

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

}
catch(Exception $e){

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

}