diff --git a/app/Http/Controllers/Users/AgencyController.php b/app/Http/Controllers/Users/AgencyController.php index e9716e0..bacdbc3 100644 --- a/app/Http/Controllers/Users/AgencyController.php +++ b/app/Http/Controllers/Users/AgencyController.php @@ -47,6 +47,7 @@ class AgencyController extends Controller 'address' => 'required|string|max:255', 'city' => 'required|string|max:100', 'phone' => 'required|string|max:255', + 'tax_id' => 'nullable|string|max:255', ]); Option::set('agency_name', request('name')); @@ -56,6 +57,7 @@ class AgencyController extends Controller Option::set('agency_address', request('address')); Option::set('agency_city', request('city')); Option::set('agency_phone', request('phone')); + Option::set('agency_tax_id', request('tax_id')); flash(__('agency.updated'), 'success'); diff --git a/resources/lang/de/agency.php b/resources/lang/de/agency.php index 00cd3e6..0905ac7 100644 --- a/resources/lang/de/agency.php +++ b/resources/lang/de/agency.php @@ -22,4 +22,5 @@ return [ 'address' => 'Agentur Adresse', 'phone' => 'Agentur Telefon', 'logo' => 'Agentur Logo', + 'tax_id' => 'Tax ID Number', ]; diff --git a/resources/lang/en/agency.php b/resources/lang/en/agency.php index bf75f59..e875da0 100644 --- a/resources/lang/en/agency.php +++ b/resources/lang/en/agency.php @@ -22,4 +22,5 @@ return [ 'address' => 'Agency Address', 'phone' => 'Agency Phone', 'logo' => 'Agency Logo', + 'tax_id' => 'Tax ID Number', ]; diff --git a/resources/lang/id/agency.php b/resources/lang/id/agency.php index e33cc41..319543d 100644 --- a/resources/lang/id/agency.php +++ b/resources/lang/id/agency.php @@ -22,4 +22,5 @@ return [ 'address' => 'Alamat Agensi', 'phone' => 'Telp. Agensi', 'logo' => 'Logo Agensi', + 'tax_id' => 'NPWP', ]; diff --git a/resources/views/invoices/pdf.blade.php b/resources/views/invoices/pdf.blade.php index c1eefc1..c830812 100755 --- a/resources/views/invoices/pdf.blade.php +++ b/resources/views/invoices/pdf.blade.php @@ -59,14 +59,14 @@
{!! nl2br($customer->address) !!}
@endif @if ($customer->phone) -{{ trans('contact.phone') }} : {{ $customer->phone }}
+{{ __('contact.phone') }} : {{ $customer->phone }}
@endif @if ($customer->website){{ $customer->website }}
@@ -86,20 +86,24 @@{{ dateId($invoice->due_date) }}
+{{ dateId($invoice->due_date) }}
+ @endif + @if ($taxId = Option::get('agency_tax_id')) +{{ $taxId }}
@endif| {{ trans('app.table_no') }} | -{{ trans('invoice.item_description') }} | -{{ trans('invoice.item_amount') }} | +{{ __('app.table_no') }} | +{{ __('invoice.item_description') }} | +{{ __('invoice.item_amount') }} | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ trans('app.total') }} | +{{ __('app.total') }} | {{ formatRp($invoice->amount) }} | |||||||||||||||||||||
| {{ trans('payment.words_amount') }} : | +{{ __('payment.words_amount') }} : | {{ ucwords(Terbilang::make($invoice->amount)) }} {{ Option::get('money_sign_in_word', 'Rupiah') }} | @@ -158,9 +162,9 @@ @foreach ($bankAccounts as $key => $bankAccount) @php $bankAccount = (object) $bankAccount; @endphp|||||||||||||||||||||
| {{ trans('bank_account.name') }} | : {{ $bankAccount->name }} |
| {{ trans('bank_account.number') }} | : {{ $bankAccount->number }} |
| {{ trans('bank_account.account_name') }} | : {{ $bankAccount->account_name }} |
| {{ __('bank_account.name') }} | : {{ $bankAccount->name }} |
| {{ __('bank_account.number') }} | : {{ $bankAccount->number }} |
| {{ __('bank_account.account_name') }} | : {{ $bankAccount->account_name }} |