@extends('layouts.admin') @section('content')
<div class="container">
    <h2>Send WhatsApp Message</h2>

    @if(session('success'))
        <div class="alert alert-success">{{ session('success') }}</div>
    @endif

    @if(session('error'))
        <div class="alert alert-danger">{{ session('error') }}</div>
    @endif

    <form action="{{ route('whatsapp.send') }}" method="POST">
        @csrf
        <div class="mb-3">
            <label for="phone" class="form-label">WhatsApp Number (+CountryCodePhoneNumber)</label>
            <input type="text" name="phone" class="form-control" placeholder="+1234567890" required>
        </div>
        <div class="mb-3">
            <label for="message" class="form-label">Message</label>
            <textarea name="message" class="form-control" rows="4" required></textarea>
        </div>
        <button type="submit" class="btn btn-success">Send WhatsApp Message</button>
    </form>
</div>
@endsection
