<div class="modal fade" id="emailMessageModal" tabindex="-1" aria-labelledby="emailMessageModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg modal-dialog-centered">
        <div class="modal-content">
            <form id="emailMessageForm" action="<?php echo e(route('admin.email-messages.store')); ?>" method="POST">
                <?php echo csrf_field(); ?>
                <div class="modal-header">
                    <h5 class="modal-title" id="emailMessageModalLabel">Send Email</h5>
                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                </div>
                <div class="modal-body">
                    <div class="mb-3">
                        <label class="form-label">Recipient Email</label>
                        <input type="email" name="recipient" class="form-control" required>
                    </div>
                    <div class="mb-3">
                        <label class="form-label">Template (optional)</label>
                        <select name="template_id" class="form-select">
                            <option value="">-- None --</option>
                            <?php $__currentLoopData = App\Models\EmailTemplate::where('status', 1)->orderBy('name')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $template): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($template->id); ?>"><?php echo e($template->name); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                    </div>
                    <div class="mb-3">
                        <label class="form-label">Subject</label>
                        <input type="text" name="subject" class="form-control" required>
                    </div>
                    <div class="mb-3">
                        <label class="form-label">Body (HTML)</label>
                        <textarea name="body" class="form-control" rows="6" required></textarea>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
                    <button type="submit" class="btn btn-primary">Queue Email</button>
                </div>
            </form>
        </div>
    </div>
</div>
<?php /**PATH D:\herd\billing\laravel-app\resources\views\admin\email-messages\partials\modal.blade.php ENDPATH**/ ?>