• File: 6ca66f66f7f7dd609d2866348a7487e4df2248d8.php
  • Full Path: /var/www/imaliapitest/storage/framework/views/6ca66f66f7f7dd609d2866348a7487e4df2248d8.php
  • Date Modified: 05/19/2025 4:29 PM
  • File size: 9.01 KB
  • MIME-type: text/html
  • Charset: utf-8
<!DOCTYPE html>
<html>

<head>
    <style>
        body {
            font-family: Arial, sans-serif;
            font-size: 12px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }

        table,
        th,
        td {
            border: 1px solid black;
        }

        th {
            background-color: #4CAF50;
            /* Cor de fundo do header */
            color: white;
            /* Cor do texto */
            padding: 8px;
            text-align: left;
        }

        td {
            padding: 8px;
            text-align: left;
        }

        .header-logo {
            text-align: center;
            margin-bottom: 20px;
        }

        .header-logo img {
            width: 180px;
            /* Ajuste o tamanho da imagem */
            height: auto;
        }

        .title {
            text-align: center;
            margin-bottom: 20px;
        }

        /* .footer {
            position: fixed;
            bottom: 0;
            width: 100%;
            text-align: center;
            font-size: 10px;
            color: grey;
        } */

        .footer {
            position: fixed;
            bottom: 0;
            font-family: Arial, sans-serif;
            width: 100%;
            text-align: center;
            font-size: 10px;
            color: grey;
            /* background-color: #f9f9f9; */
            padding: 5px 10px;
            border-top: 1px solid #ccc;
        }

        .footer a {
            color: grey;
            text-decoration: none;
        }

        .footer a:hover {
            text-decoration: underline;
        }


        .footer .datetime {
            float: right;
        }

        .solicitation-title {
            /* font-weight: bold; */
            margin-bottom: 10px;
            color: #333;
        }

        .info-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 10px;
        }

        .info-table td {
            padding: 6px;
            border: 1px solid #ccc;
            font-size: 12px;
        }

        .watermark {
            position: fixed;
            top: 3%;
            left: 10%;
            width: 900px;
            opacity: 0.06;
            z-index: -1;
        }

        /* .watermark-bottom-left {
            position: fixed;
            bottom: 30%;
            width: 1300px;
            opacity: 0.06;
            z-index: -1;
        } */

        .watermark-bottom-right {
            position: fixed;
            bottom: 25%;
            right: 50%;
            top: 70%;
            /* width: 200px; */
            /* height: 200px; */
            opacity: 0.06;
            z-index: -1;
        }

        /* .watermark-bottom-left {
            left: 1%;
        } */

        .watermark-bottom-right img {
            width: 580px;
            height: 550px;
        }
    </style>
</head>

<body>
    <div class="header-logo">
        <img src="<?php echo e(public_path('images/logo/imali.png')); ?>" alt="Logo da Empresa">
    </div>

    <div class="watermark">
        <img src="<?php echo e(public_path('images/logo/iMali2-removebg-preview.png')); ?>" alt="Marca d'água" style="width:100%;">
    </div>

    <!-- Marca d'água inferior esquerda -->
    <!-- <div class="watermark-bottom-left">
        <img src="<?php echo e(public_path('images/logo/iMali2-erremovebg-preview.png')); ?>" alt="Marca d'água" />
    </div> -->

    <!-- Marca d'água inferior direita -->
    <div class="watermark-bottom-right">
        <img src="<?php echo e(public_path('images/logo/iMali2-erremovebg-preview.png')); ?>" alt="Marca d'água" />
    </div>


    <h2>iMali Subaccount Extract</h2>

    <div class="solicitation-title">Subaccount Data</div>

    <table class="info-table">
        <tr>
            <td><strong>Main Account Name:</strong> <?php echo e($payments->first()->user ?? '---'); ?> <?php echo e($payments->first()->last_name ?? '---'); ?> </td>
            <td><strong>Main Account Number:</strong> <?php echo e($payments->first()->main_account_number ?? '---'); ?> </td>
            <td><strong>Store Name:</strong> CMSG-AISM</td>
        </tr>
        <tr>
            <td><strong>Subaccount Name:</strong> <?php echo e($payments->first()->name ?? '---'); ?> </td>
            <td><strong>Subaccount Number:</strong> <?php echo e($payments->first()->account_number ?? '---'); ?> </td>
            <td><strong>Card Number:</strong> <?php echo e($payments->first()->card_number ?? '---'); ?> </td>
        </tr>
    </table>

    <hr style="border: 1px solid #ccc; margin: 20px 0;">

    <!-- <table>
        <thead>
            <tr>
                <th>TransactionID</th>
                <th>Date</th>
                <th>Debit Account</th>
                <th>Transaction Type</th>
                <th>Amount (MZN)</th>
                <th>Old Balance (MZN)</th>
                <th>New Balance (MZN)</th>
                <th>Status</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $payments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $payment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td><?php echo e($payment->TransactionID); ?></td>
                <td><?php echo e($payment->Date); ?></td>
                <td><?php echo e($payment->SubAccountNumber); ?></td>
                <td><?php echo e($payment->TransactionType); ?></td>
                <td><?php echo e($payment->Amount); ?>,00</td>
                <td><?php echo e($payment->OldBalance); ?></td>
                <td><?php echo e($payment->NewBalance); ?></td>
                <td><?php echo e($payment->Status); ?></td>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table> -->

    <table>
        <thead>
            <tr>
                <th>TransactionID</th>
                <th>Date</th>
                <!-- <?php if($payments->isNotEmpty() && $payments->first()->CardNumber): ?>
                <th>Card Number</th>
                <?php endif; ?> -->
                <th>Debit Account</th>
                <th>Transaction Type</th>
                <th>Amount (MZN)</th>
                <th>Old Balance (MZN)</th>
                <th>New Balance (MZN)</th>
                <th>Status</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $payments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $payment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td><?php echo e($payment->TransactionID); ?></td>
                <td><?php echo e($payment->Date); ?></td>
                <!-- <td><?php echo e($payment->SubAccountNumber); ?></td> -->
                <?php if($payment->CardNumber): ?>
                <td><?php echo e($payment->CardNumber); ?></td>
                <?php else: ?>
                <td>Nenhum cartão associado</td> <!-- Mensagem alternativa caso o campo seja nulo -->
                <?php endif; ?>
                <td><?php echo e($payment->TransactionType); ?></td>
                <td style="text-align: right;">
                    <?php
                    $symbol = '';
                    if ($payment->TransactionType === 'Pagamento') {
                    $symbol = '-';
                    } elseif (in_array($payment->TransactionType, ['Depósito', 'Reembolso'])) {
                    $symbol = '+';
                    }
                    ?>
                    <?php echo e($symbol); ?><?php echo e(number_format($payment->Amount, 2, ',', '.')); ?>

                </td>
                <td style="text-align: right;"><?php echo e(number_format($payment->OldBalance, 2, ',', '.')); ?></td>
                <td style="text-align: right;"><?php echo e(number_format($payment->NewBalance, 2, ',', '.')); ?></td>
                <td><?php echo e($payment->Status); ?></td>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>


    <!-- Rodapé com data e hora -->
    <!-- <div class="footer">
        Gerado em: <?php echo e(now()->format('d/m/Y H:i:s')); ?>

    </div> -->

    <div class="footer">
        <div>
            <strong>Contacto:</strong> +258 84 600 2000 |
            <strong>Email:</strong> info@imali.co.mz |
            <strong>website:</strong> www.imali.co.mz |
            <strong>Redes Sociais:</strong>
            <a href="https://www.facebook.com/imalimoz?_rdc=2&_rdr#" target="_blank">Facebook</a>,
            <a href="https://x.com/i/flow/login?redirect_after_login=%2Fimalimoz" target="_blank">Twitter</a>,
            <a href="https://www.linkedin.com/company/imalimoz/" target="_blank">LinkedIn</a>
        </div>
        <br>
        <!-- <div class="datetime"> -->
        Gerado em: <?php echo e(now()->format('d/m/Y H:i:s')); ?>

        <!-- </div> -->
    </div>

</body>

</html><?php /**PATH /var/www/imaliapistaging/resources/views/pdf/subaccount-extract.blade.php ENDPATH**/ ?>