Beispiel #1
0
                    <?php 
}
?>

                    <!-- Display The Tax Amount -->
                    <?php 
if ($invoice->tax_percent) {
    ?>
                        <tr>
                            <td>Tax (<?php 
    echo $invoice->tax_percent;
    ?>
%)</td>
                            <td>&nbsp;</td>
                            <td><?php 
    echo Cashier::formatAmount($invoice->tax);
    ?>
</td>
                        </tr>
                    <?php 
}
?>

                    <!-- Display The Final Total -->
                    <tr style="border-top:2px solid #000;">
                        <td>&nbsp;</td>
                        <td style="text-align: right;"><strong>Total</strong></td>
                        <td><strong><?php 
echo $invoice->total();
?>
</strong></td>
Beispiel #2
0
 /**
  * Get the Stripe supported currency used by the entity.
  *
  * @return string
  */
 public function preferredCurrency()
 {
     return Cashier::usesCurrency();
 }
Beispiel #3
0
 /**
  * Format the given amount into a string based on the user's preferences.
  *
  * @param int $amount
  *
  * @return string
  */
 protected function formatAmount($amount)
 {
     return Cashier::formatAmount($amount);
 }