Fix links on admin dashboard

This commit is contained in:
Nabeel Shahzad 2018-01-04 08:14:39 -06:00
parent be8ac25cc0
commit 0bb4ca78f5
3 changed files with 14 additions and 26 deletions

View File

@ -59,6 +59,10 @@ class UserRepository extends BaseRepository
$where['email'] = $request->email;
}
if ($request->filled('state')) {
$where['state'] = $request->state;
}
$this->pushCriteria(new WhereCriteria($request, $where));
return $this;
}

View File

@ -12,14 +12,14 @@
@slot('icon', 'pe-7s-users')
@slot('type', 'Pilots')
@slot('pending', $pending_users)
@slot('link', route('admin.users.index').'?search=state:0')
@slot('link', route('admin.users.index').'?state='.UserState::PENDING)
@endcomponent
@component('admin.components.infobox')
@slot('icon', 'pe-7s-cloud-upload')
@slot('type', 'PIREPs')
@slot('pending', $pending_pireps)
@slot('link', route('admin.pireps.index').'?search=state:0')
@slot('link', route('admin.pireps.index').'?search=state:'.PirepState::PENDING)
@endcomponent
</div>
</div>
@ -30,24 +30,6 @@
<div class="col-md-6">
</div>
{{--<div class="col-md-3 col-sm-6 col-xs-12">
@component('admin.components.infobox')
@slot('icon', 'pe-7s-users')
@slot('type', 'Pilots')
@slot('pending', 5)
@slot('total', 60)
@endcomponent
</div>
<div class="col-md-3 col-sm-6 col-xs-12">
@component('admin.components.infobox')
@slot('icon', 'pe-7s-cloud-upload')
@slot('type', 'PIREPs')
@slot('pending', 5)
@slot('total', 60)
@endcomponent
</div>--}}
</div>
@ -59,12 +41,6 @@
</div>
</div>
<div class="row" style="position:absolute; bottom: 5%; width: 100%;">
<div class="col-xs-12 text-center">
<p class="small">@version</p>
</div>
</div>
</div>
@endsection

View File

@ -16,5 +16,13 @@
<ul class="nav">
@include('admin.menu')
</ul>
<br />
<div class="row">
<div class="col-xs-12 text-center">
<p class="small">@version</p>
</div>
</div>
</div>
</div>