```php
<?php

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

$data = Request::post();

try {

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

$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');

$query="

INSERT INTO provider_kyc
(
provider_id,
aadhaar_number,
aadhaar_front,
aadhaar_back,
pan_number,
pan_card
)

VALUES
(
:provider_id,
:aadhaar_number,
:aadhaar_front,
:aadhaar_back,
:pan_number,
:pan_card
)

";

$stmt=$conn->prepare($query);

$stmt->execute([

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

]);

Response::success([
"kyc_id"=>$conn->lastInsertId()
],"KYC submitted");

}
catch(Exception $e){

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

}