<?php
require_once __DIR__.'/../includes/functions.php';
$admin = require_admin();
$adminTitle = 'Broadcast Message';
if ($_SERVER['REQUEST_METHOD']==='POST') { verify_csrf(); flash('success','Broadcast prepared. Connect email/SMS/WhatsApp provider to send externally; in-app notification can be generated from Notifications Center.'); }
include __DIR__.'/_header.php';
?>

<div class="card"><div class="card-body"><h5>Admin Broadcast Message</h5><form method="post" class="row g-3"><?=csrf_input()?><div class="col-md-4"><label>Audience</label><select class="form-control" name="audience"><option>All users</option><option>Only sellers</option><option>Only buyers</option><option>Country users</option><option>Unpaid users</option><option>Expiring listing users</option></select></div><div class="col-md-8"><label>Title</label><input class="form-control" name="title"></div><div class="col-12"><label>Message</label><textarea class="form-control" name="message" rows="6"></textarea></div><div class="col-12"><button class="btn btn-primary">Prepare Broadcast</button></div></form></div></div>

<?php include __DIR__.'/_footer.php'; ?>
