<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['charge', 'total', 'currencySymbol', 'amountEntered' => false]));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter((['charge', 'total', 'currencySymbol', 'amountEntered' => false]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars, $__key, $__value); ?>

<div class="space-y-2 text-sm">
    <!-- Fee -->
    <div class="flex justify-between items-center">
        <span class="text-gray-700 dark:text-gray-300">Fee:</span>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($amountEntered): ?>
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($charge > 0): ?>
                <span class="font-medium text-gray-800 dark:text-gray-100">
                    <?php echo e($currencySymbol); ?><?php echo e(number_format($charge, 2)); ?>

                </span>
            <?php else: ?>
                <span
                    class="font-semibold text-green-600 dark:text-green-400 bg-green-100 dark:bg-green-900/50 px-2 py-0.5 rounded-full text-xs">
                    Free
                </span>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        <?php else: ?>
            <span class="text-gray-400 dark:text-gray-500">–</span>
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    </div>

    <!-- Total -->
    <div class="flex justify-between items-center font-semibold border-t border-gray-200 dark:border-gray-700 pt-2">
        <span class="text-gray-800 dark:text-gray-100">Total to Pay:</span>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($amountEntered): ?>
            <span class="text-gray-900 dark:text-gray-50">
                <?php echo e($currencySymbol); ?><?php echo e(number_format($total, 2)); ?>

            </span>
        <?php else: ?>
            <span class="text-gray-400 dark:text-gray-500">–</span>
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    </div>
</div>
<?php /**PATH /Users/macuser/Herd/Novabank/resources/views/components/deposit/fee-total.blade.php ENDPATH**/ ?>