{{-- Shared CMS Page form fields. Wrapped by create.blade.php and edit.blade.php. Expects: $item (null on create), $statuses. --}} @php $slug = trim((string) old('slug', $item->slug ?? '')); $legalSlugs = ['privacy-policy', 'terms-conditions', 'refund-policy', 'cancellation-policy']; $isHome = $slug === '/'; $isAbout = $slug === 'about-us'; $isBlog = $slug === 'blog'; $isContact = $slug === 'contact-us'; $isAgent = $slug === 'become-an-agent'; $isLegal = in_array($slug, $legalSlugs, true); $isCreate = ! $item; $isGeneric = ! $isHome && ! $isAbout && ! $isBlog && ! $isContact && ! $isAgent; $showHeader = $isAbout || $isBlog || $isContact || $isAgent; @endphp