@extends('layouts.app') @section('title', ($channel ?? 'sms') === 'whatsapp' ? 'WhatsApp Message' : 'Send SMS') @php $isWhatsApp = ($channel ?? 'sms') === 'whatsapp'; $audience = old('audience', 'parents'); @endphp @section('content')

{{ $isWhatsApp ? 'WhatsApp Message' : 'Send SMS' }}

{{ $isWhatsApp ? 'Broadcast a WhatsApp message to parents, staff, a transport route or pasted numbers' : 'Broadcast an SMS to parents, staff, a transport route or pasted numbers' }}

@if ($balance !== null) Balance {{ number_format($balance) }} credits @endif View history
@if ($isWhatsApp)
WhatsApp sends are recorded in the same ledger as SMS and are not delivered to a real gateway yet — no Meta Cloud API account is attached. Treat this as a staging tool.
@endif
@csrf

Recipients

@foreach (['parents' => 'Parents', 'teachers' => 'Teachers', 'route' => 'Transport route', 'custom' => 'Custom numbers'] as $key => $label) @endforeach

Message

0 characters
Quick templates
@foreach ($templates as $i => $tpl) @endforeach
@endsection @push('scripts') @endpush