{{-- resources/views/pages/discussions/categories/index.blade.php --}} @extends('layouts.app') @push('pageTitle') {{ __('labels.discussion_categories') }} @endpush @push('css') @endpush @section('content')
| # | {{ __('labels.icon') }} | {{ __('labels.name') }} | {{ __('labels.description') }} | {{ __('labels.threads') }} | {{ __('labels.status') }} | {{ __('labels.order') }} | {{ __('labels.created_at') }} | {{ __('labels.action') }} | |
|---|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} |
|
{{ $item->title }} |
@if($item->description)
{{ Str::limit($item->description, 50, '...') }}
@else
-
@endif
|
{{-- Thread Count --}}
{{ $item->threads_count ?? 0 }}
@if(($item->active_threads_count ?? 0) > 0)
{{ $item->active_threads_count ?? 0 }}
@endif
|
{{-- Status --}}
@if($item->trashed()) {{ __('labels.deleted') }} @else @if($item->is_active) {{ __('labels.active') }} @else {{ __('labels.inactive') }} @endif @endif | {{-- can('manage-experts') ? '' : 'disabled' }}> --}} @if($item->sort_order) {{ $item->sort_order }} @endif | {{-- Created At --}}
{{ $item->created_at?->format('d.m.Y') }}
{{ $item->created_at?->format('H:i') }}
{{ $item->created_at?->shortRelativeDiffForHumans() }}
|
{{--
@if($item->published_at)
{{ $item->published_at ? date('d.m.Y', strtotime($item->published_at)) : '' }}
{{ $item->published_at ? date('H:i', strtotime($item->published_at)) : '' }}
{{ __('labels.published') }}
@else
{{ __('labels.draft') }}
@endif
| --}}
{{-- Actions --}}