user();
$tshirt_sizes = config('tshirt_sizes');
$request = request();
$html = '';
$goodie = GoodieType::from(config('goodie_type'));
$goodie_enabled = $goodie !== GoodieType::None;
$goodie_tshirt = $goodie === GoodieType::Tshirt;
if (!$request->has('id')) {
throw_redirect(users_link());
}
$user_id = $request->input('id');
if (!$request->has('action')) {
$user_source = User::find($user_id);
if (!$user_source) {
error(__('This user does not exist.'));
throw_redirect(users_link());
}
$html .= __('Here you can change the user entry. Under the item \'Arrived\' the angel is marked as present, a yes at Active means that the angel was active.');
if ($goodie_enabled) {
if ($goodie_tshirt) {
$html .= ' ' . __('If the angel is active, it can claim a T-shirt. If T-shirt is set to \'Yes\', the angel already got their T-shirt.');
} else {
$html .= ' ' . __('If the angel is active, it can claim a goodie. If goodie is set to \'Yes\', the angel already got their goodie.');
}
}
$html .= '
';
$html .= '