@lang('View Categories')
@can('delete', App\Category::class) {{csrf_field()}}
@endcan
@lang('Advanced Search')
@can('delete', App\Category::class) @endcan @if((Auth::user()->can('update', App\Category::class)) || (Auth::user()->can('delete', App\Category::class))) @endif @if($categories) @foreach($categories as $category) @can('delete', App\Category::class) @endcan @if((Auth::user()->can('update', App\Category::class)) || (Auth::user()->can('delete', App\Category::class))) @endif @endforeach @endif
@lang('ID') @lang('Name') @lang('Parent Category') @lang('Status') @lang('Created')@lang('Action')
{{$loop->iteration}} {{$category->name}} {{$category->category ? $category->category->name : 'None'}} {{$category->is_active ? __('Active') : __('Inactive')}} {{$category->created_at}} @can('update', App\Category::class) @endcan   @can('delete', App\Category::class) @endcan