@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')
@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) {{ $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 @empty @endforelse
@endsection @push('scripts') @endpush