@extends('layouts.adminmaster') @section('styles') @endsection @section('content')

{{lang('Category List')}}

@can('Category Create') {{lang('Add Category')}} @endcan @php $module = Module::all(); @endphp @if(in_array('Uhelpupdate', $module)) @if(setting('ENVATO_ON') == 'on') @endif @endif
@can('Category Delete') @endcan @can('Category Delete') @endcan @cannot('Category Delete') @endcannot @php $i = 1; @endphp @foreach($categories as $category) @endforeach
{{lang('Sl.No')}} {{lang('Category Name')}} {{lang('Ticket/Knowledge')}} {{lang('Assign To Groups')}} {{lang('Assigned Priority')}} {{lang('Status')}} {{lang('Actions')}}
{{$i++}} @if(Auth::user()->can('Category Delete')) @else @endif {{$category->name}} {{$category->display}} @if(Auth::user()->can('Category Assign To Groups')) @if($category->display == 'ticket' || $category->display == 'both') {{$category->groupscategoryc()->count()}} @endif @else ~ @endif @if($category->priority != null) @if($category->priority == "Low") {{$category->priority}} @elseif($category->priority == "High") {{$category->priority}} @elseif($category->priority == "Critical") {{$category->priority}} @else {{$category->priority}} @endif @else ~ @endif @if(Auth::user()->can('Category Edit')) @if($category->status == '1') @else @endif @else ~ @endif
@if(Auth::user()->can('Category Edit')) @else ~ @endif @if(Auth::user()->can('Category Delete')) @else ~ @endif
@endsection @section('scripts') @endsection @section('modal') @include('admin.category.modal') @include('admin.category.groupmodal') @include('admin.category.envatocategorylist') @endsection