Hide mfg button if no permissions to create

This commit is contained in:
snipe 2018-01-22 14:02:17 -08:00
parent 691ec164b1
commit c75a2051ff

View file

@ -8,8 +8,10 @@
{{-- Page title --}}
@section('header_right')
<a href="{{ route('manufacturers.create') }}" class="btn btn-primary pull-right">
{{ trans('general.create') }}</a>
@can('create', \App\Models\Manufacturer::class)
<a href="{{ route('manufacturers.create') }}" class="btn btn-primary pull-right">
{{ trans('general.create') }}</a>
@endcan
@stop
{{-- Page content --}}