| Subtotal | {!! format_money_pdf($invoice->sub_total) !!} | 
    @if ($invoice->tax_per_item === 'YES')
        @for ($i = 0; $i < count($labels); $i++)
            
                | {{$labels[$i]}} | {!! format_money_pdf($taxes[$i]) !!} | 
        @endfor
    @else
        @foreach ($invoice->taxes as $tax)
            
                | {{$tax->name.' ('.$tax->percent.'%)'}} | {!! format_money_pdf($tax->amount) !!} | 
        @endforeach
    @endif
    @if ($invoice->discount_per_item === 'NO')
        
            | Discount ({{$invoice->discount}}%) | @if($invoice->discount_type === 'fixed')
                    {!! format_money_pdf($invoice->discount_val) !!}
                @endif
                @if($invoice->discount_type === 'percentage')
                    {!! format_money_pdf($invoice->discount_val) !!}
                @endif | 
    @endif
    
        |  |  | 
    
        |  | {!! format_money_pdf($invoice->total)!!} |