<?php require __DIR__.'/../layouts/header.php'; $p=$p??[]; $prefs=$prefs??[]; ?><div class="section-head"><div><div class="eyebrow">SETTINGS</div><h1>Privacy & notifications</h1></div></div><section class="panel"><form method="post" action="<?=url('settings/save')?>"><?=csrf()?><h2>Discovery privacy</h2><label class="check"><input type="checkbox" name="visibility" <?=($p['visibility']??1)?'checked':''?>> Show my profile in discovery</label><label class="check"><input type="checkbox" name="show_distance" <?=($p['show_distance']??1)?'checked':''?>> Show approximate distance</label><label class="check"><input type="checkbox" name="incognito" <?=($p['incognito']??0)?'checked':''?>> Incognito discovery</label><h2>Notifications</h2><label class="check"><input type="checkbox" name="email_enabled" <?=($prefs['email_enabled']??1)?'checked':''?>> Email notifications</label><label class="check"><input type="checkbox" name="push_enabled" <?=($prefs['push_enabled']??1)?'checked':''?>> Push notifications</label><label class="check"><input type="checkbox" name="match_enabled" <?=($prefs['match_enabled']??1)?'checked':''?>> Match alerts</label><label class="check"><input type="checkbox" name="message_enabled" <?=($prefs['message_enabled']??1)?'checked':''?>> Message alerts</label><label class="check"><input type="checkbox" name="marketing_enabled" <?=($prefs['marketing_enabled']??0)?'checked':''?>> Promotions</label><button class="btn">Save settings</button></form></section><?php require __DIR__.'/../layouts/footer.php'; ?>
