?? GreyFile — Mystic File Browser

Current path: home/webdevt/cryptoimpot.fr/module/Application/view/application/partial/ledgio/



?? Go up: /home/webdevt/cryptoimpot.fr/module/Application/view/application/partial

?? Viewing: table-row.phtml

<tr class="align-middle">
    <td class="align-middle text-center" scope="row"><?php echo $item->datetimeTransaction->format('d-m-Y'); ?><br><?php echo $item->datetimeTransaction->format('H:i:s'); ?></td>
    <td class="align-middle text-center"><?php echo $this->escapeHtml($item->exchange->name) ?></td>
<!--    <td class="align-middle text-center text-uppercase"><?php //echo $this->escapeHtml($item->type) ?></td>
    <td class="align-middle text-center text-uppercase"><?php //echo $this->escapeHtml($item->pair) ?></td>-->
    <td class="align-middle text-right pr-1"><?php echo $this->escapeHtml(number_format($item->getTradedAmount(), 8)) ?>&nbsp;&nbsp;</td>
    <td class="align-middle text-center text-uppercase pl-2"><?php echo $this->escapeHtml($item->tradedCurrency) ?></td>
    <td class="align-middle text-right pr-1"><?php echo $this->escapeHtml(number_format($item->getReceivedAmount(), 8)) ?>&nbsp;&nbsp;</td>
    <td class="align-middle text-center text-uppercase pl-2"><?php echo $this->escapeHtml($item->receivedCurrency) ?></td>
    <td class="align-middle text-center text-uppercase pl-2"><?php echo $this->escapeHtml($item->cumulTraded) ?></td>
    <td class="align-middle text-center text-uppercase pl-2"><?php echo $this->escapeHtml($item->cumulReceived) ?></td>
    <td class="align-middle text-center text-danger">
        <?php if (!empty($item->warningMessage)) : ?>
        <?php if ($item->warningMessage == 'MONTANT_TRADE_SUP_WALLET_CORRECTION') : ?>
                <p class="text-success"><i class="fas fa-check"></i> Corrige une quantité manquante du portefeuille</p>
        <?php else: ?>
            <button type="button" class="btn border border-danger text-danger btn-light" data-toggle="modal" data-target="#info<?= $item->getId() ?>">
                <i class="fas fa-exclamation-triangle"></i> Voir les Warning
            </button>
        <?php endif; ?>
        <?php endif; ?>
    </td>
</tr>


<?php if ($item->warningMessage === 'MONTANT_TRADE_SUP_WALLET') : ?>

    <?php

    $instantWallet = $item->instantWallet;
    $instantWallet = json_decode($instantWallet, true);
//    echo 'toto';
//    var_dump($item->tradedDevise);
//    var_dump($lastInstantWallet);
//    var_dump($instantWallet);
//    exit;
    //var_dump($instantWallet);
    ?>
    <!-- Modal -->
    <div class="modal fade" id="info<?= $item->getId() ?>" tabindex="-1" role="dialog" aria-labelledby="info<?= $item->getId() ?>" aria-hidden="true">
        <div class="modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable" role="document">
            <?php

            echo $this->partial('application/partial/ledgio/warning/montant_trade_sup_wallet.phtml', array(
                'tradedCurrency' => $item->tradedCurrency,
                'tradedDevise' => $item->tradedDevise,
                'tradedDate' => $item->datetimeTransaction->format('d-m-Y H:i:s'),
                'tradedAmount' => $item->getTradedAmount(),
                'walletAmountTradedCurrency' => !empty($instantWallet[$item->tradedDevise->getId()]) ? $instantWallet[$item->tradedDevise->getId()] : 0

            ));


            ?>

    </div>
</div>
<?php endif; ?>
<?php $lastInstantWallet = $item->instantWallet ?>
<!-- ./ Modal -->






??

??