Convert Date in dd/mm/yyyy (28-07-2022) format coming from database.
echo date("d-m-Y", strtotime($item['CreatedDate']));
Signup to Google Recaptcha and get the public and private key.
Make a Model named CaptchaResponse in Model folder and add the given code below.
public function DelContact($field,$val)
{
$db = new ContactModel();
$db->where($field,$val)->delete();
return redirect()->to(site_url('admin/contact'));
}
<a href="<?php echo
site_url('admin/DelContact/ID/123'); ?>" onclick="return
confirm('Are you sure to delete this record')">