Cordova android fcm plugin jquery php background notification on click

I make app with cordova and Google FMC notification plugin and everything work great until app is in foreground. //MY index.php <div id=”load”></div> <script> FCMPlugin.onNotification(function(data){ alert( JSON.stringify(data) ); // I DONT UNDERSTAND THIS SECTION ??? // WHAT I SCHOULT DO HERE??? if(data.wasTapped){ //Notification was received on device tray and tapped by the user. alert( JSON.stringify(data)…

How to pass all row data in eloquent and get with jquery

I have a case study here. i want get row when option selected with jquery and set value textfield where id from option selected, and in my case iam confused get all row from eloquent with jquery ,please help me controller public function getID($id) { $data = TunjanganPenggajianModel::where(‘nip’,$id)->get(); echo json_encode($data); } jquery $(document).ready(function () {…

jQuery wrapping all headers and below elements until the next header

I want to wrap the header including the elements below it until the next header into one div. So the image above will be like <div> <h3>PAGE TITLE HERE</h3> <p>…</p> …othercontent </div> <div> <h4>PAGE TITLE HERE</h4> <p>…</p> …othercontent </div> <div> <h4>PAGE TITLE HERE</h4> <p>…</p> …othercontent </div> <div> <h4>PAGE TITLE HERE</h4> <p>…</p> …othercontent </div> I’m thinking…