@extends('backend.partials.master') @section('title') {{ ___('label.home_sections') }} @endsection @section('maincontent') @if(hasPermission('cms_create')) {{ ___('label.add') }} @endif
{{ ___('label.home_sections_hint') }}
@forelse($items as $item) @php $type = $registry->find($item->type); $c = $item->status === 'active' ? 'success' : 'danger'; @endphp @empty @endforelse
{{ ___('label.section') }} {{ ___('label.settings') }} {{ ___('label.status') }} {{ ___('label.action') }}
{{ $item->title ?: ($type?->label() ?? $item->type) }} @unless($type) {{-- A row left behind by a downgrade or a disabled module. It is skipped on the public site; showing it here is what stops it looking like data loss. --}} {{ ___('label.unknown_section_type') }} @endunless
{{ $item->key }} @if($type && $item->title) · {{ admin_label($type->label()) }} @endif
@forelse((array) $item->settings as $k => $v) @continue($v === null || $v === '') {{ $k }}: {{ is_bool($v) ? ($v ? 'yes' : 'no') : $v }} @empty — @endforelse @if(hasPermission('cms_update')) {{ admin_label(ucfirst($item->status)) }} @else {{ admin_label(ucfirst($item->status)) }} @endif
@if(hasPermission('cms_update')) @endif @if(hasPermission('cms_delete')) @endif
{{ ___('label.home_sections_empty') }}
@endsection @push('scripts') @endpush