@extends('admin.layouts.app') @section('title', 'Email Templates') @section('breadcrumb')
  • Settings
  • Email Templates
  • @endsection @section('heading', 'Email Templates') @section('subheading', 'Manage transactional and marketing email templates.') @section('content')
    @foreach ([ ['name' => 'Welcome Email', 'subject' => 'Welcome to PropEstate!', 'type' => 'Transactional', 'vars' => '{{name}}, {{email}}', 'edited' => '14 Feb 2025', 'status' => 1], ['name' => 'Property Enquiry', 'subject' => 'New enquiry for {{property_title}}', 'type' => 'Transactional', 'vars' => '{{name}}, {{property_title}}, {{message}}', 'edited' => '12 Feb 2025', 'status' => 1], ['name' => 'Visit Scheduled', 'subject' => 'Your property visit is confirmed', 'type' => 'Transactional', 'vars' => '{{name}}, {{date}}, {{time}}, {{address}}', 'edited' => '10 Feb 2025', 'status' => 1], ['name' => 'Password Reset', 'subject' => 'Reset your password', 'type' => 'Transactional', 'vars' => '{{name}}, {{reset_link}}', 'edited' => '08 Feb 2025', 'status' => 1], ['name' => 'New Listing Alert', 'subject' => 'New properties matching your criteria', 'type' => 'Notification', 'vars' => '{{name}}, {{properties}}', 'edited' => '05 Feb 2025', 'status' => 1], ['name' => 'Weekly Digest', 'subject' => 'Your weekly property digest', 'type' => 'Marketing', 'vars' => '{{name}}, {{properties}}, {{trends}}', 'edited' => '01 Feb 2025', 'status' => 1], ['name' => 'Agent Approval', 'subject' => 'Your agent account has been approved', 'type' => 'Transactional', 'vars' => '{{name}}, {{login_url}}', 'edited' => '28 Jan 2025', 'status' => 1], ['name' => 'Payment Receipt', 'subject' => 'Payment receipt - {{invoice_id}}', 'type' => 'Transactional', 'vars' => '{{name}}, {{amount}}, {{invoice_id}}', 'edited' => '25 Jan 2025', 'status' => 1], ] as $tpl) @endforeach
    Template Name Subject Line Type Variables Available Last Edited Status Actions
    {{ $tpl['name'] }} {{ Str::limit($tpl['subject'], 35) }} @php $typeClass = match($tpl['type']) { 'Transactional' => 'bg-blue-50 text-blue-700', 'Notification' => 'bg-amber-50 text-amber-700', 'Marketing' => 'bg-purple-50 text-purple-700', default => 'bg-gray-100 text-gray-600' }; @endphp {{ $tpl['type'] }} {{ Str::limit($tpl['vars'], 40) }} {{ $tpl['edited'] }} {{ $tpl['status'] ? 'Active' : 'Inactive' }}
    @endsection