{{-- resources/views/admin/brands/index.blade.php - FIXED VERSION WITH PROPER TINYMCE DATA LOADING --}} @extends('admin.layouts.app') @section('title', admin_trans('brands')) @section('page-title', admin_trans('brands')) @section('content')
| {{ admin_trans('order') }} | {{ admin_trans('logo') }} | {{ admin_trans('name') }} | {{ admin_trans('translations') }} | {{ admin_trans('featured') }} | {{ admin_trans('status') }} | {{ admin_trans('actions') }} | |
|---|---|---|---|---|---|---|---|
| id }})" :checked="selectedItems.includes({{ $brand->id }})" class="checkbox brand-checkbox"> |
{{ $brand->order ?? 0 }}
|
@if ($brand->getFirstMediaUrl('logo'))
|
@php
$defaultLang = $languages->where('is_default', true)->first();
$translation = $brand->translations
->where('language_id', $defaultLang->id ?? 1)
->first();
@endphp
{{ $translation->name ?? 'Brand #' . $brand->id }}
@if ($translation && $translation->description)
{!! strip_tags(Str::limit($translation->description, 60)) !!}
@endif
|
|
|