<?php
/** @var string $title */
/** @var string $body */
?>
<div class="page-head">
    <div><h2>发起紧急提醒</h2><p class="muted">提交后将作为紧急事件通知相关负责人（站内 + 邮件 + 微信，依通知设置）。</p></div>
    <div class="head-actions">
        <a class="btn-ghost" href="<?php echo \Core\App::url('PSI/reminders'); ?>">返回列表</a>
    </div>
</div>

<form method="post" action="<?php echo \Core\App::url('PSI/reminders/create'); ?>" class="form-card">
    <?php echo csrf_field(); ?>
    <div class="form-row">
        <label>提醒标题 <span class="req">*</span></label>
        <input type="text" name="title" maxlength="120" required value="<?php echo e($title); ?>" placeholder="例如：A 客户订单需今日发货">
    </div>
    <div class="form-row">
        <label>提醒内容</label>
        <textarea name="body" rows="5" placeholder="补充说明，可留空"><?php echo e($body); ?></textarea>
    </div>
    <div class="form-actions">
        <button class="btn-primary" type="submit">发送紧急提醒</button>
        <a class="btn-ghost" href="<?php echo \Core\App::url('PSI/reminders'); ?>">取消</a>
    </div>
</form>
