@extends('layouts.app') @section('title', $template?->exists ? 'Edit template' : 'New template') @section('content')

{{ $template?->exists ? 'Edit template' : 'New template' }}

@php $lb = '{{'; $rb = '}}'; @endphp

Wrap substitutions in {{ $lb }} … {{ $rb }}. Unknown placeholders are left visible rather than blanked.

@if ($template?->exists)
@csrf
@endif Back
@csrf @if ($template?->exists) @method('PUT') @endif

Template

@error('code'){{ $message }}@enderror
@error('name'){{ $message }}@enderror
Used for email templates. Placeholders work here too.
Cancel

Available placeholders

@foreach ($placeholders as $key => $description) @endforeach
PlaceholderResolves to
{{ $lb.$key.$rb }} {{ $description }}
Values come from the customer, their latest service, their latest invoice and the organisation record.

Body

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