<?php

namespace App\Console\Commands;

use App\Tool\SmsTools;
use Illuminate\Console\Command;
use App\Mail\reporter;
use Illuminate\Support\Facades\Mail;
class DailyReport extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'daily:report';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'creates report for kwik Admin';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
       // $message = urlencode('A new request has been made on the Kwik Ad');
      //  $num = urlencode('0203450921'); // must be replaced with the admins phone number
      //  SmsTools::send_sms('0203450921', "Ice-T testing on kwik ad");
        mail::send(new reporter());
        return 'successfully sent';

    }
}
