@extends('layouts.admin') @php($editing = $entry->exists) @php($label = strtolower(substr(\App\Models\ContentEntry::KINDS[$kind], 0, -1))) @section('title', ($editing ? 'Edit ' : 'Add ') . $label) @section('page_heading', ($editing ? 'Edit ' : 'New ') . $label) @section('content') ← Back to {{ $label }} list

{{ $editing ? 'Update' : 'Create' }} {{ $label }}

@if($kind === 'project')

Use approved VIPO project photographs and descriptions.

@endif @if($editing)
Manage additional sections ↗ Preview saved content ↗ @if($entry->published)View live page ↗@endif
@endif
@csrf @if($editing)@method('PUT')@endif
@error('title')
{{ $message }}
@enderror
@error('slug')
{{ $message }}
@enderror
@error('category')
{{ $message }}
@enderror
@error('summary')
{{ $message }}
@enderror

Plain text is displayed safely. Separate paragraphs with a blank line.

@error('body')
{{ $message }}
@enderror

Search appearance

Write a unique title and concise description for this page. Leave either blank to use a page-specific automatic fallback.

@error('seo_title')
{{ $message }}
@enderror
@error('seo_description')
{{ $message }}
@enderror
@if(in_array($kind, ['material', 'application'], true))

One item per line. These appear as a checklist on the detail page.

@error('highlights')
{{ $message }}
@enderror

One use or project type per line.

@error('best_for')
{{ $message }}
@enderror

Human, practical guidance. Avoid claiming availability or guarantees that have not been confirmed.

@error('selection_tips')
{{ $message }}
@enderror
@endif @if(in_array($kind, ['material', 'application'], true))

Detail page display & layout

Control exactly which sections appear, change their order, write alternative headings and manage spacing for this {{ $kind === 'material' ? 'product' : 'service' }}. Leave optional text blank to use the website's shared wording. Every change is previewable after saving.

@php($sectionGroup = '') @foreach(\App\Support\DetailEditor::fields($kind) as $detailKey=>$field) @php($group = explode(' · ', $field[0])[0]) @if($sectionGroup !== $group) @if($sectionGroup !== '')@endif
{{ $group }} Expand or collapse
@php($sectionGroup = $group) @endif
@if($field[1] === 'toggle') @elseif($field[1] === 'area') @elseif(in_array($field[1], ['decimal','order'], true)) @else @endif @error('detail.'.$detailKey){{ $message }}@enderror
@endforeach @if($sectionGroup !== '')
@endif
@endif @if($kind === 'page')
@endif
@if($entry->image_url)Current cover photo@endif

JPG, PNG or WebP, up to 6 MB. Uploading a new photo replaces the displayed cover (the old file stays available).

@error('image')
{{ $message }}
@enderror

Lower numbers appear first.

Cancel
@endsection