@extends('layouts.app') @php $deleteKnowledgebasePermission = user()->permission('delete_knowledgebase'); $editKnowledgebasePermission = user()->permission('edit_knowledgebase'); $addknowledgebasePermission = user()->permission('add_knowledgebase'); @endphp @section('content')
@if ($addknowledgebasePermission == 'all')
@lang('modules.knowledgeBase.addknowledgebase') @lang('modules.module.addknowledgebaseCategory')
@endif
@lang('app.clearFilters')

@lang($pageTitle)

# @lang('modules.knowledgeBase.knowledgeHeading') @lang('modules.knowledgeBase.knowledgeCategory') @lang('app.to') @lang('app.action') @forelse ($knowledgebases as $key => $item) @if (in_array('admin', user_roles()) || in_array($item->to, user_roles())) {{ $key + 1 }} {{ $item->heading }} {{ ucfirst($item->knowledgebasecategory->name) }} {{ ucfirst($item->to) }} @if ($editKnowledgebasePermission == 'all' || ($editKnowledgebasePermission == 'added' && $item->added_by == user()->id)) @endif @if ($deleteKnowledgebasePermission == 'all' || ($deleteKnowledgebasePermission == 'added' && $item->added_by == user()->id)) @endif @endif @empty @endforelse
@endsection @push('scripts') @endpush