@if ($viewPermission == 'all' || ($viewPermission == 'added' && $file->added_by == user()->id))
@if ($file->icon != 'images')
@lang('app.view')
@endif
@lang('app.download')
@endif
@if ($deletePermission == 'all' || ($deletePermission == 'added' && $file->added_by == user()->id))
@lang('app.delete')
@endif