<table class="table table-bordered">
  <tr>
    <th>ID: </th>
    <td><?php echo e($row->id); ?></td>
  </tr>
  <tr>
    <th>Item: </th>
    <td><?php echo e($row->item); ?></td>
  </tr>
  <tr>
    <th>From: </th>
    <td><?php echo e($row->user); ?></td>
  </tr>
  <?php
    $color = "purple";
    if($row->status=="Pending"){ $color = "yellow"; }
    if($row->status=="Approved"){ $color = "green"; }
    if($row->status=="Denied"){ $color = "red"; }
  ?>
  <tr>
    <th>Status: </th>
    <td>
    	<span class="overdue bg-<?php echo e($color); ?>" style="float:left;margin-top:3px;"><?php echo e($row->status); ?></span>
        <div style="float:right;">
        	<select id="expense_status_<?php echo $row->id; ?>" name="" style="float:left;margin-top:5px;margin-right:9px;">
            	<option <?php if($row->status == 'Approved'){echo 'selected="selected"';} ?> value="Approved">Approved</option>
                <option <?php if($row->status == 'Closed'){echo 'selected="selected"';} ?> value="Closed">Closed</option>
            	<option <?php if($row->status == 'Denied'){echo 'selected="selected"';} ?> value="Denied">Denied</option>
                <option <?php if($row->status == 'Overdue'){echo 'selected="selected"';} ?> value="Overdue">Overdue</option>   
            </select>
            <button type="button" onclick="changestatussingle(<?php echo $row->id; ?>)" class="btn btn-success" style="width:auto;padding:3px 8px;">Update</button>
        </div>
    </td>
  </tr>
  <tr>
    <th>Budget: </th>
    <td><?php echo e(\App\Providers\Common::format_currency($row->budget)); ?></td>
  </tr>
  <tr>
    <th>Priority: </th>
    <td><?php echo e($row->priority); ?></td>
  </tr>
  <tr>
    <th>Requested: </th>
    <td><?php echo e(\App\Providers\Common::format_currency($row->price)); ?></td>
  </tr>
  <tr>
    <th>Left: </th>
    <td><?php echo e(\App\Providers\Common::format_currency($row->budget-$row->price)); ?></td>
  </tr>
  <tr>
    <th>Department: </th>
    <td><?php echo e($row->category); ?></td>
  </tr>
  <tr>
    <th>Subject: </th>
    <td><?php echo e($row->subject); ?></td>
  </tr>
  <tr>
    <th>Description: </th>
    <td><div style="width:500px;"><?php echo $row->description; ?></div></td>
  </tr>
  <tr>
    <th>Approver: </th>
    <td><img src="/uploads/<?php echo e($row->approver_logo); ?>" alt="<?php echo e($row->approver_logo); ?>" width="20px" /> <?php echo e($row->approver); ?></td>
  </tr>
  <tr>
    <th>Created: </th>
    <td><?php echo e(\App\Providers\Common::format_date($row->created_at)); ?></td>
  </tr>
  <tr>
    <th>File: </th>
    <td><img src="/uploads/<?php echo e($row->file); ?>" alt="<?php echo e($row->file); ?>" width="200px" /></td>
  </tr>
  <tr id="comments_single_tr_id" style="display:none;">
    <th>Comments: <span style="color:red;">Required</span></th>
    <td>
    <textarea name="" id="comment_single_<?php echo $row->id; ?>" style="width:100%;"><?php echo $row->comments; ?></textarea>
    </td>
  </tr>
  <?php if($row->comments !=''): ?>
  <tr>
    <th>Comments: </th>
    <td><?php echo e($row->comments); ?></td>
  </tr>
  <?php endif; ?>
</table>
