<?php $__env->startSection('content'); ?>
<div class="panel panel-default">
    <div class="panel-heading">Miscellaneous Charge</div>

    <div class="panel-body">
        <?php if( $charge->invoiced == 0 ): ?>
       <a  class="btn btn-primary" href="<?php echo e(route('charges.edit',$charge->id)); ?>">Edit</a><br><br>
       <?php endif; ?>
    	
    	invoice date - <?php echo e($charge->date_invoice); ?><br>
    	description - <?php echo e($charge->description); ?><br>
    	fee - <?php echo e($charge->price); ?><br>
        <?php if( $charge->invoice != null ): ?>
    	invoice number - <?php echo e($charge->invoice); ?><br>
        <?php endif; ?>
    	
    	<?php if( $charge->customer_id == 0 ): ?>
		<div style="color: red">Not linked to customer</div>
		<?php else: ?>
		Customer: <div style="color: green"><?php echo e($charge->customer->xero_name); ?></div>
		<?php endif; ?>
       
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/joraleqyan/PhpstormProjects/xero/resources/views/charges/show.blade.php ENDPATH**/ ?>