<?php require dirname(__DIR__).'/app/core.php';require dirname(__DIR__).'/tools/testdata.php';$title='Test Data';if($_SERVER['REQUEST_METHOD']==='POST'){csrf();try{$r=load_test_data($pdo);flash("Test data loaded: {$r['assets']} assets, {$r['annual']} annual workflows, {$r['interim']} interim workflows, {$r['shipments']} shipments.");go('index.php');}catch(Throwable $e){flash('Test data failed: '.$e->getMessage(),'error');go('testdata.php');}}require dirname(__DIR__).'/views/head.php';?><h1>Development Test Data</h1><section class="panel"><p>This creates synthetic records for Assets, Receiving, Recertification, Lab Board, vouchers, Sales Orders, and Shipping. Use only in a test database.</p><form method="post"><input type="hidden" name="csrf" value="<?=e(token())?>"><button>Load Synthetic Test Data</button></form></section><?php require dirname(__DIR__).'/views/foot.php';?>