@extends('layouts.app') @section('title', 'Add Notification Provider') @section('content')

➕ Add {{ ucfirst($type) }} Provider

Configure a new {{ $type }} notification provider

@if(!$provider)

Select {{ ucfirst($type) }} Provider

@foreach($availableProviders as $name => $info)

{{ $info['display_name'] }}

{{ $info['description'] }}

@endforeach
@else

Configure {{ $provider->display_name }}

@csrf
@error('display_name')
{{ $message }}
@enderror
Lower numbers have higher priority for failover @error('priority')
{{ $message }}
@enderror

Configuration

@foreach($provider->getConfigurationFieldLabels() as $field => $label)
@if(in_array($field, ['secret', 'api_key', 'auth_token', 'api_secret'])) @else @endif @error("configuration.{$field}")
{{ $message }}
@enderror
@endforeach
Cancel

Configuration Help

@if($provider->name === 'resend')

Resend Setup

  1. Go to resend.com and create an account
  2. Navigate to API Keys in your dashboard
  3. Create a new API key with sending permissions
  4. Copy the API key and paste it in the configuration above
@elseif($provider->name === 'mailgun')

Mailgun Setup

  1. Go to mailgun.com and create an account
  2. Add and verify your domain
  3. Get your domain name from the dashboard
  4. Get your API key from Settings > API Keys
  5. Endpoint is usually api.mailgun.net (or api.eu.mailgun.net for EU)
@elseif($provider->name === 'sendgrid')

SendGrid Setup

  1. Go to sendgrid.com and create an account
  2. Navigate to Settings > API Keys
  3. Create a new API key with "Full Access" or "Mail Send" permissions
  4. Copy the API key and paste it in the configuration above
@elseif($provider->name === 'termii')

Termii Setup

  1. Go to termii.com and create an account
  2. Complete the verification process
  3. Navigate to API section in your dashboard
  4. Copy your API key
  5. Register a sender ID (this is what recipients see as sender)
@elseif($provider->name === 'twilio')

Twilio Setup

  1. Go to twilio.com and create an account
  2. Verify your phone number
  3. Get your Account SID and Auth Token from the console
  4. Purchase a phone number or use your trial number
  5. Enter the phone number in +1234567890 format
@elseif($provider->name === 'nexmo')

Nexmo (Vonage) Setup

  1. Go to vonage.com and create an account
  2. Navigate to API Keys in your dashboard
  3. Copy your API Key and API Secret
  4. Set up a virtual number for sending SMS
  5. Enter the number in +1234567890 format
@endif
@endif
@endsection