convert @money blade directive to laravel x-money component..
This commit is contained in:
parent
421301eefe
commit
98c49461ea
@ -221,7 +221,7 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="float-right spacing">
|
<span class="float-right spacing">
|
||||||
@money($total->amount - $document->paid, $document->currency_code, true)
|
<x-money :amount="$total->amount - $document->paid" :currency="$document->currency_code" convert />
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
@endif
|
@endif
|
||||||
@ -338,7 +338,7 @@
|
|||||||
</strong>
|
</strong>
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
@money($total->amount, $document->currency_code, true)
|
<x-money :amount="$total->amount" :currency="$document->currency_code" convert />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@stack($total->code . '_total_tr_end')
|
@stack($total->code . '_total_tr_end')
|
||||||
@ -351,7 +351,7 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
- @money($document->paid, $document->currency_code, true)
|
- <x-money :amount="$document->paid" :currency="$document->currency_code" convert />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@stack('paid_total_tr_end')
|
@stack('paid_total_tr_end')
|
||||||
@ -364,7 +364,7 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
@money($document->amount_due, $document->currency_code, true)
|
<x-money :amount="$document->amount_due" :currency="$document->currency_code" convert />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@stack('grand_total_tr_end')
|
@stack('grand_total_tr_end')
|
||||||
|
@ -307,7 +307,7 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
@money($total->amount, $document->currency_code, true)
|
<x-money :amount="$total->amount" :currency="$document->currency_code" convert />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@stack($total->code . '_total_tr_end')
|
@stack($total->code . '_total_tr_end')
|
||||||
@ -320,7 +320,7 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
- @money($document->paid, $document->currency_code, true)
|
- <x-money :amount="$document->paid" :currency="$document->currency_code" convert />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@stack('paid_total_tr_end')
|
@stack('paid_total_tr_end')
|
||||||
@ -333,7 +333,7 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
@money($document->amount_due, $document->currency_code, true)
|
<x-money :amount="$document->amount_due" :currency="$document->currency_code" convert />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@stack('grand_total_tr_end')
|
@stack('grand_total_tr_end')
|
||||||
|
@ -22,13 +22,17 @@
|
|||||||
|
|
||||||
@stack('quantity_td_start')
|
@stack('quantity_td_start')
|
||||||
@if (! $hideQuantity)
|
@if (! $hideQuantity)
|
||||||
<td class="quantity text text-alignment-right text-right">{{ $item->quantity }}</td>
|
<td class="quantity text text-alignment-right text-right">
|
||||||
|
{{ $item->quantity }}
|
||||||
|
</td>
|
||||||
@endif
|
@endif
|
||||||
@stack('quantity_td_end')
|
@stack('quantity_td_end')
|
||||||
|
|
||||||
@stack('price_td_start')
|
@stack('price_td_start')
|
||||||
@if (! $hidePrice)
|
@if (! $hidePrice)
|
||||||
<td class="price text text-alignment-right text-right">@money($item->price, $document->currency_code, true)</td>
|
<td class="price text text-alignment-right text-right">
|
||||||
|
<x-money :amount="$item->price" :currency="$document->currency_code" convert />
|
||||||
|
</td>
|
||||||
@endif
|
@endif
|
||||||
@stack('price_td_end')
|
@stack('price_td_end')
|
||||||
|
|
||||||
@ -54,7 +58,9 @@
|
|||||||
{{ $text_discount }}
|
{{ $text_discount }}
|
||||||
</td>
|
</td>
|
||||||
@else
|
@else
|
||||||
<td class="discount text text-alignment-right text-right">@money($item->discount, $document->currency_code, true)</td>
|
<td class="discount text text-alignment-right text-right">
|
||||||
|
<x-money :amount="$item->discount" :currency="$document->currency_code" convert />
|
||||||
|
</td>
|
||||||
@endif
|
@endif
|
||||||
@stack('discount_td_end')
|
@stack('discount_td_end')
|
||||||
@endif
|
@endif
|
||||||
@ -62,7 +68,9 @@
|
|||||||
|
|
||||||
@stack('total_td_start')
|
@stack('total_td_start')
|
||||||
@if (! $hideAmount)
|
@if (! $hideAmount)
|
||||||
<td class="total text text-alignment-right text-right">@money($item->total, $document->currency_code, true)</td>
|
<td class="total text text-alignment-right text-right">
|
||||||
|
<x-money :amount="$item->total" :currency="$document->currency_code" convert />
|
||||||
|
</td>
|
||||||
@endif
|
@endif
|
||||||
@stack('total_td_end')
|
@stack('total_td_end')
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -308,7 +308,7 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
@money($total->amount, $document->currency_code, true)
|
<x-money :amount="$total->amount" :currency="$document->currency_code" convert />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@stack($total->code . '_total_tr_end')
|
@stack($total->code . '_total_tr_end')
|
||||||
@ -321,7 +321,7 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
- @money($document->paid, $document->currency_code, true)
|
- <x-money :amount="$document->paid" :currency="$document->currency_code" convert />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@stack('paid_total_tr_end')
|
@stack('paid_total_tr_end')
|
||||||
@ -334,7 +334,7 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
@money($document->amount_due, $document->currency_code, true)
|
<x-money :amount="$document->amount_due" :currency="$document->currency_code" convert />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@stack('grand_total_tr_end')
|
@stack('grand_total_tr_end')
|
||||||
|
@ -347,12 +347,12 @@
|
|||||||
|
|
||||||
<td class="price text-alignment-right text-right" style="color:#424242; font-size:12px; padding-right:0;">
|
<td class="price text-alignment-right text-right" style="color:#424242; font-size:12px; padding-right:0;">
|
||||||
@if (! $hideRelatedDocumentAmount)
|
@if (! $hideRelatedDocumentAmount)
|
||||||
@money($transaction->document->amount, $transaction->document->currency_code, true) <br />
|
<x-money :amount="$transaction->document->amount" :currency="$transaction->document->currency_code" convert /> <br />
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (! $hideRelatedAmount)
|
@if (! $hideRelatedAmount)
|
||||||
<span style="color: #6E6E6E">
|
<span style="color: #6E6E6E">
|
||||||
@money($transaction->amount, $transaction->currency_code, true)
|
<x-money :amount="$transaction->amount" :currency="$transaction->currency_code" convert />
|
||||||
</span>
|
</span>
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
@ -369,8 +369,10 @@
|
|||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="center" style="font-size: 14px; color: #ffffff; padding: 0;">
|
<td valign="center" style="font-size: 14px; color: #ffffff; padding: 0;">
|
||||||
<span class="ml-2 font-semibold">{{ trans($textAmount) }}</span>
|
<span class="ml-2 font-semibold">
|
||||||
@money($transaction->amount, $transaction->currency_code, true)
|
{{ trans($textAmount) }}
|
||||||
|
</span>
|
||||||
|
<x-money :amount="$transaction->amount" :currency="$transaction->currency_code" convert />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user