Added nag alert for unaccepted assets

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-10-04 16:16:21 -07:00
parent 891b5b2882
commit 97b9f96030
2 changed files with 13 additions and 0 deletions

View file

@ -377,6 +377,7 @@ return [
'assets_by_status_type' => 'Assets by Status Type', 'assets_by_status_type' => 'Assets by Status Type',
'pie_chart_type' => 'Dashboard Pie Chart Type', 'pie_chart_type' => 'Dashboard Pie Chart Type',
'hello_name' => 'Hello, :name!', 'hello_name' => 'Hello, :name!',
'unaccepted_profile_warning' => 'You have :count items requiring acceptance. Click here to accept or deny them',
]; ];

View file

@ -9,7 +9,19 @@
{{-- Account page content --}} {{-- Account page content --}}
@section('content') @section('content')
@if ($acceptances = \App\Models\CheckoutAcceptance::forUser(Auth::user())->pending()->count())
<div class="col-md-12">
<div class="alert alert alert-warning fade in">
<i class="fas fa-exclamation-triangle faa-pulse animated"></i>
<strong>
<a href="{{ route('account.accept') }}" style="color: white;">
{{ trans('general.unaccepted_profile_warning', array('count' => $acceptances)) }}
</a>
</strong>
</div>
</div>
@endif
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">