diff --git a/resources/views/components/documents/show/get-paid.blade.php b/resources/views/components/documents/show/get-paid.blade.php index 5f7d1f2f4..d08cd1254 100644 --- a/resources/views/components/documents/show/get-paid.blade.php +++ b/resources/views/components/documents/show/get-paid.blade.php @@ -61,54 +61,56 @@
- @if (! empty($transaction->contact) && $transaction->contact->email) - - - {{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }} - - - @else - - +
+ @if (! empty($transaction->contact) && $transaction->contact->email) + {{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }} - - @endif + @else + + + + {{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }} + + + + @endif - - + - - - - {{ trans('general.title.edit', ['type' => trans_choice('general.payments', 1)]) }} - - + + + {{ trans('general.title.edit', ['type' => trans_choice('general.payments', 1)]) }} + + - - + - - @php - $message = trans('general.delete_confirm', [ - 'name' => '' . Date::parse($transaction->paid_at)->format(company_date_format()) . ' - ' . money($transaction->amount, $transaction->currency_code, true) . ' - ' . $transaction->account->name . '', - 'type' => strtolower(trans_choice('general.transactions', 1)) - ]); - @endphp + @php + $message = trans('general.delete_confirm', [ + 'name' => '' . Date::parse($transaction->paid_at)->format(company_date_format()) . ' - ' . money($transaction->amount, $transaction->currency_code, true) . ' - ' . $transaction->account->name . '', + 'type' => strtolower(trans_choice('general.transactions', 1)) + ]); + @endphp - + +
@endforeach @else diff --git a/resources/views/components/documents/show/make-payment.blade.php b/resources/views/components/documents/show/make-payment.blade.php index ed7a37304..c382bae9a 100644 --- a/resources/views/components/documents/show/make-payment.blade.php +++ b/resources/views/components/documents/show/make-payment.blade.php @@ -44,54 +44,56 @@
- @if (! empty($transaction->contact) && $transaction->contact->email) - - - {{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }} - - - @else - - +
+ @if (! empty($transaction->contact) && $transaction->contact->email) + {{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }} - - @endif + @else + + + + {{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }} + + + + @endif - - + - - - - {{ trans('general.title.edit', ['type' => trans_choice('general.payments', 1)]) }} - - + + + {{ trans('general.title.edit', ['type' => trans_choice('general.payments', 1)]) }} + + - - + - - @php - $message = trans('general.delete_confirm', [ - 'name' => '' . Date::parse($transaction->paid_at)->format(company_date_format()) . ' - ' . money($transaction->amount, $transaction->currency_code, true) . ' - ' . $transaction->account->name . '', - 'type' => strtolower(trans_choice('general.transactions', 1)) - ]); - @endphp + @php + $message = trans('general.delete_confirm', [ + 'name' => '' . Date::parse($transaction->paid_at)->format(company_date_format()) . ' - ' . money($transaction->amount, $transaction->currency_code, true) . ' - ' . $transaction->account->name . '', + 'type' => strtolower(trans_choice('general.transactions', 1)) + ]); + @endphp - + +
@endforeach @else