function view_purchase_settings_page()
{
    if (isset($_GET['id']) && is_numeric($_GET['id'])) {
        $purchase = build_purchase($_GET['id']);
        $date = date('m/d/Y', strtotime($purchase->get_date()));
        $items = get_purchase_items($_GET['id']);
        $total = get_purchase_total($_GET['id']);
    }
    $semantic = WP_PLUGIN_URL . '/panomanager/css/semantic.css';
    ?>
<link rel="stylesheet" type="text/css" href="<?php 
    echo $semantic;
    ?>
"/>
<style>
#wpfooter{
  display: none;
}
</style>
<p>User: <?php 
    echo get_userdata($purchase->get_user_id())->user_nicename;
    ?>
</p>
<p>Date: <?php 
    echo $date;
    ?>
</p>

<table class="ui table segment">
<tr>
    <th>Name</th>
    <th>Price</th>
    <th>Type</th>
</tr>
<?php 
    foreach ($items as $key => $item) {
        ?>
    <tr>
        <th><?php 
        echo $item->name;
        ?>
</th>
        <th><?php 
        echo $item->price;
        ?>
</th>
        <th><?php 
        echo get_item_type($item->type_id)->name;
        ?>
</th>
    </tr>
<?php 
    }
    ?>

<p>Total: <?php 
    echo $total;
    ?>
</p>
<?php 
}
        <thead>
          <tr>
            <th>Date</th>
            <th>Item</th>
            <th>Price</th>
          </tr>
        </thead>
        <tbody>
         <?php 
if (!empty($purchases)) {
    ?>
           <?php 
    foreach ($purchases as $purchase) {
        ?>
             <?php 
        $items = get_purchase_items($purchase->id);
        ?>
             <?php 
        foreach ($items as $key => $item) {
            ?>
             <tr>
               <td><?php 
            echo date('F j, Y', strtotime($purchase->date));
            ?>
</td>
               <td><?php 
            echo $item->name;
            ?>
</td>
               <td><?php 
            echo $symbol;