diff --git a/resources/lang/de/invoice.php b/resources/lang/de/invoice.php index 0b53c86..326aa29 100644 --- a/resources/lang/de/invoice.php +++ b/resources/lang/de/invoice.php @@ -38,6 +38,8 @@ return [ 'item_removed' => 'Position gelöscht.', 'confirm_instruction' => 'Bitte übeprüfen Sie diese Rechnungsposition, tippe :back_link zum Bearbeiten.', 'draft_del_confirm' => 'Wollen Sie wirklich diesen Entwurf löschen?', + 'payment_instruction' => 'Payment can be transfered via our bank account(s):', + 'thanks_text' => 'Thank you for using our services.', // Attributes 'number' => 'Rechnungsnr.', diff --git a/resources/lang/en/invoice.php b/resources/lang/en/invoice.php index 688d56a..af86676 100644 --- a/resources/lang/en/invoice.php +++ b/resources/lang/en/invoice.php @@ -21,7 +21,7 @@ return [ 'create' => 'Create new Invoice', 'save' => 'Save Invoice', 'created' => 'New Invoice has been created.', - 'show' => 'Invoice Detail', + 'show' => 'View Invoice Detail', 'edit' => 'Edit Invoice', 'update' => 'Update Invoice', 'updated' => 'Invoice data has been updated.', @@ -38,6 +38,8 @@ return [ 'item_removed' => 'Item removed.', 'confirm_instruction' => 'Please check this Invoice detail, hit :back_link to edit the detail.', 'draft_del_confirm' => 'Are you sure to remove this Invoice Draft?', + 'payment_instruction' => 'Payment can be transfered via our bank account(s):', + 'thanks_text' => 'Thank you for using our services.', // Attributes 'number' => 'Invocie No.', diff --git a/resources/lang/id/invoice.php b/resources/lang/id/invoice.php index db4fd17..a73f957 100644 --- a/resources/lang/id/invoice.php +++ b/resources/lang/id/invoice.php @@ -21,7 +21,7 @@ return [ 'create' => 'Input Invoice Baru', 'save' => 'Simpan Invoice', 'created' => 'Input Invoice baru telah berhasil.', - 'show' => 'Detail Invoice', + 'show' => 'Lihat Detail Invoice', 'edit' => 'Edit Invoice', 'update' => 'Update Invoice', 'updated' => 'Update data Invoice telah berhasil.', @@ -38,6 +38,8 @@ return [ 'item_removed' => 'Item berhasil dihapus.', 'confirm_instruction' => 'Silakan periksa rincian di bawah ini, jika belum sesuai, silakan klik :back_link.', 'draft_del_confirm' => 'Yakin ingin menghapus Draft Invoice ini?', + 'payment_instruction' => 'Pembayaran dapat dilakukan melalui transfer ke rekening berikut:', + 'thanks_text' => 'Terima kasih atas kerjasamanya.', // Attributes 'number' => 'No. Invoice', diff --git a/resources/views/customers/invoices.blade.php b/resources/views/customers/invoices.blade.php index 337f00e..b866f81 100755 --- a/resources/views/customers/invoices.blade.php +++ b/resources/views/customers/invoices.blade.php @@ -29,7 +29,7 @@ [ 'icon' => 'search', 'class' => 'btn btn-info btn-xs', - 'title' => 'Lihat ' . trans('invoice.show') + 'title' => __('invoice.show'), ] ) !!} {!! html_link_to_route( diff --git a/resources/views/invoices/index.blade.php b/resources/views/invoices/index.blade.php index a6ab850..723ef68 100755 --- a/resources/views/invoices/index.blade.php +++ b/resources/views/invoices/index.blade.php @@ -41,7 +41,7 @@ [ 'icon' => 'search', 'class' => 'btn btn-info btn-xs', - 'title' => 'Lihat ' . trans('invoice.show') + 'title' => __('invoice.show'), ] ) !!} {!! html_link_to_route( @@ -62,7 +62,7 @@ {{ trans('app.total') }} {{ formatRp($invoices->sum('amount')) }} - +   diff --git a/resources/views/invoices/partials/item-list.blade.php b/resources/views/invoices/partials/item-list.blade.php index 195d424..2ef7f53 100644 --- a/resources/views/invoices/partials/item-list.blade.php +++ b/resources/views/invoices/partials/item-list.blade.php @@ -2,16 +2,15 @@

{{ trans('invoice.items') }} - ({{ count($invoice->items) }} Item)

- - - - + + + + @@ -38,20 +37,19 @@ 'currency' => Option::get('money_sign', 'Rp') ] ) !!} - {{ Form::submit('Update', ['id' => 'update-item-'.$key, 'class' => 'btn btn-success btn-xs pull-right']) }} + {{ Form::submit(__('app.update'), ['id' => 'update-item-'.$key, 'class' => 'btn btn-success btn-xs pull-right']) }} {{ Form::close() }} @endforeach - + {{ Form::open(['route' => ['invoices.items.store', $invoice]]) }} diff --git a/resources/views/invoices/pdf.blade.php b/resources/views/invoices/pdf.blade.php index 6782b9a..34c7439 100755 --- a/resources/views/invoices/pdf.blade.php +++ b/resources/views/invoices/pdf.blade.php @@ -129,16 +129,15 @@ @if ($invoice->notes) @endif - {{-- TODO : Add dynamic bank account based on agency bank account. --}}
#DeskripsiBiayaAction{{ __('app.table_no') }}{{ __('app.description') }}{{ __('invoice.item_amount') }}{{ __('app.action') }}
{!! FormField::delete([ 'route' => ['invoices.items.destroy', $invoice], - 'onsubmit' => 'Yakin ingin menghapus Item ini?', 'class' => '', - ], 'x', ['id' => 'remove-item-'.$key, 'class' => 'btn btn-danger btn-xs show-on-hover','title' => 'Hapus item ini'], ['item_index' => $key]) !!} + ], 'x', ['id' => 'remove-item-'.$key, 'class' => 'btn btn-danger btn-xs show-on-hover' ,'title' => __('invoice.item_remove')], ['item_index' => $key]) !!}
Tambah Item Invoice{{ __('invoice.add_item') }}
-

Catatan : {!! nl2br($invoice->notes) !!}

+

{{ __('app.notes') }} : {!! nl2br($invoice->notes) !!}

@empty ($bankAccounts) @else -

Pembayaran dapat dilakukan melalui transfer ke rekening berikut:

+

{{ __('invoice.payment_instruction') }}

@foreach ($bankAccounts as $key => $bankAccount) @php $bankAccount = (object) $bankAccount; @endphp @@ -150,7 +149,7 @@ @endforeach @endempty -

Terima kasih atas kerjasamanya.

+

{{ __('invoice.thanks_text') }}

diff --git a/resources/views/projects/invoices.blade.php b/resources/views/projects/invoices.blade.php index e21bf0a..a6b12d2 100755 --- a/resources/views/projects/invoices.blade.php +++ b/resources/views/projects/invoices.blade.php @@ -42,12 +42,27 @@ @empty - + @endforelse
{{ $project->customer->nameLink() }} {{ formatRp($invoice->amount) }} - {!! html_link_to_route('invoices.show', '', [$invoice->number], ['class' => 'btn btn-info btn-xs','icon' => 'search','title' => 'Lihat ' . trans('invoice.show')]) !!} - {!! html_link_to_route('invoices.pdf', '', [$invoice->number], ['class' => 'btn btn-default btn-xs','icon' => 'print','title' => trans('invoice.print'), 'target' => '_blank']) !!} + {!! html_link_to_route( + 'invoices.show', '', [$invoice->number], + [ + 'class' => 'btn btn-info btn-xs', + 'icon' => 'search', + 'title' => __('invoice.show'), + ] + ) !!} + {!! html_link_to_route( + 'invoices.pdf', '', [$invoice->number], + [ + 'class' => 'btn btn-default btn-xs', + 'icon' => 'print', + 'title' => __('invoice.print'), + 'target' => '_blank' + ] + ) !!}
{{ trans('invoice.empty') }}
{{ trans('invoice.empty') }}