From c75a2051fff7c30deb984cdb625ccaa40335573a Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 22 Jan 2018 14:02:17 -0800 Subject: [PATCH] Hide mfg button if no permissions to create --- resources/views/manufacturers/index.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/views/manufacturers/index.blade.php b/resources/views/manufacturers/index.blade.php index 78e746dfed..a5c67b2e19 100755 --- a/resources/views/manufacturers/index.blade.php +++ b/resources/views/manufacturers/index.blade.php @@ -8,8 +8,10 @@ {{-- Page title --}} @section('header_right') - - {{ trans('general.create') }} + @can('create', \App\Models\Manufacturer::class) + + {{ trans('general.create') }} + @endcan @stop {{-- Page content --}}