Initial clean version
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<section class="card">
|
||||
<div class="section-head"><div><h2><?=e($snapshot['title'])?></h2><p>Contrôle #<?=$report['id']?> · <?=e($snapshot['generated_at'])?> · révision <?=$snapshot['revision']?></p></div><a class="button" href="/reports/pdf?id=<?=$report['id']?>">Télécharger le PDF</a></div>
|
||||
<?php if((int)$report['revision']!==$revision): ?><div class="notice warning">Les données ont changé depuis ce contrôle. Générez un nouveau rapport avant d’utiliser la liste.</div><?php endif ?>
|
||||
<p><?=e($snapshot['scope'])?></p><p class="muted">Ce document est un instantané à sa date de génération. Même sans modification enregistrée, vérifiez les nouvelles décisions et les éventuels reports avant le match.</p>
|
||||
</section>
|
||||
<?php foreach($snapshot['groups'] as $g):$m=$g['match']; ?>
|
||||
<section class="card">
|
||||
<h2><?=e($m['short_name'].' · '.$m['opponent'].' · '.$m['match_date'])?></h2><p><?=e($g['selection'])?></p>
|
||||
<?php if(!empty($g['pending_events'])): ?><p class="notice warning"><?=$g['pending_events']?> événement(s) en attente de rapprochement disciplinaire.</p><?php endif ?>
|
||||
<?php if(!empty($g['regulatory'])):$reg=$g['regulatory']; ?><p>Convocation : <?=$reg['count']?> joueurs · <?=$reg['mutations']?> mutés connus, dont <?=$reg['outside']?> hors période.</p><?php foreach($reg['issues'] as $issue): ?><p class="notice warning"><?=e($issue['message'])?></p><?php endforeach ?><?php endif ?>
|
||||
<?php if(!empty($g['higher_ten_limit_exceeded'])): ?><div class="notice danger"><strong>Limite dépassée :</strong> <?=e($g['higher_ten_count'])?> joueurs à plus de <?=e($g['higher_threshold']??10)?> matchs en équipes supérieures sont convoqués, pour un maximum configuré de <?=e($g['higher_ten_limit']??3)?>.</div><?php endif ?>
|
||||
<div class="freshness"><?php foreach(['players'=>'Licenciés','discipline'=>'Discipline','calendar:'.$m['team_id']=>'Calendrier'] as $key=>$label): ?><span><?=e($label)?> : <?=e($g['checks'][$key]['checked_at']??'non vérifié')?></span><?php endforeach ?></div>
|
||||
<?php if(!empty($g['data_warnings'])): ?><div class="notice warning"><strong>Données à actualiser</strong><ul><?php foreach($g['data_warnings'] as $w): ?><li><?=e($w)?></li><?php endforeach ?></ul></div><?php endif ?>
|
||||
<?php if(!$g['rows']): ?><div class="notice success">Aucune suspension ni risque confirmé au prochain jaune à signaler dans cette liste.</div><?php endif ?>
|
||||
<?php foreach($g['rows'] as $row):$p=$row['player'];$c=$row['check']; ?>
|
||||
<details class="report-row"><summary><strong><?=e($p['last_name'].' '.$p['first_name'])?></strong> · <?=e($p['person_number'])?> · <?=e(\App\Sports::MEMBER_ROLES[$p['member_role']??'player']??'Joueur')?><?=e(!empty($p['staff_function'])?' / '.$p['staff_function']:'')?> <?=badge($c['status'])?><?php if(in_array('yellow_risk',$row['flags']??[],true)): ?> <span class="badge review"><?=e($row['active_yellows'])?> jaunes actifs</span><?php endif ?><?php if(in_array('higher_ten',$row['flags']??[],true)): ?> <span class="badge neutral"><?=e($row['higher_team_matches']['total'])?> matchs supérieurs</span><?php endif ?></summary>
|
||||
<?php if(in_array('yellow_risk',$row['flags']??[],true)): ?><p class="notice warning">Un nouveau carton jaune peut entraîner une suspension : <?=e($row['active_yellows'])?> avertissements sont encore actifs.</p><?php endif ?>
|
||||
<?php if(in_array('higher_ten',$row['flags']??[],true)): ?><p class="notice warning">Plus de <?=e($g['higher_threshold']??10)?> rencontres officielles en équipes supérieures : <?php foreach($row['higher_team_matches']['teams'] as $team=>$count): ?><?=e($team)?> : <?=e($count)?> · <?php endforeach ?>total <?=e($row['higher_team_matches']['total'])?>.</p><?php endif ?>
|
||||
<?php require __DIR__.'/details.php'; ?>
|
||||
</details>
|
||||
<?php endforeach ?>
|
||||
</section>
|
||||
<?php endforeach ?>
|
||||
Reference in New Issue
Block a user