closes #281
This commit is contained in:
		@@ -112,12 +112,19 @@
 | 
			
		||||
                <div class="table-responsive">
 | 
			
		||||
                    <table class="table">
 | 
			
		||||
                        <tbody>
 | 
			
		||||
                        @foreach($invoice->totals as $total)
 | 
			
		||||
                            @if($total->code != 'total')
 | 
			
		||||
                                <tr>
 | 
			
		||||
                                    <th>{{ trans($total['name']) }}:</th>
 | 
			
		||||
                                    <td class="text-right">@money($total->amount, $invoice->currency_code, true)</td>
 | 
			
		||||
                                </tr>
 | 
			
		||||
                        @foreach ($invoice->totals as $total)
 | 
			
		||||
                            @if ($total->code != 'total')
 | 
			
		||||
                                @if (($total->code == 'tax') && isset($taxes[$total->name]))
 | 
			
		||||
                                    <tr>
 | 
			
		||||
                                        <th>{{ $taxes[$total->name] }}:</th>
 | 
			
		||||
                                        <td class="text-right">@money($total->amount, $invoice->currency_code, true)</td>
 | 
			
		||||
                                    </tr>
 | 
			
		||||
                                @else
 | 
			
		||||
                                    <tr>
 | 
			
		||||
                                        <th>{{ trans($total->name) }}:</th>
 | 
			
		||||
                                        <td class="text-right">@money($total->amount, $invoice->currency_code, true)</td>
 | 
			
		||||
                                    </tr>
 | 
			
		||||
                                @endif
 | 
			
		||||
                            @else
 | 
			
		||||
                                @if ($invoice->paid)
 | 
			
		||||
                                    <tr class="text-success">
 | 
			
		||||
@@ -126,7 +133,7 @@
 | 
			
		||||
                                    </tr>
 | 
			
		||||
                                @endif
 | 
			
		||||
                                <tr>
 | 
			
		||||
                                    <th>{{ trans($total['name']) }}:</th>
 | 
			
		||||
                                    <th>{{ trans($total->name) }}:</th>
 | 
			
		||||
                                    <td class="text-right">@money($total->amount - $invoice->paid, $invoice->currency_code, true)</td>
 | 
			
		||||
                                </tr>
 | 
			
		||||
                            @endif
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user