{
    "id": "impound-report",
    "title": "Impound Report",
    "description": "Generate a vehicle impound report.",
    "icon": "Car",
    "icon_color": "#4f46e5",
    "output_title": "{{vehicle_make_model}} - {{vehicle_plate}}",
    "custom_button_text": "Open MDC Record",
    "custom_button_link": "https://mdc.gta.world/record/{{vehicle_owner}}",
    "custom_button_replace_spaces": true,
    "is_html_output": true,
    "output": "<table style=\"width:100%;font-family:'Times New Roman',serif;border-collapse:collapse;border:4px solid black;background-color:white;color:black;\"><tbody><tr><td colspan=\"3\" style=\"text-align:center;padding-bottom:2rem\"><h1 style=\"font-family:Arial,sans-serif;font-size:2rem;font-weight:700;text-transform:uppercase;margin:0\">COUNTY OF LOS SANTOS</h1><h2 style=\"font-family:Arial,sans-serif;font-size:1.5rem;font-weight:600;margin:0\">Vehicle Impound Report</h2></td></tr><tr><td colspan=\"3\" style=\"border-top:2px solid black;padding:.5rem\"><h3 style=\"font-family:Arial,sans-serif;font-weight:700;font-size:1.125rem;margin-bottom:.5rem\">1. GENERAL INFORMATION</h3><table style=\"width:100%;border-collapse:collapse\"><tbody><tr><td style=\"border:1px solid black;padding:.5rem;width:33.33%\"><strong style=\"font-family:Arial,sans-serif\">A. DATE:</strong> {{general.date}}</td><td style=\"border:1px solid black;padding:.5rem;width:33.33%\"><strong style=\"font-family:Arial,sans-serif\">B. TIME (24HR):</strong> {{general.time}}</td><td style=\"border:1px solid black;padding:.5rem;width:33.33%\"><strong style=\"font-family:Arial,sans-serif\">C. CALLSIGN:</strong> {{general.callSign}}</td></tr></tbody></table></td></tr><tr><td colspan=\"3\" style=\"border-top:2px solid black;padding:.5rem\"><h3 style=\"font-family:Arial,sans-serif;font-weight:700;font-size:1.125rem;margin-bottom:.5rem\">2. OFFICER INFORMATION</h3><table style=\"width:100%;border-collapse:collapse\"><tbody>{{#each officers}}<tr><td style=\"border:1px solid black;padding:.5rem;width:41.66%\"><strong style=\"font-family:Arial,sans-serif\">A. OFFICER NAME:</strong> {{this.name}}</td><td style=\"border:1px solid black;padding:.5rem;width:33.33%\"><strong style=\"font-family:Arial,sans-serif\">B. RANK:</strong> {{this.rank}}</td><td style=\"border:1px solid black;padding:.5rem;width:25%\"><strong style=\"font-family:Arial,sans-serif\">C. BADGE:</strong> #{{this.badgeNumber}}</td></tr>{{/each}}</tbody></table></td></tr><tr><td colspan=\"3\" style=\"border-top:2px solid black;padding:.5rem\"><h3 style=\"font-family:Arial,sans-serif;font-weight:700;font-size:1.125rem;margin-bottom:.5rem\">3. VEHICLE INFORMATION</h3><table style=\"width:100%;border-collapse:collapse\"><tbody><tr><td style=\"border:1px solid black;padding:.5rem;width:50%\"><strong style=\"font-family:Arial,sans-serif\">A. MAKE &amp; MODEL:</strong> {{vehicle_make_model}}</td><td style=\"border:1px solid black;padding:.5rem;width:50%\"><strong style=\"font-family:Arial,sans-serif\">B. IDENTIFICATION PLATE:</strong> {{#if vehicle_plate}}{{vehicle_plate}}{{else}}N/A{{/if}}</td></tr><tr><td style=\"border:1px solid black;padding:.5rem;width:50%\"><strong style=\"font-family:Arial,sans-serif\">C. REGISTERED OWNER:</strong> {{#if vehicle_owner}}{{vehicle_owner}}{{else}}N/A{{/if}}</td><td style=\"border:1px solid black;padding:.5rem;width:50%\"><strong style=\"font-family:Arial,sans-serif\">D. REGISTRATION:</strong> {{#if vehicle_registered}}Valid{{else}}Expired/None{{/if}}</td></tr></tbody></table></td></tr><tr><td colspan=\"3\" style=\"border-top:2px solid black;padding:.5rem\"><h3 style=\"font-family:Arial,sans-serif;font-weight:700;font-size:1.125rem;margin-bottom:.5rem\">4. LOCATION OF IMPOUND</h3><table style=\"width:100%;border-collapse:collapse\"><tbody><tr><td style=\"border:1px solid black;padding:.5rem;width:50%\"><strong style=\"font-family:Arial,sans-serif\">A. DISTRICT:</strong> {{location.district}}</td><td style=\"border:1px solid black;padding:.5rem;width:50%\"><strong style=\"font-family:Arial,sans-serif\">B. STREET:</strong> {{location.street}}</td></tr></tbody></table></td></tr><tr><td colspan=\"3\" style=\"border-top:2px solid black;padding:.5rem\"><h3 style=\"font-family:Arial,sans-serif;font-weight:700;font-size:1.125rem;margin-bottom:.5rem\">5. IMPOUND DETAILS</h3><table style=\"width:100%;border-collapse:collapse\"><tbody><tr><td style=\"border:1px solid black;padding:.5rem;width:25%\"><strong style=\"font-family:Arial,sans-serif\">A. DURATION:</strong> {{impound_duration}} Day(s)</td><td style=\"border:1px solid black;padding:.5rem;width:75%;white-space:pre-wrap\"><strong style=\"font-family:Arial,sans-serif\">B. REASON:</strong><br/>{{impound_reason}}</td></tr></tbody></table></td></tr></tbody></table>",
    "form": [
        {
            "type": "hidden",
            "name": "generatorType",
            "value": "ImpoundReport"
        },
        {
            "type": "section",
            "title": "General Section"
        },
        {
            "type": "general",
            "name": "general"
        },
        {
            "type": "section",
            "title": "Officer Section"
        },
        {
            "type": "officer",
            "name": "officers",
            "showBadgeNumber": true
        },
        {
            "type": "section",
            "title": "Vehicle Details"
        },
        {
            "type": "group",
            "fields": [
                {
                    "type": "better-switch",
                    "name": "vehicle_registered",
                    "label": "Registration Status",
                    "dataOn": "Registered",
                    "dataOff": "Unregistered",
                    "defaultValue": true
                },
                {
                    "type": "text",
                    "name": "vehicle_owner",
                    "label": "Registered Owner",
                    "placeholder": "Firstname Lastname",
                    "stipulation": {
                        "field": "vehicle_registered",
                        "value": true
                    },
                    "prefillKey": "vehicle_owner"
                },
                {
                    "type": "text",
                    "name": "vehicle_plate",
                    "label": "Identification Plate",
                    "placeholder": "###XXX",
                    "stipulation": {
                        "field": "vehicle_registered",
                        "value": true
                    }
                }
            ]
        },
        {
            "type": "datalist",
            "name": "vehicle_make_model",
            "label": "Make & Model",
            "placeholder": "e.g. Benefactor Dubsta",
            "optionsSource": "vehicles",
            "required": true,
            "defaultValue": ""
        },
        {
            "type": "section",
            "title": "Location Details"
        },
        {
            "type": "location",
            "name": "location",
            "showDistrict": true,
            "prefillKey": "location"
        },
        {
            "type": "section",
            "title": "Impound Details"
        },
        {
            "type": "text",
            "name": "impound_duration",
            "label": "Duration of Impound (Days)",
            "placeholder": "#",
            "required": true,
            "prefillKey": "impound_duration"
        },
        {
            "type": "textarea",
            "name": "impound_reason",
            "label": "Impound Reason",
            "placeholder": "Vehicle was used in the comission of a crime, see arrest report #.\nVehicle was obstructing the flow of traffic, see parking ticket #.",
            "required": true,
            "prefillKey": "impound_reason"
        }
    ],
    "countyCityStipulation": true
}
