<?php

namespace App\Http\Controllers;

use Fivable\Buildable\Controllers\BuildableUtilityController as BaseBuildableUtilityController;

class BuildableUtilityController extends BaseBuildableUtilityController
{

//    /**
//     * Send an email for the General Inquiry form
//     * @param Request $request
//     * @return JsonResponse
//     */
//    public function contactFormGeneral(Request $request) : JsonResponse
//    {
//        Mail::send('buildable::email.contact-general', ['data' => $request->all()], function ($message) {
//            $message->from(env('BUILDABLE_FROM_EMAIL', 'engineering@fivable.com'));
//            $message->to(env('BUILDABLE_TO_EMAIL', 'engineering@fivable.com'));
//            $message->subject("New General Contact Form Submitted");
//        });
//
//        return response()->json([
//            'success' => 'email sent successfully',
//        ]);
//    }
//
//    /**
//     * Send an email for the Sales Inquiry form
//     * @param Request $request
//     * @return JsonResponse
//     */
//    public function contactFormSales(Request $request) : JsonResponse
//    {
//        Mail::send('buildable::email.contact-sales', ['data' => $request->all()], function ($message) {
//            $message->from(env('BUILDABLE_FROM_EMAIL', 'engineering@fivable.com'));
//            $message->to(env('BUILDABLE_TO_EMAIL', 'engineering@fivable.com'));
//            $message->subject("New Sales Contact Form Submitted");
//        });
//
//        return response()->json([
//            'success' => 'email sent successfully',
//        ]);
//    }

}
