@extends('admin.layoutWithNavigation')
@section('pageHeading', @trans($pageHeading))
@section('headerButtons')
@can('create', \App\Models\Content\Content::class)
@if (!empty($contentModules))
@if (count($contentModules) == 1)
@else
@endif
@endif
@endcan
@endsection
@section('content')
@if (!$homepage)
@lang('admin/contents.noHomepage')
@elseif($homepage->isProtected())
@lang('admin/contents.homepageProtected')
@endif
@if (count($pages) > 0)
@lang('admin/contents.title')
@lang('admin/contents.status')
@lang('admin/contents.moduleName')
@lang('admin/contents.createdAt')
@lang('admin/contents.actions')
@foreach($pages as $page)
@include('admin.content._partials.overviewRow', ['extraClass' => $page->subpages->isEmpty() ?: 'has-subpages'])
@endforeach
@else
@lang('admin/contents.noPagesAvailable')
@endif
@endsection