add un-confirm option to user:confirm, hide New button from dashboard if user isn't confirmed

This commit is contained in:
2018-08-11 21:28:42 +02:00
parent aa677efd51
commit ceca9af0fc
2 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -50,7 +50,7 @@
{{ $tables->links(null, ['ulClass' => 'pagination-sm mb-0 pagination-outline-light']) }}
</nav>
@if(authed())
@if(authed() && user()->confirmed)
<a href="{{route('table.create')}}" class="btn ml-3" aria-label="New Table">New</a>
@endif
</div>