From ed32db8c42cfd36261df92620f4871d29afeda52 Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Sat, 5 Dec 2020 20:06:14 +0800 Subject: [PATCH] Change @lang blade directive to __() helper --- resources/views/customers/create.blade.php | 4 ++-- resources/views/customers/show.blade.php | 4 ++-- resources/views/invoices/pdf.blade.php | 2 +- resources/views/pages/home.blade.php | 8 ++++---- resources/views/payments/pdf.blade.php | 12 ++++++------ resources/views/payments/show.blade.php | 4 ++-- resources/views/users/index.blade.php | 2 +- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/resources/views/customers/create.blade.php b/resources/views/customers/create.blade.php index 9699d57..13e7e16 100644 --- a/resources/views/customers/create.blade.php +++ b/resources/views/customers/create.blade.php @@ -17,12 +17,12 @@
- @lang('customer.detail') + {{ __('customer.detail') }} {!! FormField::text('name', ['required' => true]) !!} {!! FormField::textarea('notes') !!}
- @lang('customer.contact') + {{ __('customer.contact') }} {!! FormField::text('pic') !!}
{!! FormField::email('email') !!}
diff --git a/resources/views/customers/show.blade.php b/resources/views/customers/show.blade.php index 2540d73..789995a 100755 --- a/resources/views/customers/show.blade.php +++ b/resources/views/customers/show.blade.php @@ -20,14 +20,14 @@
- +
{{ $customer->projects()->count() }}
-
@lang('customer.projects_count')
+
{{ __('customer.projects_count') }}
diff --git a/resources/views/invoices/pdf.blade.php b/resources/views/invoices/pdf.blade.php index a97f9dd..7a19f24 100755 --- a/resources/views/invoices/pdf.blade.php +++ b/resources/views/invoices/pdf.blade.php @@ -52,7 +52,7 @@
{{ Option::get('agency_address') }}
@if (Option::get('agency_phone')) - @lang('contact.phone_abb') {{ Option::get('agency_phone') }} + {{ __('contact.phone_abb') }} {{ Option::get('agency_phone') }} @endif
@endif diff --git a/resources/views/pages/home.blade.php b/resources/views/pages/home.blade.php index 5499abd..66df39a 100755 --- a/resources/views/pages/home.blade.php +++ b/resources/views/pages/home.blade.php @@ -64,10 +64,10 @@
- - - - + + + + @forelse(AdminDashboard::upcomingSubscriptionDueDatesList() as $subscription) diff --git a/resources/views/payments/pdf.blade.php b/resources/views/payments/pdf.blade.php index 1a77f71..6257262 100755 --- a/resources/views/payments/pdf.blade.php +++ b/resources/views/payments/pdf.blade.php @@ -32,29 +32,29 @@
{{ Option::get('agency_address') }}
@if (Option::get('agency_phone')) - @lang('contact.phone_abb') {{ Option::get('agency_phone') }} + {{ __('contact.phone_abb') }} {{ Option::get('agency_phone') }} @endif
@endif - + - + - + @@ -67,7 +67,7 @@ - + diff --git a/resources/views/payments/show.blade.php b/resources/views/payments/show.blade.php index c8d1a79..2dfd1bb 100755 --- a/resources/views/payments/show.blade.php +++ b/resources/views/payments/show.blade.php @@ -8,11 +8,11 @@
- @lang('payment.detail') {{ __('app.type') }} : {{ $payment->type() }} + {{ __('payment.detail') }} {{ __('app.type') }} : {{ $payment->type() }} @include('payments.partials.payment-show')
- @lang('app.action') + {{ __('app.action') }}

{!! link_to_route('payments.pdf', __('payment.print'), [$payment->id], ['class' => 'btn btn-success']) !!}

{!! link_to_route('payments.edit', __('payment.edit'), [$payment->id], ['class' => 'btn btn-warning']) !!}

{!! link_to_route('projects.payments', __('project.view_payments'), [$payment->project_id], ['class' => 'btn btn-default']) !!}

diff --git a/resources/views/users/index.blade.php b/resources/views/users/index.blade.php index 50cdbf2..4fdfdbd 100755 --- a/resources/views/users/index.blade.php +++ b/resources/views/users/index.blade.php @@ -11,7 +11,7 @@ 'style' => 'margin:-2px 0', 'icon' => 'plus' ]) !!} -

@lang('user.list')

+

{{ __('user.list') }}

@lang('subscription.subscription')@lang('customer.customer')@lang('invoice.amount')@lang('subscription.due_date'){{ __('subscription.subscription') }}{{ __('customer.customer') }}{{ __('invoice.amount') }}{{ __('subscription.due_date') }}
-

@lang('payment.receipt')

+

{{ __('payment.receipt') }}

{{--

No. Invoice: __________

--}}
@lang('payment.from') : {{ __('payment.from') }} : {{ $payment->partner->name }}
@lang('payment.words_amount') : {{ __('payment.words_amount') }} : {{ ucwords(Terbilang::make($payment->amount)) }} Rupiah
@lang('payment.description') :{{ __('payment.description') }} : {{ $payment->description }}
@lang('payment.cash_amount'){{ __('payment.cash_amount') }} {{ format_money($payment->amount) }},-