chore: 🎨 added localization strings
This commit is contained in:
parent
bd56c6b320
commit
2ba2c9ab82
2 changed files with 24 additions and 24 deletions
|
@ -7,7 +7,6 @@ use App\Http\Controllers\Controller;
|
|||
use App\Models\Configuration;
|
||||
use App\Models\Payment;
|
||||
use App\Models\CreditProduct;
|
||||
use App\Models\Product;
|
||||
use App\Models\User;
|
||||
use App\Notifications\ConfirmPaymentNotification;
|
||||
use Exception;
|
||||
|
@ -194,7 +193,7 @@ class PaymentController extends Controller
|
|||
event(new UserUpdateCreditsEvent($user));
|
||||
|
||||
//redirect back to home
|
||||
return redirect()->route('home')->with('success', 'Your credit balance has been increased!');
|
||||
return redirect()->route('home')->with('success', __('Your credit balance has been increased!'));
|
||||
}
|
||||
|
||||
// If call returns body in response, you can get the deserialized version from the result attribute of the response
|
||||
|
@ -328,7 +327,7 @@ class PaymentController extends Controller
|
|||
event(new UserUpdateCreditsEvent($user));
|
||||
|
||||
//redirect back to home
|
||||
return redirect()->route('home')->with('success', 'Your credit balance has been increased!');
|
||||
return redirect()->route('home')->with('success', __('Your credit balance has been increased!'));
|
||||
}
|
||||
}catch (HttpException $ex) {
|
||||
if (env('APP_ENV') == 'local') {
|
||||
|
|
|
@ -6,12 +6,13 @@
|
|||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>Payments</h1>
|
||||
<h1>{{ __('Payments') }}</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="{{route('home')}}">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><a class="text-muted" href="{{route('admin.payments.index')}}">Payments</a>
|
||||
<li class="breadcrumb-item"><a href="{{ route('home') }}">{{ __('Dashboard') }}</a></li>
|
||||
<li class="breadcrumb-item"><a class="text-muted"
|
||||
href="{{ route('admin.payments.index') }}">{{ __('Payments') }}</a>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
@ -26,24 +27,24 @@
|
|||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h5 class="card-title"><i class="fas fa-money-bill-wave mr-2"></i>Payments</h5>
|
||||
<h5 class="card-title"><i class="fas fa-money-bill-wave mr-2"></i>{{ __('Payments') }}</h5>
|
||||
</div>
|
||||
|
||||
<div class="card-body table-responsive">
|
||||
<table id="datatable" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Type</th>
|
||||
<th>Amount</th>
|
||||
<th>Product Price</th>
|
||||
<th>Tax Value</th>
|
||||
<th>Tax Percentage</th>
|
||||
<th>Total Price</th>
|
||||
<th>Payment_ID</th>
|
||||
<th>Payment Method</th>
|
||||
<th>Created at</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('ID') }}</th>
|
||||
<th>{{ __('Type') }}</th>
|
||||
<th>{{ __('Amount') }}</th>
|
||||
<th>{{ __('Product Price') }}</th>
|
||||
<th>{{ __('Tax Value') }}</th>
|
||||
<th>{{ __('Tax Percentage') }}</th>
|
||||
<th>{{ __('Total Price') }}</th>
|
||||
<th>{{ __('Payment ID') }}</th>
|
||||
<th>{{ __('Payment Method') }}</th>
|
||||
<th>{{ __('Created at') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
|
@ -58,14 +59,14 @@
|
|||
<!-- END CONTENT -->
|
||||
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
$('#datatable').DataTable({
|
||||
processing: true,
|
||||
serverSide: true,
|
||||
stateSave: true,
|
||||
ajax: "{{route('admin.payments.datatable')}}",
|
||||
ajax: "{{ route('admin.payments.datatable') }}",
|
||||
columns: [
|
||||
{data: 'id' , name : 'payments.id'},
|
||||
{data: 'id',name: 'payments.id'},
|
||||
{data: 'type'},
|
||||
{data: 'amount'},
|
||||
{data: 'price'},
|
||||
|
@ -76,9 +77,9 @@
|
|||
{data: 'payment_method'},
|
||||
{data: 'created_at'},
|
||||
],
|
||||
fnDrawCallback: function( oSettings ) {
|
||||
fnDrawCallback: function(oSettings) {
|
||||
$('[data-toggle="popover"]').popover();
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue