@extends('admin.layouts.app') @section('title', admin_trans('categories')) @section('page-title', admin_trans('categories')) @section('content')
| {{ admin_trans('order') }} | {{ admin_trans('icon') }} | {{ admin_trans('name') }} | {{ admin_trans('translations') }} | {{ admin_trans('featured') }} | {{ admin_trans('status') }} | {{ admin_trans('actions') }} | |
|---|---|---|---|---|---|---|---|
| id }})" :checked="selectedItems.includes({{ $category->id }})" class="checkbox category-checkbox"> |
{{ $category->order ?? 0 }}
|
@if ($category->getFirstMediaUrl('icon'))
|
@php
$defaultLang = $languages->where('is_default', true)->first();
$translation = $category->translations
->where('language_id', $defaultLang->id ?? 1)
->first();
@endphp
{{ $translation->name ?? 'Category #' . $category->id }}
@if ($translation && $translation->description)
{!! strip_tags(Str::limit($translation->description, 60)) !!}
@endif
|
|
|