@extends('backend.master') @php $table_name='categories'; @endphp @section('table') {{$table_name}} @endsection @section('mainContent') @include("backend.partials.alertMessage") @php $LanguageList = getLanguageList(); @endphp {!! generateBreadcrumb() !!}

@if(!isset($edit)) {{__('courses.Add New Category') }} @else {{__('courses.Update Category')}} @endif

@if(isset($edit)) @if (permissionCheck('course.category.store')) + @endif @endif
@if(isModuleActive('FrontendMultiLang')) @endif
@if (isset($edit))
@else @if (permissionCheck('course.category.store')) @endif @endif @csrf
@foreach ($LanguageList as $key => $language)
has('description') ? 'autofocus' : ''}}> @if ($errors->has('description')) {{ @$errors->first('description') }} @endif
@endforeach
@php $tooltip = ""; if(permissionCheck('course.category.store')){ $tooltip = ""; }else{ $tooltip = trans("courses.You have no permission to add"); } @endphp

{{__('courses.Category List')}}

@foreach($categories as $key => $category) @endforeach
{{ __('common.SL') }} {{ __('common.Name') }} {{ __('common.Parent') }} {{ __('common.Position') }} {{ __('frontend.Order') }} {{ __('common.Description') }} {{ __('frontendmanage.Icon') }} {{ __('courses.Thumbnail Image') }} {{ __('common.Status') }} {{ __('common.Action') }}
{{++$key}} {{checkParent($category)}} {{@$category->name }} {{@$category->parent->name }} {{@$category->position_order }} {{@$category->description }}
@php if(isModuleActive('Organization')){ $org_id = $category->organization_id; }else{ $org_id = null; } @endphp @php $hasPermission =true; @endphp
@include('backend.partials.delete_modal') @endsection @push('scripts') @endpush