Browse Source

Change @lang blade directive to __() helper

pull/68/head
Nafies Luthfi 5 years ago
parent
commit
ed32db8c42
  1. 4
      resources/views/customers/create.blade.php
  2. 4
      resources/views/customers/show.blade.php
  3. 2
      resources/views/invoices/pdf.blade.php
  4. 8
      resources/views/pages/home.blade.php
  5. 12
      resources/views/payments/pdf.blade.php
  6. 4
      resources/views/payments/show.blade.php
  7. 2
      resources/views/users/index.blade.php

4
resources/views/customers/create.blade.php

@ -17,12 +17,12 @@
<div class="panel-body"> <div class="panel-body">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<legend>@lang('customer.detail')</legend>
<legend>{{ __('customer.detail') }}</legend>
{!! FormField::text('name', ['required' => true]) !!} {!! FormField::text('name', ['required' => true]) !!}
{!! FormField::textarea('notes') !!} {!! FormField::textarea('notes') !!}
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<legend>@lang('customer.contact')</legend>
<legend>{{ __('customer.contact') }}</legend>
{!! FormField::text('pic') !!} {!! FormField::text('pic') !!}
<div class="row"> <div class="row">
<div class="col-xs-7">{!! FormField::email('email') !!}</div> <div class="col-xs-7">{!! FormField::email('email') !!}</div>

4
resources/views/customers/show.blade.php

@ -20,14 +20,14 @@
<div class="col-md-6"> <div class="col-md-6">
<div class="row"> <div class="row">
<div class="col-lg-6 col-md-12"> <div class="col-lg-6 col-md-12">
<a href="{{ route('customers.projects', $customer) }}" title="@lang('customer.projects_count')">
<a href="{{ route('customers.projects', $customer) }}" title="{{ __('customer.projects_count') }}">
<div class="panel panel-info"> <div class="panel panel-info">
<div class="panel-heading"> <div class="panel-heading">
<div class="row"> <div class="row">
<div class="col-xs-3"><i class="fa fa-table fa-4x"></i></div> <div class="col-xs-3"><i class="fa fa-table fa-4x"></i></div>
<div class="col-xs-9 text-right"> <div class="col-xs-9 text-right">
<div class="huge">{{ $customer->projects()->count() }}</div> <div class="huge">{{ $customer->projects()->count() }}</div>
<div class="lead">@lang('customer.projects_count')</div>
<div class="lead">{{ __('customer.projects_count') }}</div>
</div> </div>
</div> </div>
</div> </div>

2
resources/views/invoices/pdf.blade.php

@ -52,7 +52,7 @@
<div style="font-size:11px"> <div style="font-size:11px">
{{ Option::get('agency_address') }}<br> {{ Option::get('agency_address') }}<br>
@if (Option::get('agency_phone')) @if (Option::get('agency_phone'))
@lang('contact.phone_abb') {{ Option::get('agency_phone') }}
{{ __('contact.phone_abb') }} {{ Option::get('agency_phone') }}
@endif @endif
</div> </div>
@endif @endif

8
resources/views/pages/home.blade.php

@ -64,10 +64,10 @@
<div class="panel panel-default table-responsive"> <div class="panel panel-default table-responsive">
<table class="table table-condensed"> <table class="table table-condensed">
<tr> <tr>
<th class="col-xs-3">@lang('subscription.subscription')</th>
<th class="col-xs-3">@lang('customer.customer')</th>
<th class="col-xs-3 text-right">@lang('invoice.amount')</th>
<th class="col-xs-5 text-center">@lang('subscription.due_date')</th>
<th class="col-xs-3">{{ __('subscription.subscription') }}</th>
<th class="col-xs-3">{{ __('customer.customer') }}</th>
<th class="col-xs-3 text-right">{{ __('invoice.amount') }}</th>
<th class="col-xs-5 text-center">{{ __('subscription.due_date') }}</th>
</tr> </tr>
@forelse(AdminDashboard::upcomingSubscriptionDueDatesList() as $subscription) @forelse(AdminDashboard::upcomingSubscriptionDueDatesList() as $subscription)
<tr> <tr>

12
resources/views/payments/pdf.blade.php

@ -32,29 +32,29 @@
<div style="font-size:11px"> <div style="font-size:11px">
{{ Option::get('agency_address') }}<br> {{ Option::get('agency_address') }}<br>
@if (Option::get('agency_phone')) @if (Option::get('agency_phone'))
@lang('contact.phone_abb') {{ Option::get('agency_phone') }}
{{ __('contact.phone_abb') }} {{ Option::get('agency_phone') }}
@endif @endif
</div> </div>
@endif @endif
</div> </div>
</td> </td>
<td style="width:250px; text-align: center;"> <td style="width:250px; text-align: center;">
<h3 style="margin: 3px 0; font-size: 24px">@lang('payment.receipt')</h3>
<h3 style="margin: 3px 0; font-size: 24px">{{ __('payment.receipt') }}</h3>
{{-- <p>No. Invoice: __________</p> --}} {{-- <p>No. Invoice: __________</p> --}}
</td> </td>
</tr> </tr>
<tr> <tr>
<td>@lang('payment.from') : </td>
<td>{{ __('payment.from') }} : </td>
<td colspan="2" style="border-bottom: 1px solid #ccc;">{{ $payment->partner->name }}</td> <td colspan="2" style="border-bottom: 1px solid #ccc;">{{ $payment->partner->name }}</td>
</tr> </tr>
<tr style="vertical-align: top;"> <tr style="vertical-align: top;">
<td>@lang('payment.words_amount') : </td>
<td>{{ __('payment.words_amount') }} : </td>
<td colspan="2" style="border-bottom: 1px solid #ccc;height: 35px"> <td colspan="2" style="border-bottom: 1px solid #ccc;height: 35px">
{{ ucwords(Terbilang::make($payment->amount)) }} Rupiah {{ ucwords(Terbilang::make($payment->amount)) }} Rupiah
</td> </td>
</tr> </tr>
<tr style="vertical-align: top;"> <tr style="vertical-align: top;">
<td>@lang('payment.description') :</td>
<td>{{ __('payment.description') }} :</td>
<td colspan="2" style="border-bottom: 1px solid #ccc;height: 35px"> <td colspan="2" style="border-bottom: 1px solid #ccc;height: 35px">
{{ $payment->description }} {{ $payment->description }}
</td> </td>
@ -67,7 +67,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="font-size: 20px; font-weight: bold; text-align: center;height: 100px;vertical-align: bottom;">@lang('payment.cash_amount')</td>
<td style="font-size: 20px; font-weight: bold; text-align: center;height: 100px;vertical-align: bottom;">{{ __('payment.cash_amount') }}</td>
<td style="font-size: 20px; font-weight: bold; vertical-align: bottom;"> <td style="font-size: 20px; font-weight: bold; vertical-align: bottom;">
{{ format_money($payment->amount) }},- {{ format_money($payment->amount) }},-
</td> </td>

4
resources/views/payments/show.blade.php

@ -8,11 +8,11 @@
<div class="row"> <div class="row">
<div class="col-md-5 col-lg-offset-2"> <div class="col-md-5 col-lg-offset-2">
<legend>@lang('payment.detail') <small class="pull-right text-muted">{{ __('app.type') }} : {{ $payment->type() }}</small></legend>
<legend>{{ __('payment.detail') }} <small class="pull-right text-muted">{{ __('app.type') }} : {{ $payment->type() }}</small></legend>
@include('payments.partials.payment-show') @include('payments.partials.payment-show')
</div> </div>
<div class="col-md-3 text-center"> <div class="col-md-3 text-center">
<legend>@lang('app.action')</legend>
<legend>{{ __('app.action') }}</legend>
<p>{!! link_to_route('payments.pdf', __('payment.print'), [$payment->id], ['class' => 'btn btn-success']) !!}</p> <p>{!! link_to_route('payments.pdf', __('payment.print'), [$payment->id], ['class' => 'btn btn-success']) !!}</p>
<p>{!! link_to_route('payments.edit', __('payment.edit'), [$payment->id], ['class' => 'btn btn-warning']) !!}</p> <p>{!! link_to_route('payments.edit', __('payment.edit'), [$payment->id], ['class' => 'btn btn-warning']) !!}</p>
<p>{!! link_to_route('projects.payments', __('project.view_payments'), [$payment->project_id], ['class' => 'btn btn-default']) !!}</p> <p>{!! link_to_route('projects.payments', __('project.view_payments'), [$payment->project_id], ['class' => 'btn btn-default']) !!}</p>

2
resources/views/users/index.blade.php

@ -11,7 +11,7 @@
'style' => 'margin:-2px 0', 'style' => 'margin:-2px 0',
'icon' => 'plus' 'icon' => 'plus'
]) !!} ]) !!}
<h3 class="panel-title">@lang('user.list')</h3>
<h3 class="panel-title">{{ __('user.list') }}</h3>
</div> </div>
<table class="table table-condensed"> <table class="table table-condensed">
<thead> <thead>

Loading…
Cancel
Save