PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` pluck('device_key')->all(); $serverKey = 'AAAArekjk-c:APA91bHtu0pvqA5EsVKYJgbGkqsi97MLOoqueLzpig9LLyiiKKGwHsx6RvUp2TAFJ-0qgr854cWIA7LbBDel-N_RVYkUX1hWbFGv8JQWUbWL72bc5VLMyBlfr8nOGzZRaEOKpDNZbM09'; $data = [ "registration_ids" => $FcmToken, "notification" => [ "title" => $title, "body" => $body, ] ]; $encodedData = json_encode($data); $headers = [ 'Authorization:key=' . $serverKey, 'Content-Type: application/json', ]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); // Disabling SSL Certificate support temporarly curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_POSTFIELDS, $encodedData); // Execute post $result = curl_exec($ch); // dd($result); if ($result) { return true; } else{ return false; } } function customerBooking($url,$data){ $firebase = (new Factory)->withServiceAccount(__DIR__.'/vanam.json')->withDatabaseUri('https://affixcity-a158a-default-rtdb.asia-southeast1.firebasedatabase.app/'); $database = $firebase->createDatabase(); $newPost = $database->getReference($url)->set($data); } function customerBookingStatus($url,$data){ $firebase = (new Factory)->withServiceAccount(__DIR__.'/vanam.json')->withDatabaseUri('https://affixcity-a158a-default-rtdb.asia-southeast1.firebasedatabase.app/'); $database = $firebase->createDatabase(); $newPost = $database->getReference($url)->set($data); } function customerBookingStatusUpdate($url,$data){ $firebase = (new Factory)->withServiceAccount(__DIR__.'/vanam.json')->withDatabaseUri('https://affixcity-a158a-default-rtdb.asia-southeast1.firebasedatabase.app/'); $database = $firebase->createDatabase(); $newPost = $database->getReference($url)->update($data); } function customerBookingStatusDelete($url){ $firebase = (new Factory)->withServiceAccount(__DIR__.'/vanam.json')->withDatabaseUri('https://affixcity-a158a-default-rtdb.asia-southeast1.firebasedatabase.app/'); $database = $firebase->createDatabase(); $reference = $database->getReference($url); $snapshot = $reference->getSnapshot(); $snapshot->getValue(); $reference->remove(); } function customerBookingStatusGet($url){ $firebase = (new Factory)->withServiceAccount(__DIR__.'/vanam.json')->withDatabaseUri('https://affixcity-a158a-default-rtdb.asia-southeast1.firebasedatabase.app/'); $database = $firebase->createDatabase(); $reference = $database->getReference($url); $snapshot = $reference->getSnapshot(); return $snapshot->getValue(); } function customerBookingDelete($url,$id){ $firebase = (new Factory)->withServiceAccount(__DIR__.'/vanam.json')->withDatabaseUri('https://affixcity-a158a-default-rtdb.asia-southeast1.firebasedatabase.app/'); $database = $firebase->createDatabase(); $reference = $database->getReference($url); $snapshot = $reference->getSnapshot(); $snapshot->getValue(); $reference->remove(); } function customerBookingCheck($url,$id){ $firebase = (new Factory)->withServiceAccount(__DIR__.'/vanam.json')->withDatabaseUri('https://affixcity-a158a-default-rtdb.asia-southeast1.firebasedatabase.app/'); $database = $firebase->createDatabase(); $reference = $database->getReference($url); $snapshot = $reference->getSnapshot(); return $snapshot->getValue(); } function customerBookingUpdate($url,$data){ $firebase = (new Factory)->withServiceAccount(__DIR__.'/vanam.json')->withDatabaseUri('https://affixcity-a158a-default-rtdb.asia-southeast1.firebasedatabase.app/'); $database = $firebase->createDatabase(); $newPost = $database->getReference($url)->set($data); } }