From 30639e29b6b6e920abbc76ad3d21a8c6dea5aa8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Fri, 7 Aug 2020 15:26:34 +0300 Subject: [PATCH] added more stacks --- .../views/portal/invoices/show.blade.php | 26 +-- .../views/portal/invoices/signed.blade.php | 6 + .../views/purchases/bills/show.blade.php | 126 +++++++------- resources/views/sales/invoices/show.blade.php | 154 +++++++++--------- 4 files changed, 168 insertions(+), 144 deletions(-) diff --git a/resources/views/portal/invoices/show.blade.php b/resources/views/portal/invoices/show.blade.php index 193435737..532fa4491 100644 --- a/resources/views/portal/invoices/show.blade.php +++ b/resources/views/portal/invoices/show.blade.php @@ -238,27 +238,29 @@ @foreach ($invoice->totals_sorted as $total) @if ($total->code != 'total') - @stack($total->code . '_td_start') - - {{ trans($total->title) }}: - @money($total->amount, $invoice->currency_code, true) - - @stack($total->code . '_td_end') + @stack($total->code . '_total_tr_start') + + {{ trans($total->title) }}: + @money($total->amount, $invoice->currency_code, true) + + @stack($total->code . '_total_tr_end') @else @if ($invoice->paid) + @stack('paid_total_tr_start') {{ trans('invoices.paid') }}: - @money($invoice->paid, $invoice->currency_code, true) + @stack('paid_total_tr_end') @endif - @stack('grand_total_td_start') - - {{ trans($total->name) }}: - @money($total->amount - $invoice->paid, $invoice->currency_code, true) - - @stack('grand_total_td_end') + @stack('grand_total_tr_start') + + {{ trans($total->name) }}: + @money($total->amount - $invoice->paid, $invoice->currency_code, true) + + @stack('grand_total_tr_end') @endif @endforeach diff --git a/resources/views/portal/invoices/signed.blade.php b/resources/views/portal/invoices/signed.blade.php index 1263029a1..507522d5a 100644 --- a/resources/views/portal/invoices/signed.blade.php +++ b/resources/views/portal/invoices/signed.blade.php @@ -186,21 +186,27 @@ @foreach($invoice->totals_sorted as $total) @if($total->code != 'total') + @stack($total->code . '_total_tr_start') {{ trans($total['name']) }}: @money($total->amount, $invoice->currency_code, true) + @stack($total->code . '_total_tr_end') @else @if ($invoice->paid) + @stack('paid_total_tr_start') {{ trans('invoices.paid') }}: - @money($invoice->paid, $invoice->currency_code, true) + @stack('paid_total_tr_end') @endif + @stack('grand_total_tr_start') {{ trans($total['name']) }}: @money($total->amount - $invoice->paid, $invoice->currency_code, true) + @stack('grand_total_tr_end') @endif @endforeach diff --git a/resources/views/purchases/bills/show.blade.php b/resources/views/purchases/bills/show.blade.php index ab9f1625e..f0027869c 100644 --- a/resources/views/purchases/bills/show.blade.php +++ b/resources/views/purchases/bills/show.blade.php @@ -385,27 +385,29 @@ @foreach ($bill->totals_sorted as $total) @if ($total->code != 'total') - @stack($total->code . '_td_start') - - {{ trans($total->title) }}: - @money($total->amount, $bill->currency_code, true) - - @stack($total->code . '_td_end') + @stack($total->code . '_total_tr_start') + + {{ trans($total->title) }}: + @money($total->amount, $bill->currency_code, true) + + @stack($total->code . '_total_tr_end') @else @if ($bill->paid) + @stack('paid_total_tr_start') {{ trans('bills.paid') }}: - @money($bill->paid, $bill->currency_code, true) + @stack('paid_total_tr_end') @endif - @stack('grand_total_td_start') - - {{ trans($total->name) }}: - @money($total->amount - $bill->paid, $bill->currency_code, true) - - @stack('grand_total_td_end') + @stack('grand_total_tr_start') + + {{ trans($total->name) }}: + @money($total->amount - $bill->paid, $bill->currency_code, true) + + @stack('grand_total_tr_end') @endif @endforeach @@ -428,69 +430,75 @@
@stack('button_edit_start') - @if(!$bill->reconciled) - -   {{ trans('general.edit') }} - - @endif + @if(!$bill->reconciled) + +   {{ trans('general.edit') }} + + @endif @stack('button_edit_end') @stack('button_print_start') - -   {{ trans('general.print') }} - + +   {{ trans('general.print') }} + @stack('button_print_end') @stack('button_group_start') -
- - @stack('button_group_end')
diff --git a/resources/views/sales/invoices/show.blade.php b/resources/views/sales/invoices/show.blade.php index 1972486dc..0d401e883 100644 --- a/resources/views/sales/invoices/show.blade.php +++ b/resources/views/sales/invoices/show.blade.php @@ -402,27 +402,29 @@ @foreach ($invoice->totals_sorted as $total) @if ($total->code != 'total') - @stack($total->code . '_td_start') - - {{ trans($total->title) }}: - @money($total->amount, $invoice->currency_code, true) - - @stack($total->code . '_td_end') + @stack($total->code . '_total_tr_start') + + {{ trans($total->title) }}: + @money($total->amount, $invoice->currency_code, true) + + @stack($total->code . '_total_tr_end') @else @if ($invoice->paid) + @stack('paid_total_tr_start') {{ trans('invoices.paid') }}: - @money($invoice->paid, $invoice->currency_code, true) + @stack('paid_total_tr_end') @endif - @stack('grand_total_td_start') - - {{ trans($total->name) }}: - @money($total->amount - $invoice->paid, $invoice->currency_code, true) - - @stack('grand_total_td_end') + @stack('grand_total_tr_start') + + {{ trans($total->name) }}: + @money($total->amount - $invoice->paid, $invoice->currency_code, true) + + @stack('grand_total_tr_end') @endif @endforeach @@ -445,87 +447,93 @@
@stack('button_edit_start') - @if(!$invoice->reconciled) - -   {{ trans('general.edit') }} - - @endif + @if(!$invoice->reconciled) + +   {{ trans('general.edit') }} + + @endif @stack('button_edit_end') @stack('button_print_start') - -   {{ trans('general.print') }} - + +   {{ trans('general.print') }} + @stack('button_print_end') @if ($invoice->status != 'cancelled') - @stack('button_share_start') - -   {{ trans('general.share') }} - - @stack('button_share_end') + @stack('button_share_start') + +   {{ trans('general.share') }} + + @stack('button_share_end') @endif @stack('button_group_start') -
- - @stack('button_group_end')