@extends('admin.layouts.app') @section('title', ucfirst($pageKey) . ' Page Content') @section('content')
@csrf @method('PUT')
@foreach($fields as $field => $type)
@if($type === 'image') @if(!empty($page->content[$field]))
@endif @elseif($type === 'textarea') @elseif($type === 'html')
Basic HTML is allowed here (e.g. <p>, <strong>, <ul>).
@else @endif
@endforeach Cancel
@endsection