@extends('layouts.app') @section('title', 'Bulk Generate Letters') @section('breadcrumbs') @endsection @section('content')

Bulk Generate Letters

Generate the same letter template for multiple employees at once

@csrf
{{-- Left: Employee Selection --}}

Select Employees

{{-- Search --}}
{{-- Employee List --}}
@foreach($employees as $emp) @endforeach
{{-- Right: Template Selection + Submit --}}

Template

@error('template_id')

{{ $message }}

@enderror

Letters will be generated individually for each employee with their own data.

Note: Custom variables in the template will be left blank during bulk generation. Use individual generation for templates with custom fields.

@endsection