@extends('layouts.app') @section('title', 'Preview Letter') @section('breadcrumbs') @endsection @section('content')

Preview Letter

{{ $template->category_label }} for {{ $employee->first_name }} {{ $employee->last_name }} ({{ $employee->employee_code }})

@if(!empty($customVarKeys)) {{-- Custom Variables Input --}}

Custom Variables

This template contains custom variables that need to be filled in manually.

@csrf
@foreach($customVarKeys as $key)
@endforeach
@endif @if(!empty($unresolvedVars))

Note: Some variables remain unresolved: {{ implode(', ', $unresolvedVars) }}

@endif {{-- Letter Preview --}}

Letter Preview

{!! $renderedContent !!}
{{-- Actions --}}
@csrf
Back to Selection
@endsection