<?php

namespace App\Http\Controllers;

use App\Mauro;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Mail;
use App\Mail\SendMailable;

class MauroController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        //
        $texto = '';
        $texto .= "As indicações são:<br><br><table border='0'>";
        $texto .= "<tr>";
        $texto .= "<th>Nome do Cliente</th>";
        $texto .= "<th>Data da Criação</th>";
        $texto .= "</tr>";
        $texto .= "<tr>";
        $texto .= "<td>Gabriel Franco</td>";
        $texto .= "<td>".date('d/m/Y H:m:i')."</td>";
        $texto .= "</tr>";
        $texto .= "</table>";

        $t = Mail::to('maurojunior@wingmidia.com.br')->send(new SendMailable($texto,"Indicações Pendentes"));

        var_dump($t);

    }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function create()
    {
        //
    }

    /**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function store(Request $request)
    {
        //
    }

    /**
     * Display the specified resource.
     *
     * @param  \App\Mauro  $mauro
     * @return \Illuminate\Http\Response
     */
    public function show(Mauro $mauro)
    {
        //
    }

    /**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Mauro  $mauro
     * @return \Illuminate\Http\Response
     */
    public function edit(Mauro $mauro)
    {
        //
    }

    /**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Mauro  $mauro
     * @return \Illuminate\Http\Response
     */
    public function update(Request $request, Mauro $mauro)
    {
        //
    }

    /**
     * Remove the specified resource from storage.
     *
     * @param  \App\Mauro  $mauro
     * @return \Illuminate\Http\Response
     */
    public function destroy(Mauro $mauro)
    {
        //
    }
}
