@extends('backend.partials.master') @section('title') {{ ___('label.website_content_blocks') }} @endsection @section('maincontent') @if(hasPermission('cms_create')) {{ ___('label.add') }} @endif
{{ ___('label.content_block_index_hint') }}
@foreach($items as $item) @php $c = $item->status === 'active' ? 'success' : 'danger'; @endphp {{ \App\Models\ContentBlock::SECTIONS[$item->section] ?? $item->section }} {{ $item->title }} @if($item->body)
{{ Str::limit($item->body, 80) }}
@endif @if($item->icon) {{ $item->icon }}@else — @endif {{ $item->url ?: '—' }} {{ $item->sort_order }} {{ admin_label(ucfirst($item->status)) }}
@if(hasPermission('cms_update')) @endif @if(hasPermission('cms_delete')) @endif
@endforeach
@endsection @push('scripts') @endpush