@extends('layouts.admin') @php $editing = (bool) $item; @endphp @section('title', ($editing ? 'Edit ' : 'Add ').strtolower($def['label'])) @section('heading', ($editing ? 'Edit ' : 'Add ').strtolower($def['label'])) @section('content')
{{ $editing ? 'Update the details below, then save your changes.' : 'Fill in the details below. Fields marked required must be completed.' }}