<?php echo $header; ?>
<div id="content">
    <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb): ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php endforeach; ?>
    </div>
    <div class="box">
        <div class="heading">
            <h1>Log # <?php echo $log['id_rede_orders_log']; ?> | <?php echo $txt_info; ?></h1>
            <div class="buttons">
            	<a href="<?php echo $back; ?>" class="button"> <?php echo $button_back;  ?> </a>
        	</div>
        </div>
        <div class="content">
            <table cellspacing="8">
            <tbody style="font-size:13px;"><tr>
                <td class="label"><label><?php echo $txt_date ?>:</label></td>
                <td class="value"><strong><?php echo $log['processed_at']; ?></strong></td>
            </tr>
            <?php if ($log['order_id']) { ?>
            <tr>
                <td class="label"><label><?php echo $txt_id_order ?>:</label></td>
                <td class="value"><strong><span id="order_id"><?php echo $log['order_id']; ?></span></strong></td>
            </tr>
            <?php } ?>
            <?php if ($status) { ?>
            <tr>
                <td class="label"><label><?php echo $txt_status ?>:</label></td>
                <td class="value"><strong><span id="message"><?php echo $status; ?></span></strong></td>
            </tr>
            <?php } ?>
            <?php if ($message) { ?>
            <tr>
                <td class="label"><label><?php echo $txt_message ?>:</label></td>
                <td class="value"><strong><span id="message"><?php echo $message; ?></span></strong></td>
            </tr>
            <?php } ?>
            <?php if ($log['erede_status']) { ?>
            <tr>
                <td class="label"><label><?php echo $txt_erede_status; ?>:</label></td>
                <td class="value"><strong><span id="order_status"><?php echo $log['erede_status']; ?></span></strong></td>
            </tr>
            <?php } ?>
            <?php if ($log['extended_response_message']) { ?>
            <tr>
                <td class="label"><label><?php echo $txt_transaction_response; ?>:</label></td>
                <td class="value"><strong><span id="message"><?php echo $log['extended_response_message']; ?></span></strong></td>
            </tr>
            <?php } ?>
            <?php if ($log['reason']) { ?>
            <tr>
                <td class="label"><label><?php echo $txt_message; ?>:</label></td>
                <td class="value"><strong><span id="reason"><?php echo $log['reason']; ?></span></strong></td>
            </tr>
            <?php } ?>
            <?php if ($log['erede_token']) { ?>
            <tr>
                <td class="label"><label><?php echo $txt_erede_token; ?>:</label></td>
                <td class="value"><strong><span id="erede_token"><?php echo $log['erede_token']; ?></span></strong></td>
            </tr>
            <?php } ?>
            <?php if ($forma_pagamento) { ?>
        	<tr>
                <td class="label"><label><?php echo $txt_payment_method; ?>:</label></td>
                <td class="value"><strong><span id="payment_method"><?php echo $forma_pagamento; ?></span></strong></td>
            </tr>
            <?php } ?>
            <?php if ($log['card_scheme']) { ?>
            <tr>
                <td class="label"><label><?php echo $txt_card_scheme; ?>:</label></td>
                <td class="value"><strong><span id="card_schema"><?php echo $log['card_scheme']; ?></span></strong></td>
            </tr>
            <?php } ?>
            <?php if ($log['parcelas'] != '') { ?>
            <tr>
	   			<td class="label"><label><?php echo $txt_amount_parcels; ?>:</label></td>
	            <td class="value"><strong><span id="parcelas"><?php if ($log['parcelas'] > 0) { ?>
                            <b><?php echo $log['parcelas']; ?></b>
                        <?php 
                    		} 
                    		else
                    		{
                    	?>
                            <b><?php echo $txt_prompt_payment; ?></b>
                        <?php } ?></span></strong></td>
            </tr>
            <?php } ?>

            <?php if ($log['gateway_reference']) { ?>
            <tr>								            								            	<td class="label"><label><?php echo $txt_gateway_reference; ?>:</label></td>
                <td class="value"><strong><span id="gateway_reference"><?php echo $log['gateway_reference']; ?></span></strong></td>
            </tr>
            <?php } ?>
            <?php if ($log['auth_host_reference']) { ?>
        	<tr>
                <td class="label"><label><?php echo $txt_auth_host; ?>:</label></td>
                <td class="value"><strong><span id="auth_host_reference"><?php echo $log['auth_host_reference']; ?></span></strong></td>
            </tr>
            <?php } ?>
            <?php if ($log['auth_code']) { ?>
            <tr>
                <td class="label"><label><?php echo $txt_auth_code; ?>:</label></td>
                <td class="value"><strong><span id="auth_code"><?php echo $log['auth_code']; ?></span></strong></td>
            </tr>
            <?php } ?>
      		</tbody></table>
        </div>
    </div>
</div>
<?php echo $footer; ?>
