/**
  * Delete confirmation message by Ajaxis
  *
  * @link  https://github.com/amranidev/ajaxis
  *
  * @return  String
  */
 public function DeleteMsg($id)
 {
     $msg = Ajaxis::MtDeleting('Warning!!', 'Would you like to remove This?', '/permiso/' . $id . '/delete/');
     if (Request::ajax()) {
         return $msg;
     }
 }
 /**
  * Deleting confirmation message
  *
  * @param int $id
  * @return \Amranidev\Ajaxis\Ajaxis
  */
 public function delete($id)
 {
     $api = '/ContactMt/' . $id . '/destroy';
     $Ajaxis = Ajaxis::MtDeleting('Delete', 'Are you sure to delete this contact ?', $api);
     if (Request::ajax()) {
         return $Ajaxis;
     }
 }
Exemple #3
0
 public function delete($id)
 {
     $api = '/tasks/' . $id . '/destroy';
     $Ajaxis = Ajaxis::MtDeleting('Delete', 'Seguro de borrar esta tarea ?', $api);
     if (Request::ajax()) {
         return $Ajaxis;
     }
 }