

<?php $__env->startSection('subject', $subject ?? 'New Notification from ' . $settings->site_name); ?>

<?php $__env->startSection('preheader', isset($message) ? Str::limit(strip_tags($message), 100) : 'You have a new notification from ' . $settings->site_name); ?>

<?php $__env->startSection('content'); ?>
<h1 class="greeting">
    <?php if(isset($title)): ?>
        <?php echo e($title); ?>

    <?php else: ?>
        Notification
    <?php endif; ?>
</h1>

<p class="intro-text">
    Dear <?php echo e($user->name); ?>,
</p>

<?php if(isset($message)): ?>
<p class="intro-text">
    <?php echo nl2br(e($message)); ?>

</p>
<?php endif; ?>

<?php if(isset($type)): ?>
    <?php if($type == 'success'): ?>
        <div class="notice notice-confirm">
            <strong>&#10003; Success</strong><br>
            <?php if(isset($alert_message)): ?>
                <?php echo e($alert_message); ?>

            <?php else: ?>
                Your request has been processed successfully.
            <?php endif; ?>
        </div>
    <?php elseif($type == 'warning'): ?>
        <div class="notice notice-caution">
            <strong>&#9888; Attention Required</strong><br>
            <?php if(isset($alert_message)): ?>
                <?php echo e($alert_message); ?>

            <?php else: ?>
                This notification requires your attention.
            <?php endif; ?>
        </div>
    <?php elseif($type == 'error'): ?>
        <div class="notice notice-urgent">
            <strong>&#9888; Action Required</strong><br>
            <?php if(isset($alert_message)): ?>
                <?php echo e($alert_message); ?>

            <?php else: ?>
                Immediate action is required on your account.
            <?php endif; ?>
        </div>
    <?php elseif($type == 'info'): ?>
        <div class="notice notice-info">
            <strong>&#8505; Information</strong><br>
            <?php if(isset($alert_message)): ?>
                <?php echo e($alert_message); ?>

            <?php else: ?>
                This is an informational notification.
            <?php endif; ?>
        </div>
    <?php endif; ?>
<?php endif; ?>

<?php if(isset($details) && is_array($details) && count($details) > 0): ?>
<div class="details-card">
    <h3>Details</h3>
    <?php $__currentLoopData = $details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $label => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <div class="detail-row">
        <span class="detail-label"><?php echo e($label); ?></span>
        <span class="detail-value"><?php echo e($value); ?></span>
    </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<?php endif; ?>

<?php if(isset($amount)): ?>
<!-- Amount Box -->
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="margin: 24px 0;">
    <tr>
        <td align="center">
            <table role="presentation" cellpadding="0" cellspacing="0" border="0" style="background: linear-gradient(135deg, #2d8659 0%, #1f5d3e 100%); border-radius: 8px;">
                <tr>
                    <td style="padding: 20px 40px; text-align: center;">
                        <p style="color: #e0a84e; font-size: 11px; font-weight: 700; margin: 0 0 6px 0; text-transform: uppercase; letter-spacing: 2px;">Amount</p>
                        <p style="color: #ffffff; font-size: 32px; font-weight: 700; margin: 0; font-family: 'Georgia', serif;">
                            <?php echo e($settings->currency); ?><?php echo e(number_format($amount, 2)); ?>

                        </p>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<?php endif; ?>

<?php if(isset($transaction_details) && is_array($transaction_details) && count($transaction_details) > 0): ?>
<div class="details-card">
    <h3>Transaction Information</h3>
    <?php $__currentLoopData = $transaction_details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $label => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <div class="detail-row">
        <span class="detail-label"><?php echo e($label); ?></span>
        <span class="detail-value"><?php echo e($value); ?></span>
    </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <div class="detail-row">
        <span class="detail-label">Date &amp; Time</span>
        <span class="detail-value"><?php echo e(\Carbon\Carbon::now()->format('F j, Y \a\t g:i A')); ?></span>
    </div>
</div>
<?php endif; ?>

<?php if(isset($action_required) && $action_required): ?>
<div class="notice notice-caution">
    <strong>&#9888; Action Required</strong><br>
    <?php if(isset($action_message)): ?>
        <?php echo e($action_message); ?>

    <?php else: ?>
        Please review this notification and take necessary action.
    <?php endif; ?>
</div>
<?php endif; ?>

<?php if(isset($button_text) && isset($button_url)): ?>
<div class="btn-container">
    <a href="<?php echo e($button_url); ?>" class="btn-primary"><?php echo e($button_text); ?></a>
</div>
<?php endif; ?>

<?php if(isset($list_items) && is_array($list_items) && count($list_items) > 0): ?>
<div class="details-card">
    <h3><?php echo e($list_title ?? 'Important Information'); ?></h3>
    <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="color: #475569; font-size: 14px;">
        <?php $__currentLoopData = $list_items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr>
            <td style="padding: 6px 0;">&#10003;&nbsp; <?php echo e($item); ?></td>
        </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </table>
</div>
<?php endif; ?>

<?php if(isset($steps) && is_array($steps) && count($steps) > 0): ?>
<div class="details-card">
    <h3><?php echo e($steps_title ?? 'Next Steps'); ?></h3>
    <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
        <?php $__currentLoopData = $steps; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $step): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr>
            <td style="padding: 12px 0;<?php echo e(!$loop->last ? ' border-bottom: 1px solid #f1f5f9;' : ''); ?>">
                <table role="presentation" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td style="width: 32px; vertical-align: top;">
                            <span style="display: inline-block; width: 26px; height: 26px; background-color: #2d8659; color: #ffffff; border-radius: 50%; text-align: center; line-height: 26px; font-size: 13px; font-weight: 700;"><?php echo e($index + 1); ?></span>
                        </td>
                        <td style="padding-left: 10px; vertical-align: top;">
                            <strong style="color: #0f172a;"><?php echo e($step['title'] ?? $step); ?></strong>
                            <?php if(isset($step['description'])): ?>
                            <p style="color: #64748b; margin: 4px 0 0 0; font-size: 13px;"><?php echo e($step['description']); ?></p>
                            <?php endif; ?>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </table>
</div>
<?php endif; ?>

<?php if(isset($security_notice)): ?>
<div class="security-notice">
    <p class="security-notice-text">
        <strong>&#128274; Security Reminder</strong><br>
        <span style="font-size: 13px;"><?php echo e($security_notice); ?></span>
    </p>
</div>
<?php endif; ?>

<?php if(isset($additional_info)): ?>
<div style="background: #f8fafc; padding: 20px; border-radius: 8px; margin: 24px 0;">
    <p style="color: #475569; font-size: 14px; line-height: 1.6; margin: 0;">
        <?php echo nl2br(e($additional_info)); ?>

    </p>
</div>
<?php endif; ?>

<?php if(isset($contact_support) && $contact_support): ?>
<div class="notice notice-info">
    <strong>&#128172; Need Assistance?</strong><br>
    Our support team is available to help:
    <table role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin-top: 8px; font-size: 14px;">
        <tr><td style="padding: 3px 0;">&#8226;&nbsp; Email: <?php echo e($settings->contact_email); ?></td></tr>
        <?php if($settings->phone): ?>
        <tr><td style="padding: 3px 0;">&#8226;&nbsp; Phone: <?php echo e($settings->phone); ?></td></tr>
        <?php endif; ?>
        <tr><td style="padding: 3px 0;">&#8226;&nbsp; Live Chat available from your dashboard</td></tr>
    </table>
</div>
<?php endif; ?>

<div class="closing">
    <p>
        <?php if(isset($closing_message)): ?>
            <?php echo e($closing_message); ?>

        <?php else: ?>
            Thank you for banking with <?php echo e($settings->site_name); ?>.
        <?php endif; ?>
    </p>
    <p class="signature">
        <?php if(isset($signature)): ?>
            <?php echo $signature; ?>

        <?php else: ?>
            Best regards,<br>
            <strong><?php echo e($settings->site_name); ?></strong>
        <?php endif; ?>
    </p>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('emails.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/swizzfx/fintech.swizzfx.pro/resources/views/emails/general-notification-new.blade.php ENDPATH**/ ?>