%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/ugotscom/bos_naturals/app/Http/Controllers/
Upload File :
Create Path :
Current File : /home/ugotscom/bos_naturals/app/Http/Controllers/NotificationController.php

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class NotificationController extends Controller
{
    public function sendSmsNotificaition()
    {
        $numbers ='9746512924,7306462654';    
        $text='2 BHK Apartment';
        $type='sale';
        $location='kaloor';
      
        $curl = curl_init();
        curl_setopt_array($curl, array(
        CURLOPT_RETURNTRANSFER => 1,
        CURLOPT_RETURNTRANSFER => 1,
        CURLOPT_URL => "http://api.unifiedbuzz.com/sms/insent",
        CURLOPT_POST => 1,
        CURLOPT_CUSTOMREQUEST => 'POST',
        CURLOPT_HTTPHEADER => array('X-API-Key:6d6be6da62a7007592af19aab38aeaff'),
        CURLOPT_POSTFIELDS => array(
                'entity_id'     => '1001497350000052702',
                'template_id'   => '1407165244181079076',
                'mobile'        => $numbers,
                'text'          => 'Hi,We have a '.$text.' Listed for '.$type.' at '.$location.'. Please contact us at '.$text.' if required or Refer us. www.karetakers.in,+919961665000',
                'type'          => '2',
                'sender'        => '299616',
                'format'        => 'json')));
        $response = curl_exec($curl);
        curl_close($curl);
        print_r($response);
                  $curl = curl_init();
     
    }
        public function sitevisitsms(Request $request)
    {
        
        $numbers =$request->phone;    
        $text=$request->client_name;
        $time=$request->time;
        $type=$request->property_names;
        $location=$request->date.' '.$request->time;      
        $curl = curl_init();
        curl_setopt_array($curl, array(
        CURLOPT_RETURNTRANSFER => 1,
        CURLOPT_RETURNTRANSFER => 1,
        CURLOPT_URL => "http://api.unifiedbuzz.com/sms/insent",
        CURLOPT_POST => 1,
        CURLOPT_CUSTOMREQUEST => 'POST',
        CURLOPT_HTTPHEADER => array('X-API-Key:6d6be6da62a7007592af19aab38aeaff'),
        CURLOPT_POSTFIELDS => array(
                'entity_id'     => '1001497350000052702',
                'template_id'   => '1407165278767798636',
                'mobile'        => $numbers,
                'text'          => 'Hi '.$text.',Your Site Visit for '.$type.' is scheduled for '.$location.'.For any assistance,Contact +919961665000',
                'type'          => '1',
                'sender'        => 'KRTAKR',
                'format'        => 'json')));
        $response = curl_exec($curl);
        curl_close($curl);
        print_r($response);
                  $curl = curl_init();
     
    }
    public function landtaxsms(Request $request)
    {
        
        $numbers ='9746512924';    
        //$text=$request->client_name;
        $link='link';
        $property_name='Chackolas heights 7e';
        $location='Thevara';      
        $curl = curl_init();
        curl_setopt_array($curl, array(
        CURLOPT_RETURNTRANSFER => 1,
        CURLOPT_RETURNTRANSFER => 1,
        CURLOPT_URL => "http://api.unifiedbuzz.com/sms/insent",
        CURLOPT_POST => 1,
        CURLOPT_CUSTOMREQUEST => 'POST',
        CURLOPT_HTTPHEADER => array('X-API-Key:6d6be6da62a7007592af19aab38aeaff'),
        CURLOPT_POSTFIELDS => array(
                'entity_id'     => '1001497350000052702',
                'template_id'   => '1407165278416051648',
                'mobile'        => $numbers,
                'text'          => 'Building tax of Your '.$property_name.' at '.$location.' is due.Click '.$link.'.Ignore if paid.',            
                'type'          => '1',
                'sender'        => 'KRTAKR',
                'format'        => 'json')));
        $response = curl_exec($curl);
        curl_close($curl);
        print_r($response);
                  $curl = curl_init();
     
    }

    public function rentalremindersms(Request $request)
    {
        
        $numbers ='9746512924';    
        //$text=$request->client_name;
        $cname='Fathima';
        $date='20 Jun 2022';           
        $curl = curl_init();
        curl_setopt_array($curl, array(
        CURLOPT_RETURNTRANSFER => 1,
        CURLOPT_RETURNTRANSFER => 1,
        CURLOPT_URL => "http://api.unifiedbuzz.com/sms/insent",
        CURLOPT_POST => 1,
        CURLOPT_CUSTOMREQUEST => 'POST',
        CURLOPT_HTTPHEADER => array('X-API-Key:6d6be6da62a7007592af19aab38aeaff'),
        CURLOPT_POSTFIELDS => array(
                'entity_id'     => '1001497350000052702',
                'template_id'   => '1407165389130686935',
                'mobile'        => $numbers,
                'text'          => 'Hi '.$cname.',Your rental payment is is due on '.$date.'.Please share screenshot of Payment in Whatsapp.Kindly ignore if already paid.',            
                'type'          => '1',
                'sender'        => 'KRTAKR',
                'format'        => 'json')));
        $response = curl_exec($curl);
        curl_close($curl);
        print_r($response);
                  $curl = curl_init();
     
    }
}

Zerion Mini Shell 1.0