akaunting 3.0 (the last dance)
This commit is contained in:
@ -1,14 +1,16 @@
|
||||
<tr>
|
||||
@stack('name_td_start')
|
||||
@if (!$hideItems || (!$hideName && !$hideDescription))
|
||||
<td class="item">
|
||||
@if (!$hideName)
|
||||
{{ $item->name }}
|
||||
@if (! $hideItems || (! $hideName && ! $hideDescription))
|
||||
<td class="item text text-alignment-left">
|
||||
@if (! $hideName)
|
||||
{{ $item->name }} <br/>
|
||||
@endif
|
||||
|
||||
@if (!$hideDescription)
|
||||
@if (!empty($item->description))
|
||||
<br><small>{!! \Illuminate\Support\Str::limit($item->description, 500) !!}</small>
|
||||
@if (! $hideDescription)
|
||||
@if (! empty($item->description))
|
||||
<span class="small-text">
|
||||
{!! \Illuminate\Support\Str::limit($item->description, 500) !!}
|
||||
</span>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@ -19,32 +21,32 @@
|
||||
@stack('name_td_end')
|
||||
|
||||
@stack('quantity_td_start')
|
||||
@if (!$hideQuantity)
|
||||
<td class="quantity">{{ $item->quantity }}</td>
|
||||
@if (! $hideQuantity)
|
||||
<td class="quantity text text-alignment-right">{{ $item->quantity }}</td>
|
||||
@endif
|
||||
@stack('quantity_td_end')
|
||||
|
||||
@stack('price_td_start')
|
||||
@if (!$hidePrice)
|
||||
<td class="price">@money($item->price, $document->currency_code, true)</td>
|
||||
@if (! $hidePrice)
|
||||
<td class="price text text-alignment-right">@money($item->price, $document->currency_code, true)</td>
|
||||
@endif
|
||||
@stack('price_td_end')
|
||||
|
||||
@if (!$hideDiscount)
|
||||
@if (! $hideDiscount)
|
||||
@if (in_array(setting('localisation.discount_location', 'total'), ['item', 'both']))
|
||||
@stack('discount_td_start')
|
||||
@if ($item->discount_type === 'percentage')
|
||||
<td class="discount">{{ $item->discount }}</td>
|
||||
<td class="discount text text-alignment-right">{{ $item->discount }}</td>
|
||||
@else
|
||||
<td class="discount">@money($item->discount, $document->currency_code, true)</td>
|
||||
<td class="discount text text-alignment-right">@money($item->discount, $document->currency_code, true)</td>
|
||||
@endif
|
||||
@stack('discount_td_end')
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@stack('total_td_start')
|
||||
@if (!$hideAmount)
|
||||
<td class="total">@money($item->total, $document->currency_code, true)</td>
|
||||
@if (! $hideAmount)
|
||||
<td class="total text text-alignment-right">@money($item->total, $document->currency_code, true)</td>
|
||||
@endif
|
||||
@stack('total_td_end')
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user