@php $editPermission = user()->permission('edit_vendor'); $deletePermission = user()->permission('delete_vendor'); @endphp

{{ $vendor->primary_name }}

@if ($editPermission == 'all' || ($editPermission == 'added' && $vendor->added_by == user()->id) || ($deletePermission == 'all' || ($deletePermission == 'added' && $vendor->added_by == user()->id))) @endif
{{-- to be updated according to the vendor credit --}}

@lang('app.addedBy')