@extends('crm.layouts.app') @section('title', 'Email Templates') @section('content')

Email Templates

Manage automated email templates for client communications and studio operations.

New Template
@if(session('success'))

{{ session('success') }}

@endif
@forelse($templates as $template)

{{ $template->name }}

@if($template->is_active) Active @else Inactive @endif

@if($template->type === 'appointment_confirmation') Sent to confirm scheduled appointments @elseif($template->type === 'appointment_reminder') Reminder emails before appointments @elseif($template->type === 'postcare') Post-care instructions after service @else Custom email template @endif

@if($template->trigger && $template->trigger !== 'manual')
@switch($template->trigger) @case('appointment_booked') Sent when appointment booked @break @case('appointment_completed') Sent when appointment completed @break @case('payment_received') Sent when payment received @break @case('reminder_24h') Sent 24 hours before appointment @break @case('new_client') Sent to new clients @break @default Manual send only @endswitch
@endif
@empty

No email templates

Get started by creating a new email template.

@endforelse
@endsection