@php // $sendgrid_api = new App\Classes\SENDGRID_API(); // $contact = [ // 'email' => '2john.doe@example.com', // 'first_name' => 'Jane', // 'last_name' => 'Doe' // ]; // $sendgrid_api->send_email() // send_email // $sendgrid_api->add_contact($contact, 'newsletter'); // add_contact // $sendgrid_api->get_all_list(); // get_all_list // $sendgrid_api->get_list('89b69b53-196d-476b-867f-8b75e8057c7a'); // get_list // $sendgrid_api->delete_list('e6368adb-1cb5-4405-a53a-58ff36614f2a'); // delete_list // $sendgrid_api->remove_contact('1john.doe@example.com'); // remove_contact // $sendgrid_api->get_contact('2john.doe@example.com'); // get_contact // $sendgrid_api->remove_contact_from_list('2john.doe@example.com', 'newsletter'); @endphp
@if (session('success_message')) @endif @if (session('error_message')) @endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @yield('main-content')
@stack('scripts')