@extends('layouts.admin') @section('section-label', 'Site') @section('title', 'Conteúdo do site') @section('content') @php($currentUser = auth()->user())

Escolha uma seção para editar o conteúdo exibido na página inicial.

@foreach($sections as $section) @if($currentUser?->canAdmin('site', 'edit'))

Seção

{{ $section['label'] }}

@if(!empty($section['description']))

{{ $section['description'] }}

@endif
Editar
@else

Seção

{{ $section['label'] }}

@if(!empty($section['description']))

{{ $section['description'] }}

@endif
Sem edição
@endif @endforeach
@endsection