

<?php $__env->startSection('title', 'Send WhatsApp Message'); ?>

<?php $__env->startSection('content'); ?>
<div class="container py-4">
    <h2>Send WhatsApp Message</h2>

    <?php if(session('status')): ?>
        <div class="alert alert-success">
            <?php echo e(session('status')); ?>

        </div>
    <?php endif; ?>

    <form action="<?php echo e(route('whatsapp.send')); ?>" method="POST">
        <?php echo csrf_field(); ?>
        <div class="mb-3">
            <label for="to" class="form-label">Recipient Number (with country code)</label>
            <input type="text" name="to" id="to" class="form-control" placeholder="e.g. 919876543210" required value="919685970556">
        </div>

        <div class="mb-3">
            <label for="message" class="form-label">Message</label>
            <textarea name="message" value="Hi" id="message" rows="4" class="form-control" required></textarea>
        </div>

        <button type="submit" class="btn btn-primary">Send Message</button>
    </form>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.front.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/html/wa/resources/views/whatsapp/form.blade.php ENDPATH**/ ?>