@extends('layouts.app') @section('title', 'Risques') @section('content')
| Joueur | @for($num = $debut; $num <= $fin; $num++)J{{ $num }} | @endforTotal |
|---|---|---|
|
|
@for($num = $debut; $num <= $fin; $num++)
@php
$cell = $dataByJournee[$num][$u->uti_id] ?? null;
$v = $cell ? (int)($cell->nb_risques ?? 0) : 0;
$fr = $cell ? (int)($cell->juti_fil_rouge ?? 0) : 0;
if ($num < $firstNumero || $cell === null) {
$cls = '';
$val = '';
} else {
$cls = $v > 0 ? 'cellProno risque'.$v.'1' : 'cellProno normal';
if ($fr > 0) $cls .= ' filrouge';
$val = $v > 0 ? $v : '';
}
@endphp
{{ $val }} | @endfor{{ ($totauxUtilisateur[$u->uti_id] ?? 0) > 0 ? $totauxUtilisateur[$u->uti_id] : '' }} |
| Total | @php $halfTotal = 0; @endphp @for($num = $debut; $num <= $fin; $num++) @php $t = $totauxJournee[$num] ?? 0; $halfTotal += $t; @endphp{{ $t > 0 ? $t : '' }} | @endfor{{ $halfTotal > 0 ? $halfTotal : '' }} |