fix tax-per-item issue display for estimates

This commit is contained in:
Mohit Panjwani
2021-07-16 11:56:18 +05:30
parent d3a745605e
commit 9f673d7eb3
2 changed files with 14 additions and 26 deletions

View File

@ -72,16 +72,16 @@
</tr>
@if ($estimate->tax_per_item === 'YES')
@for ($i = 0; $i < count($labels); $i++)
@foreach ($taxes as $tax)
<tr>
<td class="border-0 total-table-attribute-label">
{{$labels[$i]}}
{{$tax->name.' ('.$tax->percent.'%)'}}
</td>
<td class="border-0 item-cell total-table-attribute-value">
{!! format_money_pdf($taxes[$i], $estimate->user->currency) !!}
<td class="py-2 border-0 item-cell total-table-attribute-value">
{!! format_money_pdf($tax->amount, $estimate->user->currency) !!}
</td>
</tr>
@endfor
@endforeach
@else
@foreach ($estimate->taxes as $tax)
<tr>