{!! Form::select('role_id', Auth::user()->available_roles(), '', ['class' => 'form-control', 'id' => 'role_id', '']) !!}
@if(auth()->user()->hasRole(['distributor']))
@if( auth()->user()->hasRole(['admin', 'agent']) ) {!! Form::select('shop_id', ['0' => '---'] + $shops, '0', ['class' => 'form-control', 'id' => 'shops']) !!} @else {!! Form::select('shop_id', $shops, '0', ['class' => 'form-control', 'id' => 'shops']) !!} @endif
@endif @if( auth()->user()->hasRole(['manager', 'cashier']) ) @endif @if( auth()->user()->hasRole(['cashier']) )
@endif