Display accurate quantity in banner
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
{{-- Account page content --}}
|
||||
@section('content')
|
||||
|
||||
@if ($acceptances = \App\Models\CheckoutAcceptance::forUser(Auth::user())->pending()->count())
|
||||
@if ($acceptanceCount = \App\Models\CheckoutAcceptance::forUser(Auth::user())->pending()->sum('qty'))
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert alert-warning fade in">
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
<strong>
|
||||
<a href="{{ route('account.accept') }}" style="color: white;">
|
||||
{{ trans_choice('general.unaccepted_profile_warning', $acceptances, ['count' => $acceptances]) }}
|
||||
{{ trans_choice('general.unaccepted_profile_warning', $acceptanceCount, ['count' => $acceptanceCount]) }}
|
||||
</a>
|
||||
</strong>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user